Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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";
        }