Initial commit

WIP_branch 1.0.0.0
Oskar Nordling 5 years ago
parent dd67c0706b
commit fbd8a52448
Signed by: oskar3123
GPG Key ID: 497688E918285A5C
  1. 25
      GTAOnlineCasinoHelper.sln
  2. 24
      GTAOnlineCasinoHelper/App.config
  3. 17
      GTAOnlineCasinoHelper/App.xaml
  4. 17
      GTAOnlineCasinoHelper/App.xaml.cs
  5. 4
      GTAOnlineCasinoHelper/FodyWeavers.xml
  6. 111
      GTAOnlineCasinoHelper/FodyWeavers.xsd
  7. 156
      GTAOnlineCasinoHelper/GTAOnlineCasinoHelper.csproj
  8. 50
      GTAOnlineCasinoHelper/MainWindow.xaml
  9. 60
      GTAOnlineCasinoHelper/MainWindow.xaml.cs
  10. 55
      GTAOnlineCasinoHelper/Properties/AssemblyInfo.cs
  11. 63
      GTAOnlineCasinoHelper/Properties/Resources.Designer.cs
  12. 120
      GTAOnlineCasinoHelper/Properties/Resources.resx
  13. 62
      GTAOnlineCasinoHelper/Properties/Settings.Designer.cs
  14. 15
      GTAOnlineCasinoHelper/Properties/Settings.settings
  15. 74
      GTAOnlineCasinoHelper/Views/LuckyWheel.xaml
  16. 112
      GTAOnlineCasinoHelper/Views/LuckyWheel.xaml.cs
  17. 67
      GTAOnlineCasinoHelper/Views/Settings/ThemeView.xaml
  18. 104
      GTAOnlineCasinoHelper/Views/Settings/ThemeView.xaml.cs
  19. 40
      GTAOnlineCasinoHelper/Views/TestTwo.xaml
  20. 28
      GTAOnlineCasinoHelper/Views/TestTwo.xaml.cs
  21. 43
      GTAOnlineCasinoHelper/Windows/SettingsWindow.xaml
  22. 30
      GTAOnlineCasinoHelper/Windows/SettingsWindow.xaml.cs
  23. 9
      GTAOnlineCasinoHelper/packages.config
  24. 2
      README.md

@ -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

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="GTAOnlineCasinoHelper.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
<userSettings>
<GTAOnlineCasinoHelper.Properties.Settings>
<setting name="LuckyWheelTimeStamp" serializeAs="String">
<value />
</setting>
<setting name="ThemeBaseColor" serializeAs="String">
<value />
</setting>
<setting name="ThemeColorScheme" serializeAs="String">
<value />
</setting>
</GTAOnlineCasinoHelper.Properties.Settings>
</userSettings>
</configuration>

@ -0,0 +1,17 @@
<Application x:Class="GTAOnlineCasinoHelper.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:GTAOnlineCasinoHelper"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! -->
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
<!-- Accent and AppTheme setting -->
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Dark.Teal.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>

@ -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
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura />
</Weavers>

@ -0,0 +1,111 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element name="Weavers">
<xs:complexType>
<xs:all>
<xs:element name="Costura" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:all>
<xs:element minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
<xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>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.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeDebugSymbols" type="xs:boolean">
<xs:annotation>
<xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCompression" type="xs:boolean">
<xs:annotation>
<xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCleanup" type="xs:boolean">
<xs:annotation>
<xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="LoadAtModuleInit" type="xs:boolean">
<xs:annotation>
<xs:documentation>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.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>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.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="VerifyAssembly" type="xs:boolean">
<xs:annotation>
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
<xs:annotation>
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="GenerateXsd" type="xs:boolean">
<xs:annotation>
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

@ -0,0 +1,156 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Costura.Fody.3.3.3\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.3.3.3\build\Costura.Fody.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{F73D2AD0-DCCF-41C5-8903-1ED848F2269D}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>GTAOnlineCasinoHelper</RootNamespace>
<AssemblyName>GTAOnlineCasinoHelper</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="ControlzEx, Version=4.0.0.0, Culture=neutral, PublicKeyToken=69f1c32f803d307e, processorArchitecture=MSIL">
<HintPath>..\packages\ControlzEx.4.0.1\lib\net45\ControlzEx.dll</HintPath>
</Reference>
<Reference Include="Costura, Version=3.3.3.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.3.3.3\lib\net40\Costura.dll</HintPath>
</Reference>
<Reference Include="MahApps.Metro, Version=2.0.0.0, Culture=neutral, PublicKeyToken=51482d6f650b2b3f, processorArchitecture=MSIL">
<HintPath>..\packages\MahApps.Metro.2.0.0-alpha0455\lib\net46\MahApps.Metro.dll</HintPath>
</Reference>
<Reference Include="MahApps.Metro.IconPacks, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0c0d510f9915137a, processorArchitecture=MSIL">
<HintPath>..\packages\MahApps.Metro.IconPacks.3.0.0-alpha0206\lib\net46\MahApps.Metro.IconPacks.dll</HintPath>
</Reference>
<Reference Include="MahApps.Metro.IconPacks.Core, Version=3.0.0.0, Culture=neutral, PublicKeyToken=0c0d510f9915137a, processorArchitecture=MSIL">
<HintPath>..\packages\MahApps.Metro.IconPacks.3.0.0-alpha0206\lib\net46\MahApps.Metro.IconPacks.Core.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Xaml.Behaviors, Version=1.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Xaml.Behaviors.Wpf.1.0.1\lib\net45\Microsoft.Xaml.Behaviors.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.DataAnnotations" />
<Reference Include="System.Configuration" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Compile Include="Views\Settings\ThemeView.xaml.cs">
<DependentUpon>ThemeView.xaml</DependentUpon>
</Compile>
<Compile Include="Views\TestTwo.xaml.cs">
<DependentUpon>TestTwo.xaml</DependentUpon>
</Compile>
<Compile Include="Views\LuckyWheel.xaml.cs">
<DependentUpon>LuckyWheel.xaml</DependentUpon>
</Compile>
<Compile Include="Windows\SettingsWindow.xaml.cs">
<DependentUpon>SettingsWindow.xaml</DependentUpon>
</Compile>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Page Include="Views\Settings\ThemeView.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</Page>
<Page Include="Views\TestTwo.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Views\LuckyWheel.xaml">
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
</Page>
<Page Include="Windows\SettingsWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Fody.4.2.1\build\Fody.targets" Condition="Exists('..\packages\Fody.4.2.1\build\Fody.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>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}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Fody.4.2.1\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.4.2.1\build\Fody.targets'))" />
<Error Condition="!Exists('..\packages\Costura.Fody.3.3.3\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.3.3.3\build\Costura.Fody.props'))" />
</Target>
</Project>

@ -0,0 +1,50 @@
<Controls:MetroWindow
x:Class="GTAOnlineCasinoHelper.MainWindow"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:GTAOnlineCasinoHelper"
xmlns:Views="clr-namespace:GTAOnlineCasinoHelper.Views"
mc:Ignorable="d"
Title="GTA Online Casino Helper"
GlowBrush="{DynamicResource MahApps.Brushes.Accent}"
Height="450"
Width="800">
<Controls:MetroWindow.WindowButtonCommands>
<Controls:WindowButtonCommands Style="{DynamicResource MahApps.Styles.WindowButtonCommands.Win10}" />
</Controls:MetroWindow.WindowButtonCommands>
<Controls:MetroWindow.RightWindowCommands>
<Controls:WindowCommands>
<Button Content="settings"
Click="ButtonSettings_Click"/>
</Controls:WindowCommands>
</Controls:MetroWindow.RightWindowCommands>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Controls:MetroAnimatedSingleRowTabControl x:Name="MainTabControl" Grid.Row="0">
<TabItem Header="LuckyWheel">
<ScrollViewer Margin="2"
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto">
<Views:LuckyWheel />
</ScrollViewer>
</TabItem>
<!--<TabItem Header="TestTwo">
<ScrollViewer Margin="2"
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto">
<Views:TestTwo />
</ScrollViewer>
</TabItem>-->
</Controls:MetroAnimatedSingleRowTabControl>
</Grid>
</Controls:MetroWindow>

@ -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
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
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");
}
}
}

@ -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
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> 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")]

@ -0,0 +1,63 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GTAOnlineCasinoHelper.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// 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() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[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;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
}
}

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

@ -0,0 +1,62 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
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;
}
}
}
}

@ -0,0 +1,15 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="GTAOnlineCasinoHelper.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="LuckyWheelTimeStamp" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="ThemeBaseColor" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="ThemeColorScheme" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<UserControl x:Class="GTAOnlineCasinoHelper.Views.LuckyWheel"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:GTAOnlineCasinoHelper="clr-namespace:GTAOnlineCasinoHelper">
<UserControl.Resources>
<Thickness x:Key="ControlMargin">0 5 0 0</Thickness>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<StackPanel Grid.Column="0"
Grid.Row="0"
HorizontalAlignment="Center">
<CheckBox x:Name="CheckBox_UseTextBoxTimeStamp"
Content="Use Custom TimeStamp"
IsChecked="False"
Checked="CheckBox_UseTextBoxTimeStamp_Checked"
Unchecked="CheckBox_UseTextBoxTimeStamp_Unchecked" />
<TextBox x:Name="TextBox_TimeStamp"
Visibility="Collapsed"/>
<Button Content="Add TimeStamp"
Click="Button_AddTimeStamp"/>
</StackPanel>
<StackPanel Grid.Column="0"
Grid.Row="1"
HorizontalAlignment="Center">
<TextBlock x:Name="TextBlock_TimeStampTextBlock"
TextAlignment="Center" />
</StackPanel>
<StackPanel Grid.Column="1"
Grid.Row="0"
HorizontalAlignment="Center">
<TextBlock Text="Lucky Wheel Countdown" />
</StackPanel>
<StackPanel Grid.Column="1"
Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBlock x:Name="TextBlock_TimerTextBlock"
TextAlignment="Center"
Text="Text"
FontSize="32"/>
</StackPanel>
</Grid>
</UserControl>
<!--<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="GTAOnlineCasinoHelper.Views.LuckyWheel">
<ContentView.Content>
<StackLayout>
<Label Text="Hello Xamarin.Forms!" />
</StackLayout>
</ContentView.Content>
</ContentView>-->

@ -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;
}
}
}

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<UserControl x:Class="GTAOnlineCasinoHelper.Views.Settings.ThemeView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:GTAOnlineCasinoHelper="clr-namespace:GTAOnlineCasinoHelper"
xmlns:system="clr-namespace:System;assembly=mscorlib">
<UserControl.Resources>
<Thickness x:Key="ControlMargin">0 5 0 0</Thickness>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Column="0"
Grid.Row="0"
HorizontalAlignment="Center">
<TextBlock TextAlignment="Center"
Text="Base Color"
FontSize="32"/>
</StackPanel>
<StackPanel Grid.Column="0"
Grid.Row="1"
HorizontalAlignment="Center">
<ComboBox x:Name="ComboBox_BaseColors" />
</StackPanel>
<StackPanel Grid.Column="0"
Grid.Row="2"
HorizontalAlignment="Center">
<TextBlock TextAlignment="Center"
Text="Color Scheme"
FontSize="32"/>
</StackPanel>
<StackPanel Grid.Column="0"
Grid.Row="3"
HorizontalAlignment="Center">
<ComboBox x:Name="ComboBox_ColorSchemes" />
</StackPanel>
</Grid>
</UserControl>
<!--<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="GTAOnlineCasinoHelper.Views.LuckyWheel">
<ContentView.Content>
<StackLayout>
<Label Text="Hello Xamarin.Forms!" />
</StackLayout>
</ContentView.Content>
</ContentView>-->

@ -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();
}
}
}

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<UserControl x:Class="GTAOnlineCasinoHelper.Views.TestTwo"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:GTAOnlineCasinoHelper="clr-namespace:GTAOnlineCasinoHelper">
<UserControl.Resources>
<Thickness x:Key="ControlMargin">0 5 0 0</Thickness>
</UserControl.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel Grid.Column="0"
Grid.Row="0"
HorizontalAlignment="Center">
<Button Content="Test button"
Click="Button_Click"/>
</StackPanel>
</Grid>
</UserControl>
<!--<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="GTAOnlineCasinoHelper.Views.LuckyWheel">
<ContentView.Content>
<StackLayout>
<Label Text="Hello Xamarin.Forms!" />
</StackLayout>
</ContentView.Content>
</ContentView>-->

@ -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");
}
}
}

@ -0,0 +1,43 @@
<Controls:MetroWindow
x:Class="GTAOnlineCasinoHelper.Windows.SettingsWindow"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:GTAOnlineCasinoHelper"
xmlns:Views="clr-namespace:GTAOnlineCasinoHelper.Views.Settings"
mc:Ignorable="d"
Title="Settings"
GlowBrush="{DynamicResource MahApps.Brushes.Accent}"
Height="450"
Width="450">
<Controls:MetroWindow.WindowButtonCommands>
<Controls:WindowButtonCommands Style="{DynamicResource MahApps.Styles.WindowButtonCommands.Win10}" />
</Controls:MetroWindow.WindowButtonCommands>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Controls:MetroAnimatedSingleRowTabControl x:Name="MainTabControl" Grid.Row="0">
<TabItem Header="Theme">
<ScrollViewer Margin="2"
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto">
<Views:ThemeView />
</ScrollViewer>
</TabItem>
<!--<TabItem Header="TestTwo">
<ScrollViewer Margin="2"
HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto">
<Views:TestTwo />
</ScrollViewer>
</TabItem>-->
</Controls:MetroAnimatedSingleRowTabControl>
</Grid>
</Controls:MetroWindow>

@ -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
{
/// <summary>
/// Interaction logic for SettingsWindow.xaml
/// </summary>
public partial class SettingsWindow : MetroWindow
{
public SettingsWindow()
{
InitializeComponent();
}
}
}

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ControlzEx" version="4.0.1" targetFramework="net461" />
<package id="Costura.Fody" version="3.3.3" targetFramework="net461" />
<package id="Fody" version="4.2.1" targetFramework="net461" developmentDependency="true" />
<package id="MahApps.Metro" version="2.0.0-alpha0455" targetFramework="net461" />
<package id="MahApps.Metro.IconPacks" version="3.0.0-alpha0206" targetFramework="net461" />
<package id="Microsoft.Xaml.Behaviors.Wpf" version="1.0.1" targetFramework="net461" />
</packages>

@ -1 +1 @@
GTAOnlineCasinoHelper
# GTAOnlineCasinoHelper

Loading…
Cancel
Save