private void btnAddIssueLocation_Click(object sender, EventArgs e) { Modals.ReceivingUnitsDetails recDetail = new ReceivingUnitsDetails(); var result = recDetail.ShowDialog(); LoadIssueLocations(); }
private void gridReceivingUnitView_DoubleClick(object sender, EventArgs e) { var dr = gridReceivingUnitView.GetFocusedDataRow(); int receivingUnitID = Convert.ToInt32(dr["ID"]); Modals.ReceivingUnitsDetails recDetail = new ReceivingUnitsDetails(receivingUnitID); recDetail.ShowDialog(); LoadIssueLocations(); }
private void grdReceivingUnit_DoubleClick(object sender, EventArgs e) { DataRow dr = grdViewReceivingUnit.GetFocusedDataRow(); if (dr != null) { int itemId = Convert.ToInt32(dr["ID"]); ReceivingUnitsDetails con = new ReceivingUnitsDetails(itemId); con.ShowDialog(); } }
private void btnAddReceivingUnit_Click(object sender, EventArgs e) { if (this.Modal) { this.Hide(); ReceivingUnitsDetails con = new ReceivingUnitsDetails(-1); con.ShowDialog(); this.Show(); } else { ReceivingUnitsDetails con = new ReceivingUnitsDetails(-1); con.ShowDialog(); } }