private void DuerecordButton_Click(object sender, EventArgs e) { double b = 0; DueRecord dueRecord = new DueRecord(b); dueRecord.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { try { double dueAmount = Convert.ToDouble(dueTextBox.Text); DueRecord dueRecord = new DueRecord(dueAmount); dueRecord.ShowDialog(); } catch (FormatException formatException) { MessageBox.Show(formatException.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void DuerecordButton_Click_1(object sender, EventArgs e) { double b = 0; DueRecord dueRecord = new DueRecord(b); dueRecord.ShowDialog(); }