diff options
| author | Alex-TIMEHACK <alexbu2015@hotmail.com> | 2017-08-27 11:32:44 +0100 |
|---|---|---|
| committer | Alex-TIMEHACK <alexbu2015@hotmail.com> | 2017-08-27 11:32:44 +0100 |
| commit | f8f3bd0b1eb57c5a289513200b192e1d54d58292 (patch) | |
| tree | c9b79515fb81d90320ef386a522a5830875f6d49 /TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/CustomMinefield.cs | |
| parent | bffcb720f811623015ed4795032e5c57d1064c8a (diff) | |
| parent | cd6273d7c95098e0e0dd9948c6b5cec1c5f9cd3f (diff) | |
| download | histacom2-f8f3bd0b1eb57c5a289513200b192e1d54d58292.tar.gz histacom2-f8f3bd0b1eb57c5a289513200b192e1d54d58292.tar.bz2 histacom2-f8f3bd0b1eb57c5a289513200b192e1d54d58292.zip | |
Updated my fork!
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/CustomMinefield.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/CustomMinefield.cs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/CustomMinefield.cs b/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/CustomMinefield.cs deleted file mode 100644 index c87d0d1..0000000 --- a/TimeHACK.Main/OS/Win95/Win95Apps/MineSweeper/CustomMinefield.cs +++ /dev/null @@ -1,42 +0,0 @@ -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; -using TimeHACK.Engine; - -namespace TimeHACK.OS.Win95.Win95Apps.MineSweeper -{ - public partial class CustomMinefield : UserControl - { - private WinClassicMinesweeper _wcm; - private WindowManager wm; - - public CustomMinefield(WinClassicMinesweeper wcm) - { - InitializeComponent(); - _wcm = wcm; - wm = new WindowManager(); - for (int i = 8; i < 31; i++) comboBox1.Items.Add(i); - for (int i = 8; i < 25; i++) comboBox2.Items.Add(i); - for (int i = 10; i < 668; i++) comboBox3.Items.Add(i); - } - - private void button1_Click(object sender, EventArgs e) - { - if ((int)comboBox1.SelectedItem * (int)comboBox2.SelectedItem <= (int)comboBox3.SelectedItem) wm.StartInfobox95("Oops!", "Too many mines!", Engine.Template.InfoboxType.Warning, Engine.Template.InfoboxButtons.OK); - else - { - _wcm.customwidth = (int)comboBox1.SelectedItem; - _wcm.customheight = (int)comboBox2.SelectedItem; - _wcm.custommines = (int)comboBox3.SelectedItem; - _wcm.calculateFormSize((int)comboBox1.SelectedItem, (int)comboBox2.SelectedItem); - this.ParentForm.Close(); - } - } - } -} |
