Example #1
0
        private void EditCustomerBtn_Click(object sender, EventArgs e)
        {
            EditCustomer aEditCustomer = new EditCustomer();

            aEditCustomer.Show();
            aEditCustomer.MdiParent = this;
            UpdateMain();
        }
Example #2
0
 private void EditCustomersRibnBtn_Click(object sender, EventArgs e)
 {
     if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.EditCustomers) == EventStatus.Permit)
     {
         EditCustomer aEditCustomer = new EditCustomer();
         __AddTabPage(aEditCustomer, __CustomersColor);
     }
     else
     {
         MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #3
0
 private void EditCustomerBtn_Click(object sender, EventArgs e)
 {
     if (PrivilegesManager.GetEventStatues(Calcium_RMS.Events.EditCustomers) == EventStatus.Permit)
     {
         EditCustomer aEditCustomer = new EditCustomer();
         aEditCustomer.Show();
         // aEditCustomer.MdiParent = Helper.Instance.ActiveMainWindow;
     }
     else
     {
         MessageBox.Show(MsgTxt.PrivUserNotAllowedTxt, MsgTxt.InformationCaption, MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Example #4
0
 private void ListCustomersDGView_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         DataRow aCustomerRowToPass = CustomerMgmt.SelectCustomerRowByID(int.Parse(aCustomerTable.Rows[e.RowIndex]["ID"].ToString()));
         if (aCustomerRowToPass != null)
         {
             EditCustomer aEditCustomer = new EditCustomer();
             //  aEditCustomer.MdiParent = Helper.Instance.ActiveMainWindow;
             aEditCustomer.Show();
             aEditCustomer.UpdateVariables(aCustomerRowToPass);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(MsgTxt.UnexpectedError + "\n IN [ListCustomers:ListCustomersDGView_CellDoubleClick()] \n Exception: \n" + ex.ToString(), MsgTxt.ErrorCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);
         throw;
     }
 }