private void basicToolStripMenuItem_click(object sender, EventArgs e) { BasicPanel.BringToFront(); menuStrip1.BringToFront(); BasicPanel.Enabled = true; TemperaturePanel.Enabled = false; SetDefault(equals); // this.basicPanel = new BasicPanel(); // basicContentPanel.Controls.Add(this.basicPanel); }
public static void LoadPlayer() { Player Player1 = new Player(LoadedTextures.RedBlock, new Position(10, 10), true, 1); Player Player2 = new Player(LoadedTextures.RedBlock, new Position(100, 10), true, 1); BasicPanel Panel = new BasicPanel(LoadedTextures.RedBlock, new Position(225, 118), false, 1, 401); BasicButton Button1 = new BasicButton(LoadedTextures.BlueBlock, new Position(25, 50), false, 1, 101); BasicButton Button2 = new BasicButton(LoadedTextures.BlueBlock, new Position(25, 118), false, 1, 102); ToggleButton ToggleButton = new ToggleButton(LoadedTextures.BlueBlock, new Position(25, 84), false, 1, 201); TextBox Box = new TextBox(LoadedTextures.WhiteBlock, new Position(125, 84), false, 1, 301); TextBox Boxd = new TextBox(LoadedTextures.WhiteBlock, new Position(125, 118), false, 1, 302); }
public Calculator() { InitializeComponent(); BasicPanel.BringToFront(); menuStrip1.BringToFront(); TemperaturePanel.Enabled = false; BasicPanel.Enabled = true; SetDefault(equals); tempFromCombo.Items.Add("Celsius"); tempFromCombo.Items.Add("Fahrenheit"); tempFromCombo.Items.Add("Kelvin"); tempFromCombo.SelectedItem = "Celsius"; tempToCombo.Items.Add("Celsius"); tempToCombo.Items.Add("Fahrenheit"); tempToCombo.Items.Add("Kelvin"); tempToCombo.SelectedItem = "Fahrenheit"; }