diff options
| author | lempamo <[email protected]> | 2017-09-23 10:29:27 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-09-23 10:29:27 -0400 |
| commit | 245a7c360bf2b6a6892abd32d3693847103d1132 (patch) | |
| tree | 7f1bd8cd32dfe6ec350ff5685b41582323b9e376 /Histacom2 | |
| parent | bd74f334cf0a2fcb4f98b1d33fa909bce766d02b (diff) | |
| download | histacom2-245a7c360bf2b6a6892abd32d3693847103d1132.tar.gz histacom2-245a7c360bf2b6a6892abd32d3693847103d1132.tar.bz2 histacom2-245a7c360bf2b6a6892abd32d3693847103d1132.zip | |
added directory pane to installer
Diffstat (limited to 'Histacom2')
| -rw-r--r-- | Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.Designer.cs | 165 | ||||
| -rw-r--r-- | Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.cs | 26 | ||||
| -rw-r--r-- | Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.resx | 120 | ||||
| -rw-r--r-- | Histacom2/GlobalPrograms/WinClassicInstaller.Designer.cs | 20 | ||||
| -rw-r--r-- | Histacom2/GlobalPrograms/WinClassicInstaller.cs | 13 | ||||
| -rw-r--r-- | Histacom2/Histacom2.csproj | 10 | ||||
| -rw-r--r-- | Histacom2/Properties/Resources.resx | 3 | ||||
| -rw-r--r-- | Histacom2/Properties/Resources1.Designer.cs | 10 | ||||
| -rw-r--r-- | Histacom2/Resources/WinClassic/WinClassicInstallIcon.png | bin | 0 -> 982 bytes |
9 files changed, 367 insertions, 0 deletions
diff --git a/Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.Designer.cs b/Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.Designer.cs new file mode 100644 index 0000000..6759dd9 --- /dev/null +++ b/Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.Designer.cs @@ -0,0 +1,165 @@ +namespace Histacom2.GlobalPrograms.InstallerPanes +{ + partial class DirectoryPane + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.panel1 = new System.Windows.Forms.Panel(); + this.classicLabel2 = new Histacom2.Engine.UI.ClassicLabel(); + this.classicLabel1 = new Histacom2.Engine.UI.ClassicLabel(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.classicLabel3 = new Histacom2.Engine.UI.ClassicLabel(); + this.classicLabel4 = new Histacom2.Engine.UI.ClassicLabel(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.classicLabel5 = new Histacom2.Engine.UI.ClassicLabel(); + this.classicButton1 = new Histacom2.Engine.UI.ClassicButton(); + this.panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.groupBox1.SuspendLayout(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Controls.Add(this.pictureBox1); + this.panel1.Controls.Add(this.classicLabel2); + this.panel1.Controls.Add(this.classicLabel1); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(495, 58); + this.panel1.TabIndex = 0; + // + // classicLabel2 + // + this.classicLabel2.Location = new System.Drawing.Point(40, 28); + this.classicLabel2.Name = "classicLabel2"; + this.classicLabel2.Size = new System.Drawing.Size(259, 13); + this.classicLabel2.TabIndex = 1; + this.classicLabel2.Text = "Select folder where setup will install files."; + // + // classicLabel1 + // + this.classicLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.classicLabel1.Location = new System.Drawing.Point(25, 12); + this.classicLabel1.Name = "classicLabel1"; + this.classicLabel1.Size = new System.Drawing.Size(274, 13); + this.classicLabel1.TabIndex = 0; + this.classicLabel1.Text = "Choose Destination L o c a t i o n"; + // + // pictureBox1 + // + this.pictureBox1.BackgroundImage = global::Histacom2.Properties.Resources.WinClassicInstallIcon; + this.pictureBox1.Location = new System.Drawing.Point(440, 2); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(53, 53); + this.pictureBox1.TabIndex = 2; + this.pictureBox1.TabStop = false; + // + // classicLabel3 + // + this.classicLabel3.Location = new System.Drawing.Point(25, 73); + this.classicLabel3.Name = "classicLabel3"; + this.classicLabel3.Size = new System.Drawing.Size(446, 13); + this.classicLabel3.TabIndex = 1; + this.classicLabel3.Text = "Setup will install Program to the destination folder."; + // + // classicLabel4 + // + this.classicLabel4.Location = new System.Drawing.Point(25, 99); + this.classicLabel4.Name = "classicLabel4"; + this.classicLabel4.Size = new System.Drawing.Size(446, 26); + this.classicLabel4.TabIndex = 2; + this.classicLabel4.Text = "To install to the default folder, click Next. To install to a different folder, c" + + "lick Browse and select another folder."; + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.classicButton1); + this.groupBox1.Controls.Add(this.classicLabel5); + this.groupBox1.Location = new System.Drawing.Point(24, 231); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(447, 50); + this.groupBox1.TabIndex = 3; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Destination Folder"; + // + // classicLabel5 + // + this.classicLabel5.Location = new System.Drawing.Point(12, 22); + this.classicLabel5.Name = "classicLabel5"; + this.classicLabel5.Size = new System.Drawing.Size(311, 13); + this.classicLabel5.TabIndex = 0; + this.classicLabel5.Text = "C:\\Program Files\\12padams\\Program\\"; + // + // classicButton1 + // + this.classicButton1.AdaptBackColorWithTheme = true; + this.classicButton1.AdaptFontWithTheme = true; + this.classicButton1.AdaptForeColorWithTheme = true; + this.classicButton1.BackColor = System.Drawing.Color.Silver; + this.classicButton1.DialogResult = System.Windows.Forms.DialogResult.None; + this.classicButton1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.classicButton1.ForeColor = System.Drawing.Color.Black; + this.classicButton1.Location = new System.Drawing.Point(365, 16); + this.classicButton1.Name = "classicButton1"; + this.classicButton1.Size = new System.Drawing.Size(75, 23); + this.classicButton1.TabIndex = 1; + this.classicButton1.Text = "B&rowse..."; + // + // DirectoryPane + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Silver; + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.classicLabel4); + this.Controls.Add(this.classicLabel3); + this.Controls.Add(this.panel1); + this.Name = "DirectoryPane"; + this.Size = new System.Drawing.Size(495, 314); + this.Load += new System.EventHandler(this.DirectoryPane_Load); + this.panel1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit(); + this.groupBox1.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + private Engine.UI.ClassicLabel classicLabel1; + private Engine.UI.ClassicLabel classicLabel2; + private System.Windows.Forms.PictureBox pictureBox1; + private Engine.UI.ClassicLabel classicLabel3; + private Engine.UI.ClassicLabel classicLabel4; + private System.Windows.Forms.GroupBox groupBox1; + private Engine.UI.ClassicButton classicButton1; + private Engine.UI.ClassicLabel classicLabel5; + } +} diff --git a/Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.cs b/Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.cs new file mode 100644 index 0000000..7e415dd --- /dev/null +++ b/Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Drawing; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Histacom2.GlobalPrograms.InstallerPanes +{ + public partial class DirectoryPane : UserControl + { + public DirectoryPane() + { + InitializeComponent(); + } + + private void DirectoryPane_Load(object sender, EventArgs e) + { + classicLabel3.Text = $"Setup will install {((WinClassicInstaller)Parent.Parent).progName} to the destination folder."; + classicLabel5.Text = $"C:\\Program Files\\12padams\\{((WinClassicInstaller)Parent.Parent).progName}\\"; + } + } +} diff --git a/Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.resx b/Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Histacom2/GlobalPrograms/InstallerPanes/DirectoryPane.resx @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root>
\ No newline at end of file diff --git a/Histacom2/GlobalPrograms/WinClassicInstaller.Designer.cs b/Histacom2/GlobalPrograms/WinClassicInstaller.Designer.cs index c8bea62..246f7aa 100644 --- a/Histacom2/GlobalPrograms/WinClassicInstaller.Designer.cs +++ b/Histacom2/GlobalPrograms/WinClassicInstaller.Designer.cs @@ -32,6 +32,7 @@ this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.classicButton1 = new Histacom2.Engine.UI.ClassicButton(); this.classicButton2 = new Histacom2.Engine.UI.ClassicButton(); + this.classicButton3 = new Histacom2.Engine.UI.ClassicButton(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); this.SuspendLayout(); // @@ -80,12 +81,30 @@ this.classicButton2.Size = new System.Drawing.Size(75, 23); this.classicButton2.TabIndex = 3; this.classicButton2.Text = "&Next >"; + this.classicButton2.Click += new System.EventHandler(this.classicButton2_Click); + // + // classicButton3 + // + this.classicButton3.AdaptBackColorWithTheme = true; + this.classicButton3.AdaptFontWithTheme = true; + this.classicButton3.AdaptForeColorWithTheme = true; + this.classicButton3.BackColor = System.Drawing.Color.Silver; + this.classicButton3.DialogResult = System.Windows.Forms.DialogResult.None; + this.classicButton3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); + this.classicButton3.ForeColor = System.Drawing.Color.Black; + this.classicButton3.Location = new System.Drawing.Point(248, 326); + this.classicButton3.Name = "classicButton3"; + this.classicButton3.Size = new System.Drawing.Size(75, 23); + this.classicButton3.TabIndex = 4; + this.classicButton3.Text = "< &Back"; + this.classicButton3.Visible = false; // // WinClassicInstaller // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Silver; + this.Controls.Add(this.classicButton3); this.Controls.Add(this.classicButton2); this.Controls.Add(this.classicButton1); this.Controls.Add(this.pictureBox1); @@ -106,5 +125,6 @@ private System.Windows.Forms.PictureBox pictureBox1; private Engine.UI.ClassicButton classicButton1; private Engine.UI.ClassicButton classicButton2; + private Engine.UI.ClassicButton classicButton3; } } diff --git a/Histacom2/GlobalPrograms/WinClassicInstaller.cs b/Histacom2/GlobalPrograms/WinClassicInstaller.cs index 8f262fb..ff1b7c4 100644 --- a/Histacom2/GlobalPrograms/WinClassicInstaller.cs +++ b/Histacom2/GlobalPrograms/WinClassicInstaller.cs @@ -26,5 +26,18 @@ namespace Histacom2.GlobalPrograms var welkom = new InstallerPanes.WelcomePane(); welkom.Parent = panel1; } + + private void classicButton2_Click(object sender, EventArgs e) + { + classicButton3.Show(); + + panel1.Controls.Clear(); + + if (state == 0) + { + var dir = new InstallerPanes.DirectoryPane(); + dir.Parent = panel1; + } + } } } diff --git a/Histacom2/Histacom2.csproj b/Histacom2/Histacom2.csproj index fc87093..2411b68 100644 --- a/Histacom2/Histacom2.csproj +++ b/Histacom2/Histacom2.csproj @@ -132,6 +132,12 @@ <Compile Include="AchievementBox.Designer.cs"> <DependentUpon>AchievementBox.cs</DependentUpon> </Compile> + <Compile Include="GlobalPrograms\InstallerPanes\DirectoryPane.cs"> + <SubType>UserControl</SubType> + </Compile> + <Compile Include="GlobalPrograms\InstallerPanes\DirectoryPane.Designer.cs"> + <DependentUpon>DirectoryPane.cs</DependentUpon> + </Compile> <Compile Include="GlobalPrograms\InstallerPanes\WelcomePane.cs"> <SubType>UserControl</SubType> </Compile> @@ -413,6 +419,9 @@ <EmbeddedResource Include="AchievementBox.resx"> <DependentUpon>AchievementBox.cs</DependentUpon> </EmbeddedResource> + <EmbeddedResource Include="GlobalPrograms\InstallerPanes\DirectoryPane.resx"> + <DependentUpon>DirectoryPane.cs</DependentUpon> + </EmbeddedResource> <EmbeddedResource Include="GlobalPrograms\InstallerPanes\WelcomePane.resx"> <DependentUpon>WelcomePane.cs</DependentUpon> </EmbeddedResource> @@ -784,6 +793,7 @@ <None Include="Resources\WinClassic\WinClassicInstallPic.png" /> <None Include="Resources\WinClassic\WinClassicMinesweeper.png" /> <None Include="Resources\WinClassic\WinClassicInstallSidebar.png" /> + <None Include="Resources\WinClassic\WinClassicInstallIcon.png" /> <Content Include="Resources\WinClassic\WinClassicMSN.png" /> <Content Include="Resources\WinClassic\WinClassicNetworking.png" /> <None Include="Resources\WinClassic\WinClassicNotepad.png" /> diff --git a/Histacom2/Properties/Resources.resx b/Histacom2/Properties/Resources.resx index 366c7a9..16044e5 100644 --- a/Histacom2/Properties/Resources.resx +++ b/Histacom2/Properties/Resources.resx @@ -1954,6 +1954,9 @@ <data name="IE4Home_WinTechLogo" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\IE4\IE4Home_WinTechLogo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> + <data name="WinClassicInstallIcon" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\Resources\WinClassic\WinClassicInstallIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> <data name="WinClassicInstallSidebar" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Resources\WinClassic\WinClassicInstallSidebar.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> diff --git a/Histacom2/Properties/Resources1.Designer.cs b/Histacom2/Properties/Resources1.Designer.cs index 465250d..8c290f0 100644 --- a/Histacom2/Properties/Resources1.Designer.cs +++ b/Histacom2/Properties/Resources1.Designer.cs @@ -1706,6 +1706,16 @@ namespace Histacom2.Properties { /// <summary> /// Looks up a localized resource of type System.Drawing.Bitmap. /// </summary> + public static System.Drawing.Bitmap WinClassicInstallIcon { + get { + object obj = ResourceManager.GetObject("WinClassicInstallIcon", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// <summary> + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// </summary> public static System.Drawing.Bitmap WinClassicInstallPic { get { object obj = ResourceManager.GetObject("WinClassicInstallPic", resourceCulture); diff --git a/Histacom2/Resources/WinClassic/WinClassicInstallIcon.png b/Histacom2/Resources/WinClassic/WinClassicInstallIcon.png Binary files differnew file mode 100644 index 0000000..edfcba0 --- /dev/null +++ b/Histacom2/Resources/WinClassic/WinClassicInstallIcon.png |
