private void EditItemBtn_Click(object sender, EventArgs e) { EditItems aEditItem = new EditItems(); aEditItem.Show(); aEditItem.MdiParent = this; UpdateMain(); }
private void EditItemBtn_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.EditItems) == EventStatus.Permit) { EditItems aEditItem = new EditItems(); aEditItem.Show(); //aEditItem.MdiParent = Helper.Instance.ActiveMainWindow; } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void ListItemsDgView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { DataRow aItemrow = ItemsMgmt.SelectItemRowByBarcode(ListItemsDgView.Rows[e.RowIndex].Cells["Barcode"].Value.ToString()); if (aItemrow == null) { return; } EditItems aEditItems = new EditItems(); aEditItems.Show(); aEditItems.TopLevel = true; aEditItems.UpdateVariables(aItemrow); } catch (Exception ex) { MessageBox.Show(MsgTxt.UnexpectedError + "\n IN [ListItems:ListItemsDgView_CellDoubleClick()] \n Exception: \n" + ex.ToString(), MsgTxt.ErrorCaption, MessageBoxButtons.OK, MessageBoxIcon.Error); throw; } }