diff --git a/GTAOnlineCasinoHelper.sln b/GTAOnlineCasinoHelper.sln
new file mode 100644
index 0000000..d579d63
--- /dev/null
+++ b/GTAOnlineCasinoHelper.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 15
+VisualStudioVersion = 15.0.28307.705
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GTAOnlineCasinoHelper", "GTAOnlineCasinoHelper\GTAOnlineCasinoHelper.csproj", "{F73D2AD0-DCCF-41C5-8903-1ED848F2269D}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {F73D2AD0-DCCF-41C5-8903-1ED848F2269D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F73D2AD0-DCCF-41C5-8903-1ED848F2269D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F73D2AD0-DCCF-41C5-8903-1ED848F2269D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F73D2AD0-DCCF-41C5-8903-1ED848F2269D}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {358684CB-2166-401E-AF2B-18AFA11A37EA}
+ EndGlobalSection
+EndGlobal
diff --git a/GTAOnlineCasinoHelper/App.config b/GTAOnlineCasinoHelper/App.config
new file mode 100644
index 0000000..9ea9f10
--- /dev/null
+++ b/GTAOnlineCasinoHelper/App.config
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/App.xaml b/GTAOnlineCasinoHelper/App.xaml
new file mode 100644
index 0000000..6eac5f5
--- /dev/null
+++ b/GTAOnlineCasinoHelper/App.xaml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/GTAOnlineCasinoHelper/App.xaml.cs b/GTAOnlineCasinoHelper/App.xaml.cs
new file mode 100644
index 0000000..ed58a16
--- /dev/null
+++ b/GTAOnlineCasinoHelper/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace GTAOnlineCasinoHelper
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/GTAOnlineCasinoHelper/FodyWeavers.xml b/GTAOnlineCasinoHelper/FodyWeavers.xml
new file mode 100644
index 0000000..a5dcf04
--- /dev/null
+++ b/GTAOnlineCasinoHelper/FodyWeavers.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/FodyWeavers.xsd b/GTAOnlineCasinoHelper/FodyWeavers.xsd
new file mode 100644
index 0000000..44a5374
--- /dev/null
+++ b/GTAOnlineCasinoHelper/FodyWeavers.xsd
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+
+ A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks
+
+
+
+
+ A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.
+
+
+
+
+ A list of unmanaged 32 bit assembly names to include, delimited with line breaks.
+
+
+
+
+ A list of unmanaged 64 bit assembly names to include, delimited with line breaks.
+
+
+
+
+ The order of preloaded assemblies, delimited with line breaks.
+
+
+
+
+
+ This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.
+
+
+
+
+ Controls if .pdbs for reference assemblies are also embedded.
+
+
+
+
+ Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.
+
+
+
+
+ As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.
+
+
+
+
+ Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.
+
+
+
+
+ Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.
+
+
+
+
+ A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |
+
+
+
+
+ A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.
+
+
+
+
+ A list of unmanaged 32 bit assembly names to include, delimited with |.
+
+
+
+
+ A list of unmanaged 64 bit assembly names to include, delimited with |.
+
+
+
+
+ The order of preloaded assemblies, delimited with |.
+
+
+
+
+
+
+
+ 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
+
+
+
+
+ A comma-separated list of error codes that can be safely ignored in assembly verification.
+
+
+
+
+ 'false' to turn off automatic generation of the XML Schema file.
+
+
+
+
+
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/GTAOnlineCasinoHelper.csproj b/GTAOnlineCasinoHelper/GTAOnlineCasinoHelper.csproj
new file mode 100644
index 0000000..5463fb7
--- /dev/null
+++ b/GTAOnlineCasinoHelper/GTAOnlineCasinoHelper.csproj
@@ -0,0 +1,156 @@
+
+
+
+
+
+ Debug
+ AnyCPU
+ {F73D2AD0-DCCF-41C5-8903-1ED848F2269D}
+ WinExe
+ GTAOnlineCasinoHelper
+ GTAOnlineCasinoHelper
+ v4.6.1
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+ true
+
+
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ ..\packages\ControlzEx.4.0.1\lib\net45\ControlzEx.dll
+
+
+ ..\packages\Costura.Fody.3.3.3\lib\net40\Costura.dll
+
+
+ ..\packages\MahApps.Metro.2.0.0-alpha0455\lib\net46\MahApps.Metro.dll
+
+
+ ..\packages\MahApps.Metro.IconPacks.3.0.0-alpha0206\lib\net46\MahApps.Metro.IconPacks.dll
+
+
+ ..\packages\MahApps.Metro.IconPacks.3.0.0-alpha0206\lib\net46\MahApps.Metro.IconPacks.Core.dll
+
+
+ ..\packages\Microsoft.Xaml.Behaviors.Wpf.1.0.1\lib\net45\Microsoft.Xaml.Behaviors.dll
+
+
+
+
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ ThemeView.xaml
+
+
+ TestTwo.xaml
+
+
+ LuckyWheel.xaml
+
+
+ SettingsWindow.xaml
+
+
+ MSBuild:Compile
+ Designer
+
+
+ App.xaml
+ Code
+
+
+ MainWindow.xaml
+ Code
+
+
+ MSBuild:UpdateDesignTimeXaml
+
+
+ MSBuild:UpdateDesignTimeXaml
+ Designer
+
+
+ MSBuild:UpdateDesignTimeXaml
+
+
+ Designer
+ MSBuild:Compile
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
+
+
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/MainWindow.xaml b/GTAOnlineCasinoHelper/MainWindow.xaml
new file mode 100644
index 0000000..a16bddc
--- /dev/null
+++ b/GTAOnlineCasinoHelper/MainWindow.xaml
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/GTAOnlineCasinoHelper/MainWindow.xaml.cs b/GTAOnlineCasinoHelper/MainWindow.xaml.cs
new file mode 100644
index 0000000..fc3705d
--- /dev/null
+++ b/GTAOnlineCasinoHelper/MainWindow.xaml.cs
@@ -0,0 +1,60 @@
+using GTAOnlineCasinoHelper.Windows;
+using MahApps.Metro;
+using MahApps.Metro.Controls;
+using MahApps.Metro.Controls.Dialogs;
+using System;
+using System.Collections.Generic;
+using System.Globalization;
+using System.IO;
+using System.Linq;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace GTAOnlineCasinoHelper
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : MetroWindow
+ {
+ public static MainWindow Instance { get; set; }
+
+ public MainWindow()
+ {
+ Instance = this;
+ InitializeComponent();
+ LoadTheme();
+ }
+
+ private void LoadTheme()
+ {
+ string baseColor = Properties.Settings.Default.ThemeBaseColor;
+ if (baseColor == null || baseColor.Equals(string.Empty))
+ {
+ baseColor = "Dark";
+ }
+ string colorScheme = Properties.Settings.Default.ThemeColorScheme;
+ if (colorScheme == null || colorScheme.Equals(string.Empty))
+ {
+ colorScheme = "Teal";
+ }
+ ThemeManager.ChangeTheme(Application.Current, baseColor, colorScheme);
+ }
+
+ private async void ButtonSettings_Click(object sender, RoutedEventArgs e)
+ {
+ new SettingsWindow().Show();
+ //await this.ShowMessageAsync("Not implemented yet", "Settings has not been implemented yet");
+ }
+ }
+}
diff --git a/GTAOnlineCasinoHelper/Properties/AssemblyInfo.cs b/GTAOnlineCasinoHelper/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..6fc0d86
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Properties/AssemblyInfo.cs
@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("GTAOnlineCasinoHelper")]
+[assembly: AssemblyDescription("GTA Online - Diamond Casino & Resort Helper")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("oskar3123")]
+[assembly: AssemblyProduct("GTAOnlineCasinoHelper")]
+[assembly: AssemblyCopyright("Copyright © 2019 oskar3123")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
+
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/GTAOnlineCasinoHelper/Properties/Resources.Designer.cs b/GTAOnlineCasinoHelper/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..cdd1f68
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Properties/Resources.Designer.cs
@@ -0,0 +1,63 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace GTAOnlineCasinoHelper.Properties {
+ using System;
+
+
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources() {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.ReferenceEquals(resourceMan, null)) {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GTAOnlineCasinoHelper.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/GTAOnlineCasinoHelper/Properties/Resources.resx b/GTAOnlineCasinoHelper/Properties/Resources.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Properties/Resources.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/Properties/Settings.Designer.cs b/GTAOnlineCasinoHelper/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..e883ba8
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Properties/Settings.Designer.cs
@@ -0,0 +1,62 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace GTAOnlineCasinoHelper.Properties {
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.9.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default {
+ get {
+ return defaultInstance;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string LuckyWheelTimeStamp {
+ get {
+ return ((string)(this["LuckyWheelTimeStamp"]));
+ }
+ set {
+ this["LuckyWheelTimeStamp"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string ThemeBaseColor {
+ get {
+ return ((string)(this["ThemeBaseColor"]));
+ }
+ set {
+ this["ThemeBaseColor"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string ThemeColorScheme {
+ get {
+ return ((string)(this["ThemeColorScheme"]));
+ }
+ set {
+ this["ThemeColorScheme"] = value;
+ }
+ }
+ }
+}
diff --git a/GTAOnlineCasinoHelper/Properties/Settings.settings b/GTAOnlineCasinoHelper/Properties/Settings.settings
new file mode 100644
index 0000000..d9f77d9
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Properties/Settings.settings
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/Views/LuckyWheel.xaml b/GTAOnlineCasinoHelper/Views/LuckyWheel.xaml
new file mode 100644
index 0000000..d88cd88
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Views/LuckyWheel.xaml
@@ -0,0 +1,74 @@
+
+
+
+
+ 0 5 0 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/Views/LuckyWheel.xaml.cs b/GTAOnlineCasinoHelper/Views/LuckyWheel.xaml.cs
new file mode 100644
index 0000000..4156392
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Views/LuckyWheel.xaml.cs
@@ -0,0 +1,112 @@
+using MahApps.Metro.Controls.Dialogs;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+
+namespace GTAOnlineCasinoHelper.Views
+{
+
+ public partial class LuckyWheel : UserControl
+ {
+
+ public DateTimeOffset TimeStamp { get; set; }
+ public DateTimeOffset TimeStampReady
+ {
+ get
+ {
+ return AddHours(TimeStamp, 24);
+ }
+ }
+
+ private Timer timer;
+
+ public LuckyWheel()
+ {
+ this.InitializeComponent();
+ if (DateTimeOffset.TryParse(Properties.Settings.Default.LuckyWheelTimeStamp, out DateTimeOffset timeStamp))
+ {
+ TimeStamp = timeStamp;
+ }
+ this.timer = new Timer((state) =>
+ {
+ Dispatcher.Invoke(() => Refresh());
+ }, this, Timeout.Infinite, 500);
+ this.timer.Change(0, 500);
+ }
+
+ public void Refresh()
+ {
+ if (TimeStamp == null)
+ {
+ return;
+ }
+ DateTimeOffset then = TimeStampReady;
+ TextBlock_TimeStampTextBlock.Text = string.Format("{0}\n->\n{1}", TimeStamp.LocalDateTime.ToString(), then.LocalDateTime.ToString());
+ TimeSpan offset = then - DateTimeOffset.Now;
+ if (offset.TotalMilliseconds < 0)
+ {
+ TextBlock_TimerTextBlock.Text = "READY!";
+ }
+ else
+ {
+ string hoursString = ((int)offset.TotalHours).ToString();
+ while (hoursString.Length < 2) hoursString = "0" + hoursString;
+ string minutesString = offset.Minutes.ToString();
+ while (minutesString.Length < 2) minutesString = "0" + minutesString;
+ string secondsString = offset.Seconds.ToString();
+ while (secondsString.Length < 2) secondsString = "0" + secondsString;
+ TextBlock_TimerTextBlock.Text = string.Format("{0}:{1}:{2}", hoursString, minutesString, secondsString);
+ }
+ }
+
+ private async void Button_AddTimeStamp(object sesnder, System.Windows.RoutedEventArgs e)
+ {
+ DateTimeOffset now;
+ if (CheckBox_UseTextBoxTimeStamp.IsChecked.HasValue && CheckBox_UseTextBoxTimeStamp.IsChecked.Value)
+ {
+ if (!DateTimeOffset.TryParse(TextBox_TimeStamp.Text, out now))
+ {
+ await MainWindow.Instance.ShowMessageAsync("Could not parse TimeStamp", "You have to specify a string that conforms to DateTimeOffset.Parse(string)");
+ return;
+ }
+ }
+ else
+ {
+ now = DateTimeOffset.Now;
+ DateTimeOffset then = AddHours(now, 24);
+ if (then > now)
+ {
+ await MainWindow.Instance.ShowMessageAsync("Lucky Wheel not ready yet", "You can't spin the wheel yet, to override this add a custom timestamp");
+ return;
+ }
+ }
+ TimeStamp = now;
+ Properties.Settings.Default.LuckyWheelTimeStamp = now.ToString();
+ Properties.Settings.Default.Save();
+ Properties.Settings.Default.Reload();
+ Refresh();
+ //await MainWindow.Instance.ShowMessageAsync("Set TimeStamp", string.Format("You set the timestamp to {0}", timeStamp.ToString()));
+ }
+
+ private DateTimeOffset AddHours(DateTimeOffset offset, int hours)
+ {
+ return offset + new TimeSpan(hours, 0, 0);
+ }
+
+ private void CheckBox_UseTextBoxTimeStamp_Checked(object sender, RoutedEventArgs e)
+ {
+ TextBox_TimeStamp.Visibility = Visibility.Visible;
+ }
+
+ private void CheckBox_UseTextBoxTimeStamp_Unchecked(object sender, RoutedEventArgs e)
+ {
+ TextBox_TimeStamp.Visibility = Visibility.Collapsed;
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/Views/Settings/ThemeView.xaml b/GTAOnlineCasinoHelper/Views/Settings/ThemeView.xaml
new file mode 100644
index 0000000..2735f4a
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Views/Settings/ThemeView.xaml
@@ -0,0 +1,67 @@
+
+
+
+
+ 0 5 0 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/Views/Settings/ThemeView.xaml.cs b/GTAOnlineCasinoHelper/Views/Settings/ThemeView.xaml.cs
new file mode 100644
index 0000000..a4470d7
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Views/Settings/ThemeView.xaml.cs
@@ -0,0 +1,104 @@
+using MahApps.Metro;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Media;
+
+namespace GTAOnlineCasinoHelper.Views.Settings
+{
+
+ public partial class ThemeView : UserControl
+ {
+ public ThemeView()
+ {
+ this.InitializeComponent();
+ Theme current = ThemeManager.DetectTheme();
+ int selectedBaseColor = -1;
+ int i = 0;
+ foreach (string baseColor in ThemeManager.BaseColors)
+ {
+ if (current.BaseColorScheme.Equals(baseColor))
+ {
+ selectedBaseColor = i;
+ }
+ ComboBox_BaseColors.Items.Add(baseColor);
+ i++;
+ }
+ int selectedColorScheme = -1;
+ i = 0;
+ foreach (ColorScheme colorScheme in ThemeManager.ColorSchemes)
+ {
+ if (current.ColorScheme.Equals(colorScheme.Name))
+ {
+ selectedColorScheme = i;
+ }
+ SolidColorBrush solidColorBrush = colorScheme.ShowcaseBrush as SolidColorBrush;
+ if (solidColorBrush == null)
+ {
+ solidColorBrush = new SolidColorBrush(Colors.Black);
+ }
+ else
+ {
+ byte r = solidColorBrush.Color.R,
+ g = solidColorBrush.Color.G,
+ b = solidColorBrush.Color.B;
+ if (r + g + b > 382)
+ {
+ solidColorBrush = new SolidColorBrush(Colors.Black);
+ }
+ else
+ {
+ solidColorBrush = new SolidColorBrush(Colors.White);
+ }
+ }
+ ComboBoxItem item = new ComboBoxItem()
+ {
+ Background = colorScheme.ShowcaseBrush,
+ Foreground = solidColorBrush,
+ Content = colorScheme.Name,
+ };
+ ComboBox_ColorSchemes.Items.Add(item);
+ i++;
+ }
+ ComboBox_BaseColors.SelectedIndex = selectedBaseColor;
+ ComboBox_ColorSchemes.SelectedIndex = selectedColorScheme;
+ ComboBox_BaseColors.SelectionChanged += ComboBox_BaseColors_SelectionChanged;
+ ComboBox_ColorSchemes.SelectionChanged += ComboBox_ColorSchemes_SelectionChanged;
+ }
+
+ private void ComboBox_BaseColors_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ string baseColor = ComboBox_BaseColors.SelectedItem as string;
+ if (baseColor == null || baseColor.Equals(string.Empty))
+ {
+ return;
+ }
+ ThemeManager.ChangeThemeBaseColor(Application.Current, baseColor);
+ Properties.Settings.Default.ThemeBaseColor = baseColor;
+ Properties.Settings.Default.Save();
+ Properties.Settings.Default.Reload();
+ }
+
+ private void ComboBox_ColorSchemes_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ ComboBoxItem comboBoxItem = ComboBox_ColorSchemes.SelectedItem as ComboBoxItem;
+ if (comboBoxItem == null)
+ {
+ return;
+ }
+ string colorScheme = comboBoxItem.Content as string;
+ if (colorScheme == null || colorScheme.Equals(string.Empty))
+ {
+ return;
+ }
+ ThemeManager.ChangeThemeColorScheme(Application.Current, colorScheme);
+ Properties.Settings.Default.ThemeColorScheme = colorScheme;
+ Properties.Settings.Default.Save();
+ Properties.Settings.Default.Reload();
+ }
+ }
+}
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/Views/TestTwo.xaml b/GTAOnlineCasinoHelper/Views/TestTwo.xaml
new file mode 100644
index 0000000..54033de
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Views/TestTwo.xaml
@@ -0,0 +1,40 @@
+
+
+
+
+ 0 5 0 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/Views/TestTwo.xaml.cs b/GTAOnlineCasinoHelper/Views/TestTwo.xaml.cs
new file mode 100644
index 0000000..8e86b28
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Views/TestTwo.xaml.cs
@@ -0,0 +1,28 @@
+using MahApps.Metro.Controls;
+using MahApps.Metro.Controls.Dialogs;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+
+namespace GTAOnlineCasinoHelper.Views
+{
+
+ public partial class TestTwo : UserControl
+ {
+
+ public TestTwo()
+ {
+ this.InitializeComponent();
+ }
+
+ private async void Button_Click(object sender, RoutedEventArgs e)
+ {
+ await MainWindow.Instance.ShowMessageAsync("Test", "This is a test");
+ }
+ }
+
+}
\ No newline at end of file
diff --git a/GTAOnlineCasinoHelper/Windows/SettingsWindow.xaml b/GTAOnlineCasinoHelper/Windows/SettingsWindow.xaml
new file mode 100644
index 0000000..d81ab80
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Windows/SettingsWindow.xaml
@@ -0,0 +1,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/GTAOnlineCasinoHelper/Windows/SettingsWindow.xaml.cs b/GTAOnlineCasinoHelper/Windows/SettingsWindow.xaml.cs
new file mode 100644
index 0000000..e6fec72
--- /dev/null
+++ b/GTAOnlineCasinoHelper/Windows/SettingsWindow.xaml.cs
@@ -0,0 +1,30 @@
+using MahApps.Metro;
+using MahApps.Metro.Controls;
+using MahApps.Metro.Controls.Dialogs;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace GTAOnlineCasinoHelper.Windows
+{
+ ///
+ /// Interaction logic for SettingsWindow.xaml
+ ///
+ public partial class SettingsWindow : MetroWindow
+ {
+ public SettingsWindow()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/GTAOnlineCasinoHelper/packages.config b/GTAOnlineCasinoHelper/packages.config
new file mode 100644
index 0000000..f486f4f
--- /dev/null
+++ b/GTAOnlineCasinoHelper/packages.config
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index f8cd6b6..2fa8a23 100644
--- a/README.md
+++ b/README.md
@@ -1 +1 @@
-GTAOnlineCasinoHelper
+# GTAOnlineCasinoHelper