diff --git a/CSM Visualiser/App.config b/CSM Visualiser/App.config deleted file mode 100644 index 4bfa0056..00000000 --- a/CSM Visualiser/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/CSM Visualiser/CSM Visualiser.csproj b/CSM Visualiser/CSM Visualiser.csproj deleted file mode 100644 index 3297a3e6..00000000 --- a/CSM Visualiser/CSM Visualiser.csproj +++ /dev/null @@ -1,105 +0,0 @@ - - - - - Debug - AnyCPU - {3530A9F2-AE0F-44B4-84F9-8FBACB456070} - WinExe - CSM_Visualiser - CSM Visualiser - v4.8 - 512 - true - true - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - bin\ReleasePortable\ - TRACE - true - pdbonly - AnyCPU - 7.3 - prompt - true - - - - ..\packages\morelinq.3.3.2\lib\net451\MoreLinq.dll - - - ..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll - - - - - ..\packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll - - - - - - - - - - - - - - Form - - - Form1.cs - - - - - Form1.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - True - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - \ No newline at end of file diff --git a/CSM Visualiser/Form1.Designer.cs b/CSM Visualiser/Form1.Designer.cs deleted file mode 100644 index 55272ed4..00000000 --- a/CSM Visualiser/Form1.Designer.cs +++ /dev/null @@ -1,75 +0,0 @@ -namespace CSM_Visualiser -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.button1 = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); - this.SuspendLayout(); - // - // button1 - // - this.button1.Location = new System.Drawing.Point(13, 13); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(75, 23); - this.button1.TabIndex = 0; - this.button1.Text = "Open"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click); - // - // button2 - // - this.button2.Location = new System.Drawing.Point(94, 13); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(75, 23); - this.button2.TabIndex = 1; - this.button2.Text = "Open"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); - // - // Form1 - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(522, 360); - this.Controls.Add(this.button2); - this.Controls.Add(this.button1); - this.Name = "Form1"; - this.Text = "Form1"; - this.Load += new System.EventHandler(this.Form1_Load); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.Button button1; - private System.Windows.Forms.Button button2; - } -} - diff --git a/CSM Visualiser/Form1.cs b/CSM Visualiser/Form1.cs deleted file mode 100644 index 0dc53672..00000000 --- a/CSM Visualiser/Form1.cs +++ /dev/null @@ -1,128 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using MoreLinq.Extensions; -using MoreLinq; -using System.Linq; -using System.IO; - -namespace CSM_Visualiser -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - - string intro = "{\n \"format_version\": \"1.12.0\",\n \"minecraft:geometry\": [\n {\n \"description\": {\n \"identifier\": \"geometry.steve\",\n \"texture_width\": 64,\n \"texture_height\": 64,\n \"visible_bounds_width\": 3,\n \"visible_bounds_height\": 3,\n \"visible_bounds_offset\": [0, 0, 0]\n },\n \"bones\": ["; - string outro = "\n ]\n }\n ]\n}"; - private void Form1_Load(object sender, EventArgs e) - { - - } - - private void button1_Click(object sender, EventArgs e) - { - OpenFileDialog openFileDialog = new OpenFileDialog(); - openFileDialog.Filter = "Custom Skin Model File | *.CSM"; - openFileDialog.Title = "Select Custom Skin Model File"; - if(openFileDialog.ShowDialog() == DialogResult.OK) - { - System.IO.File.WriteAllText(openFileDialog.FileName + ".json", intro); - string data = System.IO.File.ReadAllText(openFileDialog.FileName); - int splitnum = 11; - var dat0 = stringfunctions.SplitBy(data, '\n', splitnum); - - foreach (string str in dat0) - { - // MessageBox.Show(str.ToString()); - string[] data1 = str.ToString().Split('\n'); - string name = data1[0]; - string parent = data1[1]; - string name2 = data1[2]; - int PosX = int.Parse(data1[3])*3; - int PosY = int.Parse(data1[4]) + 32; - int PosZ = int.Parse(data1[5])*3; - int SizeX = int.Parse(data1[6]); - int SizeY = int.Parse(data1[7]); - int SizeZ = int.Parse(data1[8]); - int UVx = int.Parse(data1[9]); - int UVy = int.Parse(data1[10]); - int UVx2 = UVx + 32; - string entry = "\n\t\t\t\t{\n\t\t\t\t\t\"name\": \"" + name + "\"\x2C\n\t\t\t\t\t\"pivot\": [0, 24, 0],\n\t\t\t\t\t\"cubes\": [\n\t\t\t\t\t\t{\"origin\": [" + PosX + ", " + PosY + ", " + PosZ + "], \"size\": [" + SizeX + ", " + SizeY + ", " + SizeZ + "], \"uv\": [" + UVx + ", " + UVy + "]},\n\t\t\t\t\t\t{\"origin\": [" + PosX + ", " + PosY + ", " + PosZ + "], \"size\": [" + SizeX + ", " + SizeY + ", " + SizeZ + "], \"inflate\": 0.5, \"uv\": [" + UVx2 + ", " + UVy + "]}\n\t\t\t\t\t]\n\t\t\t\t},"; - System.IO.File.AppendAllText(openFileDialog.FileName + ".json", entry.Replace("\n\"\x2C", "\"\x2C")); - } - System.IO.FileStream fs = new System.IO.FileStream(openFileDialog.FileName + ".json", System.IO.FileMode.Open, System.IO.FileAccess.ReadWrite); - fs.SetLength(fs.Length - 1); - fs.Close(); - System.IO.File.AppendAllText(openFileDialog.FileName + ".json", outro); - MessageBox.Show("\x4D\x65\x73\x73\x61\x67\x65\x42\x6F\x78\x2E\x53\x68\x6F\x77\x28\x29\x3B"); - } - } - - private void button2_Click(object sender, EventArgs e) - { - OpenFileDialog openFileDialog = new OpenFileDialog(); - openFileDialog.Filter = "Custom Skin Model File | *.txt"; - openFileDialog.Title = "Select Custom Skin Model File"; - openFileDialog.Multiselect = true; - if (openFileDialog.ShowDialog() == DialogResult.OK) - { - foreach (string url in openFileDialog.FileNames) - { - StreamWriter sw = new StreamWriter(url + ".CSM"); - sw.Write(""); - sw.Close(); - string data = System.IO.File.ReadAllText(url); - string[] data0 = data.Split('\n'); - - foreach (string str in data0) - { - if (str.StartsWith("BOX")) - { - string[] data1 = str.ToString().Split(' '); - string name = data1[0]; - string PosX = (data1[1]); - string PosY = (data1[2]); - string PosZ = (data1[3]); - string SizeX = (data1[4]); - string SizeY = (data1[5]); - string SizeZ = (data1[6]); - string UVx = (data1[7]); - string UVy = (data1[8]); - string entry = name + "\n" + name + "\n" + name + "\n" + PosX + "\n" + PosY + "\n" + PosZ + "\n" + SizeX + "\n" + SizeY + "\n" + SizeZ + "\n" + UVx + "\n" + UVy + "\n"; - System.IO.File.AppendAllText(url + ".CSM", entry.Replace("BOX:", "")); - } - } - } - } - } - } - static class stringfunctions - { - public static IEnumerable SplitBy(string input, char separator, int n) - { - int lastindex = 0; - int curr = 0; - - while (curr < input.Length) - { - int count = 0; - while (curr < input.Length && count < n) - { - if (input[curr++] == separator) count++; - } - yield return input.Substring(lastindex, curr - lastindex - (curr < input.Length ? 1 : 0)); - lastindex = curr; - } - } - } - -} diff --git a/CSM Visualiser/Form1.resx b/CSM Visualiser/Form1.resx deleted file mode 100644 index 1af7de15..00000000 --- a/CSM Visualiser/Form1.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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/CSM Visualiser/Program.cs b/CSM Visualiser/Program.cs deleted file mode 100644 index 15190fc2..00000000 --- a/CSM Visualiser/Program.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace CSM_Visualiser -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form1()); - } - } -} diff --git a/CSM Visualiser/Properties/AssemblyInfo.cs b/CSM Visualiser/Properties/AssemblyInfo.cs deleted file mode 100644 index 33246d99..00000000 --- a/CSM Visualiser/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -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("CSM Visualiser")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("CSM Visualiser")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[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("3530a9f2-ae0f-44b4-84f9-8fbacb456070")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/CSM Visualiser/Properties/Resources.Designer.cs b/CSM Visualiser/Properties/Resources.Designer.cs deleted file mode 100644 index 894e3757..00000000 --- a/CSM Visualiser/Properties/Resources.Designer.cs +++ /dev/null @@ -1,63 +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 CSM_Visualiser.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("CSM_Visualiser.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - } -} diff --git a/CSM Visualiser/Properties/Resources.resx b/CSM Visualiser/Properties/Resources.resx deleted file mode 100644 index af7dbebb..00000000 --- a/CSM Visualiser/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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/CSM Visualiser/Properties/Settings.Designer.cs b/CSM Visualiser/Properties/Settings.Designer.cs deleted file mode 100644 index 7ded4707..00000000 --- a/CSM Visualiser/Properties/Settings.Designer.cs +++ /dev/null @@ -1,26 +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 CSM_Visualiser.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.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/CSM Visualiser/Properties/Settings.settings b/CSM Visualiser/Properties/Settings.settings deleted file mode 100644 index 39645652..00000000 --- a/CSM Visualiser/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/CSM Visualiser/packages.config b/CSM Visualiser/packages.config deleted file mode 100644 index 563598c7..00000000 --- a/CSM Visualiser/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/nobleUpdater/FormMain.Designer.cs b/nobleUpdater/FormMain.Designer.cs deleted file mode 100644 index 50581416..00000000 --- a/nobleUpdater/FormMain.Designer.cs +++ /dev/null @@ -1,66 +0,0 @@ -namespace nobleUpdater -{ - public partial class FormMain : global::System.Windows.Forms.Form - { - protected override void Dispose(bool disposing) - { - if (disposing && this.components != null) - { - this.components.Dispose(); - } - base.Dispose(disposing); - } - - private void InitializeComponent() - { - this.progressBarUpdate = new System.Windows.Forms.ProgressBar(); - this.labelProgress = new System.Windows.Forms.Label(); - this.SuspendLayout(); - // - // progressBarUpdate - // - this.progressBarUpdate.ForeColor = System.Drawing.Color.White; - this.progressBarUpdate.Location = new System.Drawing.Point(1, 1); - this.progressBarUpdate.Name = "progressBarUpdate"; - this.progressBarUpdate.Size = new System.Drawing.Size(251, 34); - this.progressBarUpdate.TabIndex = 0; - // - // labelProgress - // - this.labelProgress.AutoSize = true; - this.labelProgress.BackColor = System.Drawing.Color.Transparent; - this.labelProgress.ForeColor = System.Drawing.Color.White; - this.labelProgress.Location = new System.Drawing.Point(9, 38); - this.labelProgress.Name = "labelProgress"; - this.labelProgress.Size = new System.Drawing.Size(78, 13); - this.labelProgress.TabIndex = 1; - this.labelProgress.Text = "Downloading..."; - // - // FormMain - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.SystemColors.ActiveCaptionText; - this.ClientSize = new System.Drawing.Size(252, 58); - this.Controls.Add(this.labelProgress); - this.Controls.Add(this.progressBarUpdate); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "FormMain"; - this.Padding = new System.Windows.Forms.Padding(20, 30, 20, 20); - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.TopMost = true; - this.Load += new System.EventHandler(this.FormMain_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - private global::System.ComponentModel.IContainer components; - - private global::System.Windows.Forms.ProgressBar progressBarUpdate; - - private global::System.Windows.Forms.Label labelProgress; - } -} diff --git a/nobleUpdater/FormMain.cs b/nobleUpdater/FormMain.cs deleted file mode 100644 index aa71151c..00000000 --- a/nobleUpdater/FormMain.cs +++ /dev/null @@ -1,180 +0,0 @@ -using System; -using System.Xml; -using System.ComponentModel; -using System.Diagnostics; -using System.Drawing; -using System.IO; -using System.Net; -using System.Threading; -using System.Windows.Forms; - -namespace nobleUpdater -{ - public partial class FormMain : Form - { - public FormMain() - { - this.InitializeComponent(); - - } - - private void updateTool() - { - try - { - if (!Directory.Exists(this.appData + "backup\\")) - { - Directory.CreateDirectory(this.appData + "backup\\"); - } - if (File.Exists(this.appData + "backup\\" + Path.GetFileName(this.localFile))) - { - File.Delete(this.appData + "backup\\" + Path.GetFileName(this.localFile)); - } - try - { - File.Copy(this.localFile, this.appData + "backup\\" + Path.GetFileName(this.localFile)); - } - catch (Exception) - { - } - } - catch (Exception ex) - { - MessageBox.Show(ex.ToString()); - Application.Exit(); - } - using (WebClient webClient = new WebClient()) - { - webClient.DownloadFileCompleted += this.Completed; - webClient.DownloadProgressChanged += this.ProgressChanged; - try - { - webClient.DownloadFileAsync(new Uri(this.serverFile), this.localFile); - } - catch (Exception ex2) - { - MessageBox.Show(ex2.ToString()); - Application.Exit(); - } - } - } - - private void ProgressChanged(object sender, DownloadProgressChangedEventArgs e) - { - this.progressBarUpdate.Value = e.ProgressPercentage; - this.labelProgress.Text = string.Format("{0} MB's / {1} MB's", ((double)e.BytesReceived / 1024.0 / 1024.0).ToString("0.00"), ((double)e.TotalBytesToReceive / 1024.0 / 1024.0).ToString("0.00")); - } - - private void Completed(object sender, AsyncCompletedEventArgs e) - { - if (e.Cancelled) - { - MessageBox.Show("Download has been canceled."); - } - else - { - this.progressBarUpdate.Maximum = this.progressBarUpdate.Value; - this.labelProgress.Text = "Download Complete"; - } - new Process - { - StartInfo = - { - FileName = this.localFile - } - }.Start(); - Application.Exit(); - } - - private string serverFile = "http://www.pckstudio.xyz/programs/PCKSTUDIO_Update.exe"; - private string ServerXML = "http://www.pckstudio.xyz/studio/PCK/update.xml"; - - private string appData = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\PCK Studio\\"; - - private string localFile = Environment.CurrentDirectory + "\\PCK Studio.exe"; - - private Thread thread; - - private WebClient webClient; - - private void FormMain_Load(object sender, EventArgs e) - { - Console.WriteLine(new WebClient().DownloadString(new Uri("http://www.pckstudio.xyz/studio/PCK/update.xml"))); - downloadUpdate(); - } - - public void downloadUpdate() - { - try - { - foreach (Process proc in Process.GetProcessesByName("PCK Studio")) - { - proc.Kill(); - } - } - catch (Exception ex) - { - MessageBox.Show(ex.Message); - } - catch { } - - string TryXMLDl = new WebClient().DownloadString(ServerXML); - string[] raw = TryXMLDl.Split(new[] { "\n", "\r\n" }, StringSplitOptions.None); - XmlTextReader reader = new XmlTextReader(ServerXML); - while (reader.Read()) - { - switch (reader.NodeType) - { - case XmlNodeType.Element: // The node is an element. - Console.Write("<" + reader.Name + " || " + reader.LineNumber); - Console.WriteLine(">"); - if (reader.Name == "FileUpdateTask") - { - try - { - Directory.CreateDirectory(Path.GetDirectoryName(Environment.CurrentDirectory + raw[reader.LineNumber - 1].Replace(" ", "").Replace("/", "\\"))); - string url = ServerXML.Replace(".xml", "") + raw[reader.LineNumber - 1].Replace(" ", ""); - new WebClient().DownloadFile(url, Environment.CurrentDirectory + raw[reader.LineNumber - 1].Replace(" ", "").Replace("/", "\\")); - } - catch { } - } - break; - } - } - new Process - { - StartInfo = - { - FileName = this.localFile - } - }.Start(); - Application.Exit(); - } - - public void mainus() - { - Stopwatch stopwatch = new Stopwatch(); - stopwatch.Start(); - int num = 0; - for (; ; ) - { - if (num % 100000 == 0) - { - stopwatch.Stop(); - if (stopwatch.ElapsedMilliseconds > 5000L) - { - break; - } - stopwatch.Start(); - } - num++; - } - this.updateTool(); - } - - private void progressBarUpdate_Click(object sender, EventArgs e) - { - - } - } -} diff --git a/nobleUpdater/FormMain.resx b/nobleUpdater/FormMain.resx deleted file mode 100644 index 1af7de15..00000000 --- a/nobleUpdater/FormMain.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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/nobleUpdater/Program.cs b/nobleUpdater/Program.cs deleted file mode 100644 index 328780a3..00000000 --- a/nobleUpdater/Program.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System; -using System.Windows.Forms; - -namespace nobleUpdater -{ - internal static class Program - { - [global::System.STAThread] - private static void Main() - { - - global::System.Windows.Forms.Application.EnableVisualStyles(); - global::System.Windows.Forms.Application.SetCompatibleTextRenderingDefault(false); - global::System.Windows.Forms.Application.Run(new global::nobleUpdater.FormMain()); - } - } -} diff --git a/nobleUpdater/Properties/AssemblyInfo.cs b/nobleUpdater/Properties/AssemblyInfo.cs deleted file mode 100644 index 28f3619e..00000000 --- a/nobleUpdater/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,18 +0,0 @@ -using System; -using System.Diagnostics; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Runtime.Versioning; - -[assembly: global::System.Reflection.AssemblyCompany("HP Inc.")] -[assembly: global::System.Reflection.AssemblyConfiguration("")] -[assembly: global::System.Reflection.AssemblyCopyright("Copyright © HP Inc. 2018")] -[assembly: global::System.Reflection.AssemblyDescription("")] -[assembly: global::System.Reflection.AssemblyFileVersion("1.0.0.0")] -[assembly: global::System.Reflection.AssemblyProduct("nobleUpdater")] -[assembly: global::System.Reflection.AssemblyTitle("nobleUpdater")] -[assembly: global::System.Reflection.AssemblyTrademark("")] -[assembly: global::System.Reflection.AssemblyVersion("1.0.0.0")] -[assembly: global::System.Runtime.InteropServices.ComVisible(false)] -[assembly: global::System.Runtime.InteropServices.Guid("a8c16b15-049b-4f2b-8726-882873fed153")] diff --git a/nobleUpdater/Properties/Resources.cs b/nobleUpdater/Properties/Resources.cs deleted file mode 100644 index 50606009..00000000 --- a/nobleUpdater/Properties/Resources.cs +++ /dev/null @@ -1,50 +0,0 @@ -using System; -using System.CodeDom.Compiler; -using System.ComponentModel; -using System.Diagnostics; -using System.Globalization; -using System.Resources; -using System.Runtime.CompilerServices; - -namespace nobleUpdater.Properties -{ - [global::System.CodeDom.Compiler.GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCode] - [global::System.Runtime.CompilerServices.CompilerGenerated] - internal class Resources - { - internal Resources() - { - } - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager - { - get - { - if (global::nobleUpdater.Properties.Resources.resourceMan == null) - { - global::nobleUpdater.Properties.Resources.resourceMan = new global::System.Resources.ResourceManager("nobleUpdater.Properties.Resources", typeof(global::nobleUpdater.Properties.Resources).Assembly); - } - return global::nobleUpdater.Properties.Resources.resourceMan; - } - } - - [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture - { - get - { - return global::nobleUpdater.Properties.Resources.resourceCulture; - } - set - { - global::nobleUpdater.Properties.Resources.resourceCulture = value; - } - } - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - } -} diff --git a/nobleUpdater/Properties/Resources.resources b/nobleUpdater/Properties/Resources.resources deleted file mode 100644 index 6c05a977..00000000 Binary files a/nobleUpdater/Properties/Resources.resources and /dev/null differ diff --git a/nobleUpdater/Properties/Settings.Designer.cs b/nobleUpdater/Properties/Settings.Designer.cs deleted file mode 100644 index 7475a413..00000000 --- a/nobleUpdater/Properties/Settings.Designer.cs +++ /dev/null @@ -1,26 +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 nobleUpdater.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.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/nobleUpdater/Properties/Settings.settings b/nobleUpdater/Properties/Settings.settings deleted file mode 100644 index 23365eea..00000000 --- a/nobleUpdater/Properties/Settings.settings +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/nobleUpdater/app.config b/nobleUpdater/app.config deleted file mode 100644 index 3e0e37cf..00000000 --- a/nobleUpdater/app.config +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/nobleUpdater/app.manifest b/nobleUpdater/app.manifest deleted file mode 100644 index f8f55e0a..00000000 --- a/nobleUpdater/app.manifest +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/nobleUpdater/nobleUpdater.csproj b/nobleUpdater/nobleUpdater.csproj deleted file mode 100644 index f5796af7..00000000 --- a/nobleUpdater/nobleUpdater.csproj +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Debug - AnyCPU - {F77A61F1-0C6F-45DC-A5B5-A7BF38D64322} - WinExe - nobleUpdater - nobleUpdater - v4.8 - 512 - app.manifest - nobleUpdater.Program - - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - bin\ReleasePortable\ - TRACE - true - pdbonly - AnyCPU - 7.3 - prompt - true - - - - ..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - - Form - - - FormMain.cs - - - - - - Settings.settings - True - True - - - - - FormMain.cs - - - - - - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - \ No newline at end of file diff --git a/nobleUpdater/packages.config b/nobleUpdater/packages.config deleted file mode 100644 index 04ddcfe0..00000000 --- a/nobleUpdater/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file