From aa907ed494798845c6cb27eeb0bd9157a54c5bd8 Mon Sep 17 00:00:00 2001 From: Dylan Bickerstaff Date: Wed, 19 Jun 2019 01:30:09 -0400 Subject: [PATCH] Core Initial Commit --- SuperGrate/App.config | 6 - SuperGrate/Classes/CopyUSMT.cs | 12 ++ SuperGrate/Classes/LoadState.cs | 12 ++ SuperGrate/Classes/Logger.cs | 46 ++++ SuperGrate/Classes/Misc.cs | 67 ++++++ SuperGrate/Classes/ScanState.cs | 12 ++ SuperGrate/Main.Designer.cs | 239 ++++++++++++++++++++- SuperGrate/Main.cs | 38 ++++ SuperGrate/Main.resx | 120 +++++++++++ SuperGrate/Program.cs | 2 - SuperGrate/Properties/AssemblyInfo.cs | 16 +- SuperGrate/Properties/Settings.Designer.cs | 30 --- SuperGrate/Properties/Settings.settings | 7 - SuperGrate/SuperGrate.csproj | 21 +- 14 files changed, 560 insertions(+), 68 deletions(-) delete mode 100644 SuperGrate/App.config create mode 100644 SuperGrate/Classes/CopyUSMT.cs create mode 100644 SuperGrate/Classes/LoadState.cs create mode 100644 SuperGrate/Classes/Logger.cs create mode 100644 SuperGrate/Classes/Misc.cs create mode 100644 SuperGrate/Classes/ScanState.cs create mode 100644 SuperGrate/Main.resx delete mode 100644 SuperGrate/Properties/Settings.Designer.cs delete mode 100644 SuperGrate/Properties/Settings.settings diff --git a/SuperGrate/App.config b/SuperGrate/App.config deleted file mode 100644 index 56efbc7..0000000 --- a/SuperGrate/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/SuperGrate/Classes/CopyUSMT.cs b/SuperGrate/Classes/CopyUSMT.cs new file mode 100644 index 0000000..819a17e --- /dev/null +++ b/SuperGrate/Classes/CopyUSMT.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SuperGrate.Classes +{ + class CopyUSMT + { + } +} diff --git a/SuperGrate/Classes/LoadState.cs b/SuperGrate/Classes/LoadState.cs new file mode 100644 index 0000000..fdefbf8 --- /dev/null +++ b/SuperGrate/Classes/LoadState.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SuperGrate.Classes +{ + class LoadState + { + } +} diff --git a/SuperGrate/Classes/Logger.cs b/SuperGrate/Classes/Logger.cs new file mode 100644 index 0000000..5290c82 --- /dev/null +++ b/SuperGrate/Classes/Logger.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Drawing; + +namespace SuperGrate +{ + class Logger + { + private static void WriteLog(string Text, Color Color) + { + Main.Form.Invoke(new Action(() => { + Main.LoggerBox.SelectionColor = Color; + Text = DateTime.Now.ToShortTimeString() + "> " + Text; + Text = Text + "\n"; + Main.LoggerBox.AppendText(Text); + try + { + Main.LoggerBox.ScrollToCaret(); + } + catch(Exception) + { + Console.WriteLine("Ignoring an error when user clicks off of an input into the Log Box."); + } + })); + } + public static void Information(string Text) + { + WriteLog(Text, Color.White); + } + public static void Success(string Text) + { + WriteLog(Text, Color.Green); + } + public static void Warning(string Text) + { + WriteLog(Text, Color.Yellow); + } + public static void Error(string Text) + { + WriteLog(Text, Color.Red); + } + } +} diff --git a/SuperGrate/Classes/Misc.cs b/SuperGrate/Classes/Misc.cs new file mode 100644 index 0000000..13c610a --- /dev/null +++ b/SuperGrate/Classes/Misc.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Microsoft.Win32; +using System.Net.NetworkInformation; + +namespace SuperGrate +{ + class Misc + { + static public async Task Ping(string Host) + { + try + { + Ping ping = new Ping(); + PingReply reply = await ping.SendPingAsync(Host, 1000); + if (reply.Status == IPStatus.Success) + { + return true; + } + else + { + return false; + } + } + catch(PingException e) + { + Logger.Error(e.InnerException.Message); + return false; + } + catch(Exception e) + { + Logger.Error(e.Message); + return false; + } + } + static public Task GetUsersFromHost(string Host) + { + return Task.Run(() => + { + try + { + RegistryKey remoteReg = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, Host); + RegistryKey profileList = remoteReg.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList", false); + foreach (string profileKey in profileList.GetSubKeyNames()) + { + Logger.Success(profileKey); + } + return new string[0]; + } + catch(System.Security.SecurityException e) + { + Logger.Error(e.Message); + Logger.Error("Failed to get a list of users, Please make sure the user \"" + Environment.UserDomainName + "\\" + Environment.UserName + "\" is an administrator on the host: " + Host); + return null; + } + catch(Exception e) + { + Logger.Error(e.Message); + return null; + } + }); + } + } +} diff --git a/SuperGrate/Classes/ScanState.cs b/SuperGrate/Classes/ScanState.cs new file mode 100644 index 0000000..bab51b5 --- /dev/null +++ b/SuperGrate/Classes/ScanState.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SuperGrate.Classes +{ + class ScanState + { + } +} diff --git a/SuperGrate/Main.Designer.cs b/SuperGrate/Main.Designer.cs index 7d99242..67dd5b3 100644 --- a/SuperGrate/Main.Designer.cs +++ b/SuperGrate/Main.Designer.cs @@ -28,13 +28,246 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); + this.LogBox = new System.Windows.Forms.RichTextBox(); + this.progressBar1 = new System.Windows.Forms.ProgressBar(); + this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.tbSourceComputer = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.textBox3 = new System.Windows.Forms.TextBox(); + this.listBox1 = new System.Windows.Forms.ListBox(); + this.btStart = new System.Windows.Forms.Button(); + this.tableLayoutPanel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); + this.splitContainer1.Panel1.SuspendLayout(); + this.splitContainer1.Panel2.SuspendLayout(); + this.splitContainer1.SuspendLayout(); + this.tableLayoutPanel2.SuspendLayout(); + this.SuspendLayout(); + // + // LogBox + // + this.LogBox.BackColor = System.Drawing.Color.Black; + this.LogBox.Dock = System.Windows.Forms.DockStyle.Fill; + this.LogBox.ForeColor = System.Drawing.Color.White; + this.LogBox.Location = new System.Drawing.Point(3, 4); + this.LogBox.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.LogBox.Name = "LogBox"; + this.LogBox.ReadOnly = true; + this.LogBox.Size = new System.Drawing.Size(204, 314); + this.LogBox.TabIndex = 0; + this.LogBox.Text = ""; + // + // progressBar1 + // + this.progressBar1.Dock = System.Windows.Forms.DockStyle.Fill; + this.progressBar1.ForeColor = System.Drawing.Color.Blue; + this.progressBar1.Location = new System.Drawing.Point(3, 326); + this.progressBar1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.progressBar1.Name = "progressBar1"; + this.progressBar1.Size = new System.Drawing.Size(204, 22); + this.progressBar1.TabIndex = 1; + this.progressBar1.Value = 100; + // + // tableLayoutPanel1 + // + this.tableLayoutPanel1.ColumnCount = 1; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel1.Controls.Add(this.LogBox, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.progressBar1, 0, 1); + this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.tableLayoutPanel1.Name = "tableLayoutPanel1"; + this.tableLayoutPanel1.RowCount = 2; + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); + this.tableLayoutPanel1.Size = new System.Drawing.Size(210, 352); + this.tableLayoutPanel1.TabIndex = 2; + // + // splitContainer1 + // + this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + this.splitContainer1.Location = new System.Drawing.Point(5, 5); + this.splitContainer1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.splitContainer1.Name = "splitContainer1"; + // + // splitContainer1.Panel1 + // + this.splitContainer1.Panel1.Controls.Add(this.tableLayoutPanel2); + // + // splitContainer1.Panel2 + // + this.splitContainer1.Panel2.Controls.Add(this.tableLayoutPanel1); + this.splitContainer1.Size = new System.Drawing.Size(601, 352); + this.splitContainer1.SplitterDistance = 387; + this.splitContainer1.TabIndex = 3; + // + // tableLayoutPanel2 + // + this.tableLayoutPanel2.ColumnCount = 2; + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F)); + this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel2.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel2.Controls.Add(this.label2, 0, 2); + this.tableLayoutPanel2.Controls.Add(this.label3, 0, 1); + this.tableLayoutPanel2.Controls.Add(this.label5, 0, 3); + this.tableLayoutPanel2.Controls.Add(this.tbSourceComputer, 1, 0); + this.tableLayoutPanel2.Controls.Add(this.textBox2, 1, 1); + this.tableLayoutPanel2.Controls.Add(this.textBox3, 1, 2); + this.tableLayoutPanel2.Controls.Add(this.listBox1, 1, 3); + this.tableLayoutPanel2.Controls.Add(this.btStart, 0, 4); + this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel2.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.tableLayoutPanel2.Name = "tableLayoutPanel2"; + this.tableLayoutPanel2.RowCount = 5; + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); + this.tableLayoutPanel2.Size = new System.Drawing.Size(387, 352); + this.tableLayoutPanel2.TabIndex = 0; + // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Fill; + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(114, 30); + this.label1.TabIndex = 0; + this.label1.Text = "Source Computer"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label2 + // + this.label2.Dock = System.Windows.Forms.DockStyle.Fill; + this.label2.Location = new System.Drawing.Point(3, 60); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(114, 30); + this.label2.TabIndex = 1; + this.label2.Text = "Destination Computer"; + this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label3 + // + this.label3.Dock = System.Windows.Forms.DockStyle.Fill; + this.label3.Location = new System.Drawing.Point(3, 30); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(114, 30); + this.label3.TabIndex = 2; + this.label3.Text = "Migration Store"; + this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // label5 + // + this.label5.Dock = System.Windows.Forms.DockStyle.Fill; + this.label5.Location = new System.Drawing.Point(3, 90); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(114, 232); + this.label5.TabIndex = 4; + this.label5.Text = "Users"; + this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // tbSourceComputer + // + this.tbSourceComputer.Dock = System.Windows.Forms.DockStyle.Fill; + this.tbSourceComputer.Location = new System.Drawing.Point(123, 4); + this.tbSourceComputer.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.tbSourceComputer.Multiline = true; + this.tbSourceComputer.Name = "tbSourceComputer"; + this.tbSourceComputer.Size = new System.Drawing.Size(261, 22); + this.tbSourceComputer.TabIndex = 5; + this.tbSourceComputer.Leave += new System.EventHandler(this.TbSourceComputer_Leave); + // + // textBox2 + // + this.textBox2.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBox2.Location = new System.Drawing.Point(123, 34); + this.textBox2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.textBox2.Multiline = true; + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(261, 22); + this.textBox2.TabIndex = 6; + // + // textBox3 + // + this.textBox3.Dock = System.Windows.Forms.DockStyle.Fill; + this.textBox3.Location = new System.Drawing.Point(123, 64); + this.textBox3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.textBox3.Multiline = true; + this.textBox3.Name = "textBox3"; + this.textBox3.Size = new System.Drawing.Size(261, 22); + this.textBox3.TabIndex = 7; + // + // listBox1 + // + this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.listBox1.FormattingEnabled = true; + this.listBox1.IntegralHeight = false; + this.listBox1.Location = new System.Drawing.Point(123, 94); + this.listBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.listBox1.Name = "listBox1"; + this.listBox1.Size = new System.Drawing.Size(261, 224); + this.listBox1.TabIndex = 8; + // + // btStart + // + this.tableLayoutPanel2.SetColumnSpan(this.btStart, 2); + this.btStart.Dock = System.Windows.Forms.DockStyle.Fill; + this.btStart.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.btStart.Location = new System.Drawing.Point(3, 325); + this.btStart.Name = "btStart"; + this.btStart.Size = new System.Drawing.Size(381, 24); + this.btStart.TabIndex = 9; + this.btStart.Text = "Start"; + this.btStart.UseVisualStyleBackColor = true; + this.btStart.Click += new System.EventHandler(this.BtStart_Click); + // + // Main + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "Form1"; + this.ClientSize = new System.Drawing.Size(611, 362); + this.Controls.Add(this.splitContainer1); + this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.Name = "Main"; + this.Padding = new System.Windows.Forms.Padding(5); + this.Text = "Super Grate"; + this.Load += new System.EventHandler(this.Main_Load); + this.tableLayoutPanel1.ResumeLayout(false); + this.splitContainer1.Panel1.ResumeLayout(false); + this.splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); + this.splitContainer1.ResumeLayout(false); + this.tableLayoutPanel2.ResumeLayout(false); + this.tableLayoutPanel2.PerformLayout(); + this.ResumeLayout(false); + } #endregion + + private System.Windows.Forms.RichTextBox LogBox; + private System.Windows.Forms.ProgressBar progressBar1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.TextBox tbSourceComputer; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.TextBox textBox3; + private System.Windows.Forms.ListBox listBox1; + private System.Windows.Forms.Button btStart; } } diff --git a/SuperGrate/Main.cs b/SuperGrate/Main.cs index f1a242f..8c0a7de 100644 --- a/SuperGrate/Main.cs +++ b/SuperGrate/Main.cs @@ -12,9 +12,47 @@ namespace SuperGrate { public partial class Main : Form { + public static Form Form; + public static RichTextBox LoggerBox; public Main() { InitializeComponent(); + Form = this; + LoggerBox = LogBox; + } + //scanstate \\ad.belowaverage.org\Public\Share\USMT /config:Config_SettingsOnly.xml /i:MigUser.xml /l:scan.log /ue:*\* /ui:belowaverage\dylan /o + private void Main_Load(object sender, EventArgs e) + { + Logger.Success("Welcome to Super Grate!"); + Logger.Information("Enter some information to get started!"); + } + + private async void BtStart_Click(object sender, EventArgs e) + { + Logger.Information("Checking that everything is online..."); + if(await Misc.Ping(tbSourceComputer.Text)) + { + Logger.Success("Everything is online!"); + } + else + { + Logger.Error("Make sure the source, destination, or store is online and reachable."); + } + } + + private async void TbSourceComputer_Leave(object sender, EventArgs e) + { + Logger.Information("Checking if source is online..."); + if (await Misc.Ping(tbSourceComputer.Text)) + { + Logger.Success("Source is online!"); + Logger.Information("Gathering list of users from source..."); + await Misc.GetUsersFromHost(tbSourceComputer.Text); + } + else + { + Logger.Error("Make sure the source is online and reachable."); + } } } } diff --git a/SuperGrate/Main.resx b/SuperGrate/Main.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SuperGrate/Main.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/SuperGrate/Program.cs b/SuperGrate/Program.cs index 5637335..869c721 100644 --- a/SuperGrate/Program.cs +++ b/SuperGrate/Program.cs @@ -14,8 +14,6 @@ static class Program [STAThread] static void Main() { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Main()); } } diff --git a/SuperGrate/Properties/AssemblyInfo.cs b/SuperGrate/Properties/AssemblyInfo.cs index 54c6dbb..d89a120 100644 --- a/SuperGrate/Properties/AssemblyInfo.cs +++ b/SuperGrate/Properties/AssemblyInfo.cs @@ -5,13 +5,13 @@ // 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("SuperGrate")] -[assembly: AssemblyDescription("")] +[assembly: AssemblyTitle("Super Grate - Remote User Migration GUI - Dylan Bickerstaff")] +[assembly: AssemblyDescription("Super Grate - Dylan Bickerstaff")] [assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("SuperGrate")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] +[assembly: AssemblyCompany("Dylan Bickerstaff")] +[assembly: AssemblyProduct("Super Grate - Dylan Bickerstaff")] +[assembly: AssemblyCopyright("Copyright © 2019 - Dylan Bickerstaff")] +[assembly: AssemblyTrademark("Dylan Bickerstaff")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible @@ -32,5 +32,5 @@ // 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")] +[assembly: AssemblyVersion("0.0.0.0")] +[assembly: AssemblyFileVersion("0.0.0.0")] diff --git a/SuperGrate/Properties/Settings.Designer.cs b/SuperGrate/Properties/Settings.Designer.cs deleted file mode 100644 index a2e6967..0000000 --- a/SuperGrate/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 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 SuperGrate.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.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; - } - } - } -} diff --git a/SuperGrate/Properties/Settings.settings b/SuperGrate/Properties/Settings.settings deleted file mode 100644 index 3964565..0000000 --- a/SuperGrate/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/SuperGrate/SuperGrate.csproj b/SuperGrate/SuperGrate.csproj index bd57d19..8c60546 100644 --- a/SuperGrate/SuperGrate.csproj +++ b/SuperGrate/SuperGrate.csproj @@ -35,6 +35,7 @@ + @@ -46,6 +47,11 @@ + + + + + Form @@ -54,6 +60,9 @@ + + Main.cs + ResXFileCodeGenerator Resources.Designer.cs @@ -63,18 +72,6 @@ True Resources.resx - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - \ No newline at end of file