From 70f30eb78027d2b8267af01959c7e8a61a49153f Mon Sep 17 00:00:00 2001 From: Nielk1 Date: Fri, 29 May 2020 05:05:29 -0500 Subject: [PATCH] Version bump and critial class I forgot. --- BZRModManager/MultiSelectDialog.Designer.cs | 75 ++++++++++++ BZRModManager/MultiSelectDialog.cs | 36 ++++++ BZRModManager/MultiSelectDialog.resx | 120 ++++++++++++++++++++ BZRModManager/Properties/AssemblyInfo.cs | 6 +- 4 files changed, 234 insertions(+), 3 deletions(-) create mode 100644 BZRModManager/MultiSelectDialog.Designer.cs create mode 100644 BZRModManager/MultiSelectDialog.cs create mode 100644 BZRModManager/MultiSelectDialog.resx diff --git a/BZRModManager/MultiSelectDialog.Designer.cs b/BZRModManager/MultiSelectDialog.Designer.cs new file mode 100644 index 0000000..e0fd42f --- /dev/null +++ b/BZRModManager/MultiSelectDialog.Designer.cs @@ -0,0 +1,75 @@ +namespace BZRModManager +{ + partial class MultiSelectDialog + { + /// + /// 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.checkedListBox1 = new System.Windows.Forms.CheckedListBox(); + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // checkedListBox1 + // + this.checkedListBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.checkedListBox1.FormattingEnabled = true; + this.checkedListBox1.Location = new System.Drawing.Point(12, 12); + this.checkedListBox1.Name = "checkedListBox1"; + this.checkedListBox1.Size = new System.Drawing.Size(322, 124); + this.checkedListBox1.TabIndex = 0; + // + // button1 + // + this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.button1.DialogResult = System.Windows.Forms.DialogResult.OK; + this.button1.Location = new System.Drawing.Point(259, 142); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 1; + this.button1.Text = "Select"; + this.button1.UseVisualStyleBackColor = true; + // + // MultiSelectDialog + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(346, 177); + this.Controls.Add(this.button1); + this.Controls.Add(this.checkedListBox1); + this.Name = "MultiSelectDialog"; + this.Text = "MultiSelectDialog"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.CheckedListBox checkedListBox1; + private System.Windows.Forms.Button button1; + } +} \ No newline at end of file diff --git a/BZRModManager/MultiSelectDialog.cs b/BZRModManager/MultiSelectDialog.cs new file mode 100644 index 0000000..1ead6cc --- /dev/null +++ b/BZRModManager/MultiSelectDialog.cs @@ -0,0 +1,36 @@ +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; + +namespace BZRModManager +{ + public partial class MultiSelectDialog : Form + { + public string[] Selected + { + get + { + List Items = new List(); + foreach (var item in checkedListBox1.CheckedItems) + Items.Add((string)item); + return Items.ToArray(); + } + } + + public MultiSelectDialog(string Title, IEnumerable> ListItems) + { + InitializeComponent(); + this.Text = Title; + foreach (var ListItem in ListItems) + { + checkedListBox1.Items.Add(ListItem.Item1, ListItem.Item2); + } + } + } +} diff --git a/BZRModManager/MultiSelectDialog.resx b/BZRModManager/MultiSelectDialog.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/BZRModManager/MultiSelectDialog.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/BZRModManager/Properties/AssemblyInfo.cs b/BZRModManager/Properties/AssemblyInfo.cs index 0525061..1b20d27 100644 --- a/BZRModManager/Properties/AssemblyInfo.cs +++ b/BZRModManager/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("John \"Nielk1\" Klein")] [assembly: AssemblyProduct("BZRModManager")] -[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -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("0.3.0.0")] -[assembly: AssemblyFileVersion("0.3.0.0")] +[assembly: AssemblyVersion("0.3.0.1")] +[assembly: AssemblyFileVersion("0.3.0.1")]