Exemple #1
0
 private void beltCalculatorToolStripMenuItem_Click(object sender, EventArgs e)
 {
     BeltCalculatorDialog d = new BeltCalculatorDialog();
     d.Show(this);
 }
Exemple #2
0
        private void beltCalculatorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (beltCalculator == null)
            {
                beltCalculator = new BeltCalculatorDialog();
            }

            if (beltCalculator.Visible)
            {
                beltCalculator.BringToFront();
                return;
            }

            beltCalculator.Show();
            beltCalculator.Visible = true;
        }