private void prevWorkButton_Click(object sender, EventArgs e) { WorkForm workForm = new WorkForm(); this.Hide(); workForm.Show(); }
private void nextWorkForm_Click(object sender, EventArgs e) { if ((dataOpen[10].TypeLoc == "") || (dataOpen[10].NumberLoc == "")) { MessageBox.Show("Не выбран тепловоз!", "Внимание",MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } else { WorkForm workForm = new WorkForm(); this.Hide(); workForm.Show(); } }