// thao tac click nut 2 private void SecondButton_Click(object sender, EventArgs e) { y.Real = Int32.Parse(RealTextBox.Text); y.Imaginary = Int32.Parse(ImaginaryTextBox.Text); RealTextBox.Clear(); ImaginaryTextBox.Clear(); NoticeLabel.Text = "Second Complex Number is..." + y.toString(); }
// thao tac click nut 1 private void FirstButton_Click(object sender, EventArgs e) { x.Real = Int32.Parse(RealTextBox.Text); x.Imaginary = Int32.Parse(ImaginaryTextBox.Text); RealTextBox.Clear(); ImaginaryTextBox.Clear(); NoticeLabel.Text = "First Complex Number is..." + x.toString(); }