diff --git a/Autostart/App.config b/Autostart/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/Autostart/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Autostart/App.xaml b/Autostart/App.xaml new file mode 100644 index 0000000..eff3b88 --- /dev/null +++ b/Autostart/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/Autostart/App.xaml.cs b/Autostart/App.xaml.cs new file mode 100644 index 0000000..77ad6a6 --- /dev/null +++ b/Autostart/App.xaml.cs @@ -0,0 +1,9 @@ +namespace Autostart +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App + { + } +} \ No newline at end of file diff --git a/Autostart/Autostart.csproj b/Autostart/Autostart.csproj new file mode 100644 index 0000000..ac2b0d4 --- /dev/null +++ b/Autostart/Autostart.csproj @@ -0,0 +1,88 @@ + + + + + Debug + AnyCPU + {5238A05E-A1FD-462E-99D1-AA8C5BC4FC27} + WinExe + Autostart + Autostart + v4.8 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + + + + + + + \ No newline at end of file diff --git a/Autostart/MainWindow.xaml b/Autostart/MainWindow.xaml new file mode 100644 index 0000000..f80e6c3 --- /dev/null +++ b/Autostart/MainWindow.xaml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Autostart/MainWindow.xaml.cs b/Autostart/MainWindow.xaml.cs new file mode 100644 index 0000000..0e89c5e --- /dev/null +++ b/Autostart/MainWindow.xaml.cs @@ -0,0 +1,99 @@ +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.Navigation; +using System.Windows.Shapes; +using System.ComponentModel; +using System.Threading; +using System.Diagnostics; +using System.IO; + +namespace Autostart +{ + /// + /// Interaktionslogik für MainWindow.xaml + /// + public partial class MainWindow : Window + { + BackgroundWorker worker = new BackgroundWorker(); + UpdateVar startupProgressInt = new UpdateVar(); + public MainWindow() + { + Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory); + InitializeComponent(); + runOnStartup(); + } + public void runOnStartup() + { + worker.RunWorkerCompleted += Worker_RunWorkerCompleted; + worker.DoWork += Worker_DoWork; + startupProgressInt.ValueChanged += () => + { + changeProgressBar(); + }; + worker.RunWorkerAsync(); + } + + private void changeProgressBar() + { + this.Dispatcher.Invoke(() => + { + StartupProgress.Value = startupProgressInt.Value; + }); + } + + private void Worker_DoWork(object sender, DoWorkEventArgs e) + { + + for (int i = 0; i < 200; i++) + { + startupProgressInt.Value = i; + Thread.Sleep(25); + } + + try + { + Process.Start("WeeXnes.exe", "-autostart"); + }catch (Exception ex) + { + MessageBox.Show(ex.Message); + //MessageBox.Show(Directory.GetCurrentDirectory()); + //MessageBox.Show(Environment.CurrentDirectory); + } + Thread.Sleep(500); + } + + private void Worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) + { + this.Close(); + } + } + public class UpdateVar + { + private T _value; + + public Action ValueChanged; + + public T Value + { + get => _value; + + set + { + _value = value; + OnValueChanged(); + } + } + + protected virtual void OnValueChanged() => ValueChanged?.Invoke(); + } +} diff --git a/Autostart/Properties/AssemblyInfo.cs b/Autostart/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..794c226 --- /dev/null +++ b/Autostart/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("Autostart")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Autostart")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[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")] \ No newline at end of file diff --git a/Autostart/Properties/Resources.Designer.cs b/Autostart/Properties/Resources.Designer.cs new file mode 100644 index 0000000..a5139be --- /dev/null +++ b/Autostart/Properties/Resources.Designer.cs @@ -0,0 +1,69 @@ +//------------------------------------------------------------------------------ +// +// 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 Autostart.Properties +{ + /// + /// 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", + "4.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 ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = + new global::System.Resources.ResourceManager("Autostart.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; } + } + } +} \ No newline at end of file diff --git a/Autostart/Properties/Resources.resx b/Autostart/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Autostart/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Autostart/wicns.ico b/Autostart/wicns.ico new file mode 100644 index 0000000..b575d2d Binary files /dev/null and b/Autostart/wicns.ico differ diff --git a/Autostart/wicon.png b/Autostart/wicon.png new file mode 100644 index 0000000..e7bb1ae Binary files /dev/null and b/Autostart/wicon.png differ diff --git a/Release_Tool/Program.cs b/Release_Tool/Program.cs new file mode 100644 index 0000000..4c41c14 --- /dev/null +++ b/Release_Tool/Program.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.IO.Compression; + +namespace Release_Tool +{ + internal class Program + { + static List files = new List(); + public static string globalTimestamp = null; + public static string releaseFolder = "debug_release"; + public static string releaseFileName = "currentRelease.zip"; + public static string destFolder = null; + public static bool success = true; + public static void Main(string[] args) + { + SetTimestamp(); + SetPaths(); + Console.WriteLine("Folder -> " + globalTimestamp); + CheckDirectories(); + GetFiles(); + PackFiles(); + if (!success) + { + Console.WriteLine("Something went wrong"); + Console.ReadLine(); + } + else + { + PackIntoZip(); + Console.WriteLine("Build succeeded | " + globalTimestamp); + Console.ReadLine(); + } + } + + private static void PackIntoZip() + { + try + { + if(File.Exists(Path.Combine(releaseFolder, releaseFileName))) + { + File.Delete(Path.Combine(releaseFolder, "currentRelease.zip")); + ZipFile.CreateFromDirectory(destFolder, Path.Combine(releaseFolder, releaseFileName)); + } + else + { + ZipFile.CreateFromDirectory(destFolder, Path.Combine(releaseFolder, releaseFileName)); + } + + }catch (Exception ex) + { + Console.WriteLine(ex); + Console.ReadLine(); + } + } + + private static void SetPaths() + { + destFolder = Path.Combine(releaseFolder, globalTimestamp); + } + + private static void CheckDirectories() + { + if (!Directory.Exists(releaseFolder)) + { + Directory.CreateDirectory(releaseFolder); + } + if(!Directory.Exists(destFolder)) + { + Directory.CreateDirectory(destFolder); + } + } + + private static void SetTimestamp() + { + string date = DateTime.Now.ToString("dd.MM.yyyy"); + string time = DateTime.Now.ToString("HH.mm.ss"); + string timestamp = date + " - " + time; + globalTimestamp = timestamp; + } + + private static void PackFiles() + { + foreach(file fileobj in files) + { + try + { + File.Copy(fileobj.path, Path.Combine(destFolder, fileobj.newfilename)); + Console.WriteLine("Copied " + fileobj.path); + } + catch (Exception ex) + { + Console.WriteLine("Coudnt find " + fileobj.path + "| ->" + ex.GetType()); + success = false; + } + } + } + + private static void GetFiles() + { + files.Add(new file(@"WeeXnes\bin\Debug\WeeXnes.exe", "WeeXnes.exe")); + files.Add(new file(@"WeeXnes_UAC\bin\Debug\WeeXnes_UAC.exe", "WeeXnes_UAC.exe")); + files.Add(new file(@"WeeXnes\bin\Debug\DiscordRPC.dll", "DiscordRPC.dll")); + files.Add(new file(@"WeeXnes\bin\Debug\Newtonsoft.Json.dll", "Newtonsoft.Json.dll")); + files.Add(new file(@"Autostart\bin\Debug\Autostart.exe", "Autostart.exe")); + } + } +} \ No newline at end of file diff --git a/Release_Tool/Properties/AssemblyInfo.cs b/Release_Tool/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..be20910 --- /dev/null +++ b/Release_Tool/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// 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("Release_Tool")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Release_Tool")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("4C09AD12-B48E-40ED-B418-CF868889E317")] + +// 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")] \ No newline at end of file diff --git a/Release_Tool/Release_Tool.csproj b/Release_Tool/Release_Tool.csproj new file mode 100644 index 0000000..1bcae78 --- /dev/null +++ b/Release_Tool/Release_Tool.csproj @@ -0,0 +1,60 @@ + + + + + Debug + AnyCPU + {4C09AD12-B48E-40ED-B418-CF868889E317} + Exe + Properties + Release_Tool + Release_Tool + v4.8 + 512 + true + wicns.ico + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + diff --git a/Release_Tool/file.cs b/Release_Tool/file.cs new file mode 100644 index 0000000..6760032 --- /dev/null +++ b/Release_Tool/file.cs @@ -0,0 +1,13 @@ +namespace Release_Tool +{ + public class file + { + public string path { get; set; } + public string newfilename { get; set; } + public file(string _path, string _newfilename) + { + this.path = _path; + this.newfilename = _newfilename; + } + } +} \ No newline at end of file diff --git a/Release_Tool/wicns.ico b/Release_Tool/wicns.ico new file mode 100644 index 0000000..b575d2d Binary files /dev/null and b/Release_Tool/wicns.ico differ diff --git a/WeeXnes.sln b/WeeXnes.sln index 2312d66..7f70992 100644 --- a/WeeXnes.sln +++ b/WeeXnes.sln @@ -2,6 +2,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeeXnes", "WeeXnes\WeeXnes.csproj", "{4B33CEE7-C74D-43B9-B99A-8B273D5195BC}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Autostart", "Autostart\Autostart.csproj", "{5238A05E-A1FD-462E-99D1-AA8C5BC4FC27}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WeeXnes_UAC", "WeeXnes_UAC\WeeXnes_UAC.csproj", "{2DCC0DCD-7843-4719-9FDD-1786924CF941}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Release_Tool", "Release_Tool\Release_Tool.csproj", "{4C09AD12-B48E-40ED-B418-CF868889E317}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -12,5 +18,17 @@ Global {4B33CEE7-C74D-43B9-B99A-8B273D5195BC}.Debug|Any CPU.Build.0 = Debug|Any CPU {4B33CEE7-C74D-43B9-B99A-8B273D5195BC}.Release|Any CPU.ActiveCfg = Release|Any CPU {4B33CEE7-C74D-43B9-B99A-8B273D5195BC}.Release|Any CPU.Build.0 = Release|Any CPU + {5238A05E-A1FD-462E-99D1-AA8C5BC4FC27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5238A05E-A1FD-462E-99D1-AA8C5BC4FC27}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5238A05E-A1FD-462E-99D1-AA8C5BC4FC27}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5238A05E-A1FD-462E-99D1-AA8C5BC4FC27}.Release|Any CPU.Build.0 = Release|Any CPU + {2DCC0DCD-7843-4719-9FDD-1786924CF941}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2DCC0DCD-7843-4719-9FDD-1786924CF941}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2DCC0DCD-7843-4719-9FDD-1786924CF941}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2DCC0DCD-7843-4719-9FDD-1786924CF941}.Release|Any CPU.Build.0 = Release|Any CPU + {4C09AD12-B48E-40ED-B418-CF868889E317}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4C09AD12-B48E-40ED-B418-CF868889E317}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4C09AD12-B48E-40ED-B418-CF868889E317}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4C09AD12-B48E-40ED-B418-CF868889E317}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/WeeXnes_UAC/App.config b/WeeXnes_UAC/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/WeeXnes_UAC/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/WeeXnes_UAC/App.xaml b/WeeXnes_UAC/App.xaml new file mode 100644 index 0000000..c2863e3 --- /dev/null +++ b/WeeXnes_UAC/App.xaml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/WeeXnes_UAC/App.xaml.cs b/WeeXnes_UAC/App.xaml.cs new file mode 100644 index 0000000..b129ed6 --- /dev/null +++ b/WeeXnes_UAC/App.xaml.cs @@ -0,0 +1,58 @@ +using System; +using System.Windows; +using Microsoft.Win32; + +namespace WeeXnes_UAC +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App + { + public static string subkey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"; + public static string autoStartKeyName = "WeeXnes"; + private void App_OnStartup(object sender, StartupEventArgs e) + { + if(e.Args.Length > 0) + { + for(int i = 0; i < e.Args.Length; i++) + { + if(e.Args[i] == "-EnableAutostart") + { + enableAutostart(); + } + if(e.Args[i] == "-DisableAutostart") + { + disableAutostart(); + } + } + } + else + { + MessageBox.Show("No Arguments"); + } + } + + private void disableAutostart() + { + RegistryKey key = Registry.CurrentUser.CreateSubKey(subkey); + try + { + key.DeleteValue(autoStartKeyName); + } + catch (Exception ex) + { + Console.WriteLine(ex); + } + key.Close(); + } + + private void enableAutostart() + { + string app = AppDomain.CurrentDomain.BaseDirectory + "Autostart.exe"; + RegistryKey key = Registry.CurrentUser.CreateSubKey(subkey); + key.SetValue(autoStartKeyName, app); + key.Close(); + } + } +} \ No newline at end of file diff --git a/WeeXnes_UAC/MainWindow.xaml b/WeeXnes_UAC/MainWindow.xaml new file mode 100644 index 0000000..21f953b --- /dev/null +++ b/WeeXnes_UAC/MainWindow.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/WeeXnes_UAC/MainWindow.xaml.cs b/WeeXnes_UAC/MainWindow.xaml.cs new file mode 100644 index 0000000..e39ab96 --- /dev/null +++ b/WeeXnes_UAC/MainWindow.xaml.cs @@ -0,0 +1,14 @@ +namespace WeeXnes_UAC +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow + { + public MainWindow() + { + this.Close(); + //InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/WeeXnes_UAC/Properties/AssemblyInfo.cs b/WeeXnes_UAC/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..febf987 --- /dev/null +++ b/WeeXnes_UAC/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("WeeXnes_UAC")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WeeXnes_UAC")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[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")] \ No newline at end of file diff --git a/WeeXnes_UAC/Properties/Resources.Designer.cs b/WeeXnes_UAC/Properties/Resources.Designer.cs new file mode 100644 index 0000000..65a1de8 --- /dev/null +++ b/WeeXnes_UAC/Properties/Resources.Designer.cs @@ -0,0 +1,69 @@ +//------------------------------------------------------------------------------ +// +// 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 WeeXnes_UAC.Properties +{ + /// + /// 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", + "4.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 ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = + new global::System.Resources.ResourceManager("WeeXnes_UAC.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; } + } + } +} \ No newline at end of file diff --git a/WeeXnes_UAC/Properties/Resources.resx b/WeeXnes_UAC/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/WeeXnes_UAC/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WeeXnes_UAC/WeeXnes_UAC.csproj b/WeeXnes_UAC/WeeXnes_UAC.csproj new file mode 100644 index 0000000..3983ca9 --- /dev/null +++ b/WeeXnes_UAC/WeeXnes_UAC.csproj @@ -0,0 +1,85 @@ + + + + + Debug + AnyCPU + {2DCC0DCD-7843-4719-9FDD-1786924CF941} + WinExe + WeeXnes_UAC + WeeXnes_UAC + v4.8 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + + + + \ No newline at end of file