private void mnuInsert_Click(object sender, EventArgs e) { try { frmStores f = new frmStores(); f.Form_Load(); f.op = "Add"; f.ShowDialog(); } catch { } }
private void mnuEdit_Click(object sender, EventArgs e) { try { frmStores f = new frmStores(); f.op = "Edit"; f.FillData(dgvStore.CurrentRow.Cells["Code"].Value.ToString()); f.ShowDialog(); } catch { frmMessage f = new frmMessage(); f.flag = 0; f.lblMessage.Text = "انبار انتخابی معتبر نمی باشد"; f.ShowDialog(); } }
private void mnuView_Click(object sender, EventArgs e) { try { frmStores f = new frmStores(); f.FillData(dgvStore.CurrentRow.Cells["Code"].Value.ToString()); f.grpStores.Enabled = false; f.btnFinish.Enabled = false; f.ShowDialog(); } catch { frmMessage f = new frmMessage(); f.flag = 0; f.lblMessage.Text = "انبار انتخابی معتبر نمی باشد"; f.ShowDialog(); } }
private void cmbStore_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 13) txtNotice.Focus(); else if (e.KeyData == Keys.F12) { try { frmStores f = new frmStores(); f.Form_Load(); f.op = "Add"; f.ShowDialog(); Fill_Store(); } catch { } } }
private void cmbW_Destination_KeyDown(object sender, KeyEventArgs e) { if (e.KeyValue == 13) { txtTransferee.Focus(); } else if (e.KeyData == Keys.F12) { try { frmStores f = new frmStores(); f.Form_Load(); f.op = "Add"; f.ShowDialog(); Fill_Store(); } catch { } } }