diff --git a/README.MD b/README.MD index 39a33f7a..fcbd9207 100644 --- a/README.MD +++ b/README.MD @@ -8,16 +8,6 @@ This project started as a desktop port of some core features of Wizard of DATz R For the most complete set of information, see the README.1ST file. Currently, the SabreTools suite consists of the following programs: - - SabreTools

The main tool of the SabreTools suite. Performs the majority of the core features of the parent project, including the following (sorted by the original standalone executable, if any): diff --git a/SabreTools.sln b/SabreTools.sln index 1a5bd8fb..1b7a8c26 100644 --- a/SabreTools.sln +++ b/SabreTools.sln @@ -5,8 +5,6 @@ VisualStudioVersion = 14.0.23107.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SabreTools", "SabreTools\SabreTools.csproj", "{3B615702-1866-4D7B-8AF1-7B43FD0CC1D0}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SabreToolsUI", "SabreToolsUI\SabreToolsUI.csproj", "{7DC54E53-4A46-4323-97E1-062EEFB7E4BC}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SabreTools.Helper", "SabreTools.Helper\SabreTools.Helper.csproj", "{225A1AFD-0890-44E8-B779-7502665C23A5}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleSort", "SimpleSort\SimpleSort.csproj", "{7668FFA4-19AF-4F5D-8463-C7EF5B080FA4}" @@ -32,10 +30,6 @@ Global {3B615702-1866-4D7B-8AF1-7B43FD0CC1D0}.Release|Any CPU.Deploy.0 = Release|Any CPU {3B615702-1866-4D7B-8AF1-7B43FD0CC1D0}.Release|x64.ActiveCfg = Release|x64 {3B615702-1866-4D7B-8AF1-7B43FD0CC1D0}.Release|x64.Build.0 = Release|x64 - {7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Debug|x64.ActiveCfg = Debug|x64 - {7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7DC54E53-4A46-4323-97E1-062EEFB7E4BC}.Release|x64.ActiveCfg = Release|x64 {225A1AFD-0890-44E8-B779-7502665C23A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {225A1AFD-0890-44E8-B779-7502665C23A5}.Debug|Any CPU.Build.0 = Debug|Any CPU {225A1AFD-0890-44E8-B779-7502665C23A5}.Debug|x64.ActiveCfg = Debug|x64 diff --git a/SabreToolsUI/App.config b/SabreToolsUI/App.config deleted file mode 100644 index a6a2b7fa..00000000 --- a/SabreToolsUI/App.config +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/SabreToolsUI/Helper.cs b/SabreToolsUI/Helper.cs deleted file mode 100644 index bb16f2c7..00000000 --- a/SabreToolsUI/Helper.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using Mono.Data.Sqlite; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace SabreTools -{ - class UIHelper - { - private static string _dbName = "DATabase.sqlite"; - private static string _connectionString = "Data Source=" + _dbName + ";Version = 3;"; - - public static object[] GetAllSystems() - { - List objs = new List(); - - Process.Start("DATabase.exe", "--skip"); - - string query = @" -SELECT DISTINCT systems.id, systems.manufacturer, systems.system -FROM systems JOIN games ON systems.id=games.system -ORDER BY systems.manufacturer, systems.system"; - using (SqliteConnection dbc = new SqliteConnection(_connectionString)) - { - dbc.Open(); - using (SqliteCommand slc = new SqliteCommand(query, dbc)) - { - using (SqliteDataReader sldr = slc.ExecuteReader()) - { - // If nothing is found, tell the user and exit - if (sldr.HasRows) - { - while (sldr.Read()) - { - objs.Add(sldr.GetString(1) + " - " + sldr.GetString(2) + " (" + sldr.GetInt32(0) + ")"); - } - } - } - } - } - - return objs.ToArray(); - } - - public static object[] GetAllSources() - { - List objs = new List(); - - Process.Start("DATabase.exe", "--skip"); - - string query = @" -SELECT DISTINCT sources.id, sources.name -FROM sources JOIN games on sources.id=games.source -ORDER BY sources.name COLLATE NOCASE"; - using (SqliteConnection dbc = new SqliteConnection(_connectionString)) - { - dbc.Open(); - using (SqliteCommand slc = new SqliteCommand(query, dbc)) - { - using (SqliteDataReader sldr = slc.ExecuteReader()) - { - // If nothing is found, tell the user and exit - if (sldr.HasRows) - { - while (sldr.Read()) - { - objs.Add(sldr.GetString(1) + " (" + sldr.GetInt32(0) + ")"); - } - } - } - } - } - - return objs.ToArray(); - } - } -} diff --git a/SabreToolsUI/Program.cs b/SabreToolsUI/Program.cs deleted file mode 100644 index 5c6ad82f..00000000 --- a/SabreToolsUI/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 SabreTools -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new SabreToolsUI()); - } - } -} diff --git a/SabreToolsUI/Properties/AssemblyInfo.cs b/SabreToolsUI/Properties/AssemblyInfo.cs deleted file mode 100644 index 09a9ebfc..00000000 --- a/SabreToolsUI/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("SabreToolsUI")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("SabreToolsUI")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[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("7dc54e53-4a46-4323-97e1-062eefb7e4bc")] - -// 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/SabreToolsUI/Properties/Resources.Designer.cs b/SabreToolsUI/Properties/Resources.Designer.cs deleted file mode 100644 index 3bc97146..00000000 --- a/SabreToolsUI/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +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 SabreToolsUI.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("SabreToolsUI.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/SabreToolsUI/Properties/Resources.resx b/SabreToolsUI/Properties/Resources.resx deleted file mode 100644 index af7dbebb..00000000 --- a/SabreToolsUI/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/SabreToolsUI/Properties/Settings.Designer.cs b/SabreToolsUI/Properties/Settings.Designer.cs deleted file mode 100644 index ff4de13e..00000000 --- a/SabreToolsUI/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 SabreToolsUI.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/SabreToolsUI/Properties/Settings.settings b/SabreToolsUI/Properties/Settings.settings deleted file mode 100644 index 39645652..00000000 --- a/SabreToolsUI/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/SabreToolsUI/SabreToolsUI.Designer.cs b/SabreToolsUI/SabreToolsUI.Designer.cs deleted file mode 100644 index dff09746..00000000 --- a/SabreToolsUI/SabreToolsUI.Designer.cs +++ /dev/null @@ -1,296 +0,0 @@ -namespace SabreTools -{ - partial class SabreToolsUI - { - /// - /// 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.menuStrip1 = new System.Windows.Forms.MenuStrip(); - this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.quitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.editToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.generateDatLabel = new System.Windows.Forms.Label(); - this.systemsLabel = new System.Windows.Forms.Label(); - this.systemsCheckedListBox = new System.Windows.Forms.CheckedListBox(); - this.sourcesCheckedListBox = new System.Windows.Forms.CheckedListBox(); - this.sourcesLabel = new System.Windows.Forms.Label(); - this.generateButton = new System.Windows.Forms.Button(); - this.generateAllButton = new System.Windows.Forms.Button(); - this.oldCheckBox = new System.Windows.Forms.CheckBox(); - this.renameCheckBox = new System.Windows.Forms.CheckBox(); - this.importDatLabel = new System.Windows.Forms.Label(); - this.importTextBox = new System.Windows.Forms.TextBox(); - this.fileButton = new System.Windows.Forms.Button(); - this.importButton = new System.Windows.Forms.Button(); - this.folderButton = new System.Windows.Forms.Button(); - this.menuStrip1.SuspendLayout(); - this.SuspendLayout(); - // - // menuStrip1 - // - this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.fileToolStripMenuItem, - this.editToolStripMenuItem, - this.helpToolStripMenuItem}); - this.menuStrip1.Location = new System.Drawing.Point(0, 0); - this.menuStrip1.Name = "menuStrip1"; - this.menuStrip1.Size = new System.Drawing.Size(681, 24); - this.menuStrip1.TabIndex = 0; - this.menuStrip1.Text = "menuStrip1"; - // - // fileToolStripMenuItem - // - this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.quitToolStripMenuItem}); - this.fileToolStripMenuItem.Name = "fileToolStripMenuItem"; - this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20); - this.fileToolStripMenuItem.Text = "File"; - // - // quitToolStripMenuItem - // - this.quitToolStripMenuItem.Name = "quitToolStripMenuItem"; - this.quitToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.X))); - this.quitToolStripMenuItem.Size = new System.Drawing.Size(129, 22); - this.quitToolStripMenuItem.Text = "Exit"; - this.quitToolStripMenuItem.Click += new System.EventHandler(this.quitToolStripMenuItem_Click); - // - // editToolStripMenuItem - // - this.editToolStripMenuItem.Name = "editToolStripMenuItem"; - this.editToolStripMenuItem.Size = new System.Drawing.Size(39, 20); - this.editToolStripMenuItem.Text = "Edit"; - // - // helpToolStripMenuItem - // - this.helpToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.aboutToolStripMenuItem}); - this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; - this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20); - this.helpToolStripMenuItem.Text = "Help"; - // - // aboutToolStripMenuItem - // - this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; - this.aboutToolStripMenuItem.Size = new System.Drawing.Size(107, 22); - this.aboutToolStripMenuItem.Text = "About"; - this.aboutToolStripMenuItem.Click += new System.EventHandler(this.aboutToolStripMenuItem_Click); - // - // generateDatLabel - // - this.generateDatLabel.AutoSize = true; - this.generateDatLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.generateDatLabel.Location = new System.Drawing.Point(12, 34); - this.generateDatLabel.Name = "generateDatLabel"; - this.generateDatLabel.Size = new System.Drawing.Size(112, 17); - this.generateDatLabel.TabIndex = 1; - this.generateDatLabel.Text = "Generate DAT"; - // - // systemsLabel - // - this.systemsLabel.AutoSize = true; - this.systemsLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.systemsLabel.Location = new System.Drawing.Point(15, 65); - this.systemsLabel.Name = "systemsLabel"; - this.systemsLabel.Size = new System.Drawing.Size(56, 15); - this.systemsLabel.TabIndex = 3; - this.systemsLabel.Text = "Systems:"; - // - // systemsCheckedListBox - // - this.systemsCheckedListBox.FormattingEnabled = true; - this.systemsCheckedListBox.Items.AddRange(UIHelper.GetAllSystems()); - this.systemsCheckedListBox.Location = new System.Drawing.Point(77, 65); - this.systemsCheckedListBox.Name = "systemsCheckedListBox"; - this.systemsCheckedListBox.Size = new System.Drawing.Size(260, 34); - this.systemsCheckedListBox.TabIndex = 4; - // - // sourcesCheckedListBox - // - this.sourcesCheckedListBox.FormattingEnabled = true; - this.sourcesCheckedListBox.Items.AddRange(UIHelper.GetAllSources()); - this.sourcesCheckedListBox.Location = new System.Drawing.Point(415, 65); - this.sourcesCheckedListBox.Name = "sourcesCheckedListBox"; - this.sourcesCheckedListBox.Size = new System.Drawing.Size(244, 34); - this.sourcesCheckedListBox.TabIndex = 7; - // - // sourcesLabel - // - this.sourcesLabel.AutoSize = true; - this.sourcesLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.sourcesLabel.Location = new System.Drawing.Point(353, 65); - this.sourcesLabel.Name = "sourcesLabel"; - this.sourcesLabel.Size = new System.Drawing.Size(55, 15); - this.sourcesLabel.TabIndex = 6; - this.sourcesLabel.Text = "Sources:"; - // - // generateButton - // - this.generateButton.Location = new System.Drawing.Point(18, 128); - this.generateButton.Name = "generateButton"; - this.generateButton.Size = new System.Drawing.Size(75, 23); - this.generateButton.TabIndex = 8; - this.generateButton.Text = "Generate"; - this.generateButton.UseVisualStyleBackColor = true; - this.generateButton.Click += new System.EventHandler(this.generateButton_Click); - // - // generateAllButton - // - this.generateAllButton.Location = new System.Drawing.Point(100, 128); - this.generateAllButton.Name = "generateAllButton"; - this.generateAllButton.Size = new System.Drawing.Size(97, 23); - this.generateAllButton.TabIndex = 9; - this.generateAllButton.Text = "Generate All"; - this.generateAllButton.UseVisualStyleBackColor = true; - this.generateAllButton.Click += new System.EventHandler(this.generateAllButton_Click); - // - // oldCheckBox - // - this.oldCheckBox.AutoSize = true; - this.oldCheckBox.Location = new System.Drawing.Point(18, 105); - this.oldCheckBox.Name = "oldCheckBox"; - this.oldCheckBox.Size = new System.Drawing.Size(129, 17); - this.oldCheckBox.TabIndex = 10; - this.oldCheckBox.Text = "Use ClrMamePro Format"; - this.oldCheckBox.UseVisualStyleBackColor = true; - // - // renameCheckBox - // - this.renameCheckBox.AutoSize = true; - this.renameCheckBox.Checked = true; - this.renameCheckBox.CheckState = System.Windows.Forms.CheckState.Checked; - this.renameCheckBox.Location = new System.Drawing.Point(154, 105); - this.renameCheckBox.Name = "renameCheckBox"; - this.renameCheckBox.Size = new System.Drawing.Size(102, 17); - this.renameCheckBox.TabIndex = 11; - this.renameCheckBox.Text = "Rename Games"; - this.renameCheckBox.UseVisualStyleBackColor = true; - // - // importDatLabel - // - this.importDatLabel.AutoSize = true; - this.importDatLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.importDatLabel.Location = new System.Drawing.Point(12, 168); - this.importDatLabel.Name = "importDatLabel"; - this.importDatLabel.Size = new System.Drawing.Size(89, 17); - this.importDatLabel.TabIndex = 12; - this.importDatLabel.Text = "Import DAT"; - // - // importTextBox - // - this.importTextBox.Location = new System.Drawing.Point(100, 201); - this.importTextBox.Name = "importTextBox"; - this.importTextBox.Size = new System.Drawing.Size(405, 20); - this.importTextBox.TabIndex = 14; - // - // fileButton - // - this.fileButton.Location = new System.Drawing.Point(511, 199); - this.fileButton.Name = "fileButton"; - this.fileButton.Size = new System.Drawing.Size(33, 23); - this.fileButton.TabIndex = 15; - this.fileButton.Text = "File"; - this.fileButton.UseVisualStyleBackColor = true; - this.fileButton.Click += new System.EventHandler(this.fileButton_Click); - // - // importButton - // - this.importButton.Location = new System.Drawing.Point(15, 199); - this.importButton.Name = "importButton"; - this.importButton.Size = new System.Drawing.Size(75, 23); - this.importButton.TabIndex = 16; - this.importButton.Text = "Import"; - this.importButton.UseVisualStyleBackColor = true; - this.importButton.Click += new System.EventHandler(this.importButton_Click); - // - // folderButton - // - this.folderButton.Location = new System.Drawing.Point(550, 199); - this.folderButton.Name = "folderButton"; - this.folderButton.Size = new System.Drawing.Size(46, 23); - this.folderButton.TabIndex = 17; - this.folderButton.Text = "Folder"; - this.folderButton.UseVisualStyleBackColor = true; - this.folderButton.Click += new System.EventHandler(this.folderButton_Click); - // - // SabreToolsUI - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(681, 257); - this.Controls.Add(this.folderButton); - this.Controls.Add(this.importButton); - this.Controls.Add(this.fileButton); - this.Controls.Add(this.importTextBox); - this.Controls.Add(this.importDatLabel); - this.Controls.Add(this.renameCheckBox); - this.Controls.Add(this.oldCheckBox); - this.Controls.Add(this.generateAllButton); - this.Controls.Add(this.generateButton); - this.Controls.Add(this.sourcesCheckedListBox); - this.Controls.Add(this.sourcesLabel); - this.Controls.Add(this.systemsCheckedListBox); - this.Controls.Add(this.systemsLabel); - this.Controls.Add(this.generateDatLabel); - this.Controls.Add(this.menuStrip1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; - this.MainMenuStrip = this.menuStrip1; - this.Name = "SabreToolsUI"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "SabreTools UI 0.3.0.0"; - this.menuStrip1.ResumeLayout(false); - this.menuStrip1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.MenuStrip menuStrip1; - private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem quitToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem editToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; - private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; - private System.Windows.Forms.Label generateDatLabel; - private System.Windows.Forms.Label systemsLabel; - private System.Windows.Forms.CheckedListBox systemsCheckedListBox; - private System.Windows.Forms.CheckedListBox sourcesCheckedListBox; - private System.Windows.Forms.Label sourcesLabel; - private System.Windows.Forms.Button generateButton; - private System.Windows.Forms.Button generateAllButton; - private System.Windows.Forms.CheckBox oldCheckBox; - private System.Windows.Forms.CheckBox renameCheckBox; - private System.Windows.Forms.Label importDatLabel; - private System.Windows.Forms.TextBox importTextBox; - private System.Windows.Forms.Button fileButton; - private System.Windows.Forms.Button importButton; - private System.Windows.Forms.Button folderButton; - } -} - diff --git a/SabreToolsUI/SabreToolsUI.cs b/SabreToolsUI/SabreToolsUI.cs deleted file mode 100644 index 5e41ae78..00000000 --- a/SabreToolsUI/SabreToolsUI.cs +++ /dev/null @@ -1,129 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Diagnostics; -using System.Drawing; -using System.Linq; -using System.IO; -using System.Runtime.InteropServices; -using System.Text; -using System.Text.RegularExpressions; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace SabreTools -{ - public partial class SabreToolsUI : Form - { - public SabreToolsUI() - { - AllocConsole(); - InitializeComponent(); - } - - [DllImport("kernel32.dll", SetLastError = true)] - [return: MarshalAs(UnmanagedType.Bool)] - static extern bool AllocConsole(); - - private void quitToolStripMenuItem_Click(object sender, EventArgs e) - { - Environment.Exit(0); - } - - private void aboutToolStripMenuItem_Click(object sender, EventArgs e) - { - MessageBox.Show("SabreTools designed and coded by: Matt Nadareski (darksabre76)\nTested by: @tractivo", "About"); - } - - private void generateButton_Click(object sender, EventArgs e) - { - string systems = ""; - string sources = ""; - - CheckedListBox.CheckedItemCollection cil = this.systemsCheckedListBox.CheckedItems; - foreach (object ci in cil) - { - string id = Regex.Match(ci.ToString(), @".*? \((.*?)\)").Groups[1].Value; - - systems += (systems == "" ? id : "," + id); - } - - cil = this.sourcesCheckedListBox.CheckedItems; - foreach (object ci in cil) - { - string id = Regex.Match(ci.ToString(), @".*? \((.*?)\)").Groups[1].Value; - - sources += (sources == "" ? id : "," + id); - } - - bool old = this.oldCheckBox.Checked; - bool norename = !this.renameCheckBox.Checked; - - string args = "-l -g" + - (old ? " -old" : "") + - (norename ? " -nr" : "") + - (systems != "" ? " system=" + systems : "") + - (sources != "" ? " source=" + sources : ""); - - Process.Start("DATabase.exe", args); - } - - private void generateAllButton_Click(object sender, EventArgs e) - { - Process.Start("DATabase.exe", "-l -ga"); - } - - private void fileButton_Click(object sender, EventArgs e) - { - OpenFileDialog ofd = new OpenFileDialog(); - - // Set the proper starting folder - if (importTextBox.Text != "") - { - ofd.InitialDirectory = Path.GetDirectoryName(importTextBox.Text); - } - else - { - ofd.InitialDirectory = Environment.CurrentDirectory; - } - - // Set the new file, if applicable - if (ofd.ShowDialog() == DialogResult.OK) - { - importTextBox.Text = ofd.FileName; - } - } - - private void folderButton_Click(object sender, EventArgs e) - { - FolderBrowserDialog fbd = new FolderBrowserDialog(); - - // Set the proper starting folder - if (importTextBox.Text != "") - { - fbd.SelectedPath = Path.GetDirectoryName(importTextBox.Text); - } - else - { - fbd.SelectedPath = Environment.CurrentDirectory; - } - - // Set the new folder, if applicable - if (fbd.ShowDialog() == DialogResult.OK) - { - importTextBox.Text = fbd.SelectedPath; - } - } - - private void importButton_Click(object sender, EventArgs e) - { - string path = importTextBox.Text; - - if (path != "") - { - Process.Start("DATabase.exe", "-l -i input=\"" + path + "\""); - } - } - } -} diff --git a/SabreToolsUI/SabreToolsUI.csproj b/SabreToolsUI/SabreToolsUI.csproj deleted file mode 100644 index 43b29d92..00000000 --- a/SabreToolsUI/SabreToolsUI.csproj +++ /dev/null @@ -1,139 +0,0 @@ - - - - - Debug - AnyCPU - {7DC54E53-4A46-4323-97E1-062EEFB7E4BC} - WinExe - Properties - SabreToolsUI - SabreToolsUI - v4.5.2 - 512 - true - - - - - AnyCPU - true - full - false - ..\..\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - ..\..\Release\ - TRACE - prompt - 4 - - - true - ..\..\Debug-x64\ - DEBUG;TRACE - full - x64 - prompt - MinimumRecommendedRules.ruleset - true - - - ..\..\Release-x64\ - TRACE - true - pdbonly - x64 - prompt - MinimumRecommendedRules.ruleset - true - - - - ..\packages\Mono.Data.Sqlite.Portable.1.0.3.5\lib\net4\Mono.Data.Sqlite.dll - True - - - - - - ..\packages\Mono.Data.Sqlite.Portable.1.0.3.5\lib\net4\System.Data.Portable.dll - True - - - - ..\packages\Mono.Data.Sqlite.Portable.1.0.3.5\lib\net4\System.Transactions.Portable.dll - True - - - - - - - - - - - - - - - Form - - - SabreToolsUI.cs - - - - - SabreToolsUI.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - - {225a1afd-0890-44e8-b779-7502665c23a5} - SabreTools.Helper - - - - - - - - - - \ No newline at end of file diff --git a/SabreToolsUI/SabreToolsUI.resx b/SabreToolsUI/SabreToolsUI.resx deleted file mode 100644 index d5494e30..00000000 --- a/SabreToolsUI/SabreToolsUI.resx +++ /dev/null @@ -1,123 +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 - - - 17, 17 - - \ No newline at end of file diff --git a/SabreToolsUI/packages.config b/SabreToolsUI/packages.config deleted file mode 100644 index 2e7f170d..00000000 --- a/SabreToolsUI/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file