// Add new record. // New window for data input will pop up. private void toolStripButton1_Click(object sender, EventArgs e) { WorkForm workFormCopy = this; AddTrain newTrain = new AddTrain(ref workFormCopy, ref trainDataTable); newTrain.Show(); }
// Add new record. // New window for data input will pop up. private void addNewToolStripMenuItem_Click(object sender, EventArgs e) { WorkForm workFormCopy = this; AddTrain newTrain = new AddTrain(ref workFormCopy, ref trainDataTable); newTrain.Show(); }