private void insertBtn_Click(object sender, EventArgs e) { Hide(); using InsertStorageForm InsertStorageForm = new InsertStorageForm(storageId); InsertStorageForm.ShowDialog(this); Show(); }
private void recordBtn_Click(object sender, EventArgs e) { if (_storageId == 9) { Hide(); using InsertStorageForm insertStorageForm = new InsertStorageForm(_storageId); insertStorageForm.ShowDialog(this); Show(); } else { Hide(); using OutStorageForm outStorageForm = new OutStorageForm(_storageId); outStorageForm.ShowDialog(this); Show(); } }