private void restockBttn_Click(object sender, EventArgs e) { if (restockform == null) { restockform = new restockFrm(); restockform.FormClosed += restockform_FormClosed; } restockform.Show(this); Hide(); }
private void inventoryDtgrdvw_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (restockform == null) { restockform = new restockFrm(); restockform.FormClosed += restockform_FormClosed; restockform.Tag = inventoryDtgrdvw[0, inventoryDtgrdvw.CurrentRow.Index].Value; } restockform.Show(this); Hide(); }
void restockform_FormClosed(object sender, FormClosedEventArgs e) { restockform = null; LoadIventory(); Show(); }