private void EditItemBtn_Click(object sender, EventArgs e) { EditItems aEditItem = new EditItems(); aEditItem.Show(); aEditItem.MdiParent = this; UpdateMain(); }
private void EditInventory_Click(object sender, EventArgs e) { if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.EditItems) == EventStatus.Permit) { EditItems aEditItems = new EditItems(); __AddTabPage(aEditItems, __InventoryColor); } else { MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information); } }
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; } }