예제 #1
0
        public static void Open(Mode mode)
        {
            var f = new FormCalc();

            f.CurrentMode    = mode;
            f.ModeLabel.Text = f.GetModeString(mode);
            f.ShowDialog();
        }
예제 #2
0
 private void DivButton_Click(object sender, EventArgs e) => FormCalc.Open(FormCalc.Mode.Div);
예제 #3
0
 private void MultiButton_Click(object sender, EventArgs e) => FormCalc.Open(FormCalc.Mode.Multi);
예제 #4
0
 private void MinusButton_Click(object sender, EventArgs e) => FormCalc.Open(FormCalc.Mode.Minus);
예제 #5
0
 private void AddButton_Click(object sender, EventArgs e) => FormCalc.Open(FormCalc.Mode.Add);