コード例 #1
0
        private void EditCustomerBtn_Click(object sender, EventArgs e)
        {
            EditCustomer aEditCustomer = new EditCustomer();

            aEditCustomer.Show();
            aEditCustomer.MdiParent = this;
            UpdateMain();
        }
コード例 #2
0
ファイル: Main2.cs プロジェクト: SariSultan/RMS
 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);
     }
 }
コード例 #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);
     }
 }
コード例 #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;
     }
 }