private void EditCustomerBtn_Click(object sender, EventArgs e) { EditCustomer aEditCustomer = new EditCustomer(); aEditCustomer.Show(); aEditCustomer.MdiParent = this; UpdateMain(); }
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); } }
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; } }