mirror of
https://github.com/HistacomUnity/Histacom2-old.git
synced 2025-01-22 09:02:01 -05:00
added first combobox validation
This commit is contained in:
parent
7505e8439e
commit
4ab4aa2f2d
3 changed files with 64 additions and 2 deletions
|
@ -473,7 +473,7 @@ public class MoreWin : Default95Plus
|
|||
{
|
||||
public MoreWin()
|
||||
{
|
||||
defaultWallpaper = Properties.Resources.Win95PlusMoreWinWallpaper;
|
||||
defaultWallpaper = Properties.Resources.Win95PlusMoreWin;
|
||||
themeName = "MoreWin";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,8 +53,18 @@ private void InitializeComponent()
|
|||
this.comboBox1.FormattingEnabled = true;
|
||||
this.comboBox1.Items.AddRange(new object[] {
|
||||
"Default",
|
||||
"Windows 95 Default Plus",
|
||||
"Dangerous Creatures",
|
||||
"Inside Your Computer"});
|
||||
"Inside Your Computer",
|
||||
"Leonardo da Vinci",
|
||||
"More Windows",
|
||||
"Mystery",
|
||||
"Nature",
|
||||
"Science",
|
||||
"Sports",
|
||||
"The 60\'s USA",
|
||||
"The Golden Era",
|
||||
"Travel"});
|
||||
this.comboBox1.Location = new System.Drawing.Point(15, 201);
|
||||
this.comboBox1.Name = "comboBox1";
|
||||
this.comboBox1.Size = new System.Drawing.Size(269, 21);
|
||||
|
@ -73,6 +83,13 @@ private void InitializeComponent()
|
|||
//
|
||||
// applyButton
|
||||
//
|
||||
this.applyButton.AdaptBackColorWithTheme = true;
|
||||
this.applyButton.AdaptFontWithTheme = true;
|
||||
this.applyButton.AdaptForeColorWithTheme = true;
|
||||
this.applyButton.BackColor = System.Drawing.Color.Silver;
|
||||
this.applyButton.DialogResult = System.Windows.Forms.DialogResult.None;
|
||||
this.applyButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
||||
this.applyButton.ForeColor = System.Drawing.Color.Black;
|
||||
this.applyButton.Location = new System.Drawing.Point(209, 245);
|
||||
this.applyButton.Name = "applyButton";
|
||||
this.applyButton.Size = new System.Drawing.Size(75, 23);
|
||||
|
@ -82,6 +99,13 @@ private void InitializeComponent()
|
|||
//
|
||||
// cancelButton
|
||||
//
|
||||
this.cancelButton.AdaptBackColorWithTheme = true;
|
||||
this.cancelButton.AdaptFontWithTheme = true;
|
||||
this.cancelButton.AdaptForeColorWithTheme = true;
|
||||
this.cancelButton.BackColor = System.Drawing.Color.Silver;
|
||||
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.None;
|
||||
this.cancelButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
||||
this.cancelButton.ForeColor = System.Drawing.Color.Black;
|
||||
this.cancelButton.Location = new System.Drawing.Point(128, 245);
|
||||
this.cancelButton.Name = "cancelButton";
|
||||
this.cancelButton.Size = new System.Drawing.Size(75, 23);
|
||||
|
@ -91,6 +115,13 @@ private void InitializeComponent()
|
|||
//
|
||||
// okButton
|
||||
//
|
||||
this.okButton.AdaptBackColorWithTheme = true;
|
||||
this.okButton.AdaptFontWithTheme = true;
|
||||
this.okButton.AdaptForeColorWithTheme = true;
|
||||
this.okButton.BackColor = System.Drawing.Color.Silver;
|
||||
this.okButton.DialogResult = System.Windows.Forms.DialogResult.None;
|
||||
this.okButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
|
||||
this.okButton.ForeColor = System.Drawing.Color.Black;
|
||||
this.okButton.Location = new System.Drawing.Point(47, 245);
|
||||
this.okButton.Name = "okButton";
|
||||
this.okButton.Size = new System.Drawing.Size(75, 23);
|
||||
|
|
|
@ -51,6 +51,37 @@ private void WinClassicThemePanel_Load(object sender, EventArgs e)
|
|||
case "insidepc":
|
||||
comboBox1.SelectedItem = "Inside Your Computer";
|
||||
break;
|
||||
case "default95plus":
|
||||
comboBox1.SelectedItem = "Windows 95 Default Plus";
|
||||
break;
|
||||
case "goldenera":
|
||||
comboBox1.SelectedItem = "The Golden Era";
|
||||
break;
|
||||
case "Leo":
|
||||
comboBox1.SelectedItem = "Leonardo da Vinci";
|
||||
break;
|
||||
case "Mystery":
|
||||
comboBox1.SelectedItem = "Mystery";
|
||||
break;
|
||||
case "Nature":
|
||||
comboBox1.SelectedItem = "Nature";
|
||||
break;
|
||||
case "Science":
|
||||
comboBox1.SelectedItem = "Science";
|
||||
break;
|
||||
case "Sports":
|
||||
comboBox1.SelectedItem = "Sports";
|
||||
break;
|
||||
case "The60":
|
||||
comboBox1.SelectedItem = "The 60's USA";
|
||||
break;
|
||||
case "Travel":
|
||||
comboBox1.SelectedItem = "Travel";
|
||||
break;
|
||||
case "MoreWin":
|
||||
comboBox1.SelectedItem = "More Windows";
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue