예제 #1
0
        private void EditItemBtn_Click(object sender, EventArgs e)
        {
            EditItems aEditItem = new EditItems();

            aEditItem.Show();
            aEditItem.MdiParent = this;
            UpdateMain();
        }
예제 #2
0
파일: Main2.cs 프로젝트: SariSultan/RMS
 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);
     }
 }
예제 #3
0
 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);
     }
 }
예제 #4
0
파일: ListItems.cs 프로젝트: SariSultan/RMS
 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;
     }
 }