private void buttonadd_Click(object sender, EventArgs e)
        {
            Customeraddform customeraddform = new Customeraddform();

            this.Hide();
            customeraddform.Show();
        }
        private void dataGridViewCustomerList_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int rowIndex   = e.RowIndex;
            int customerId = int.Parse(dataGridViewCustomerList.Rows[rowIndex].Cells[0].Value.ToString());
            CustomerDataLogic customerDataLogic = new CustomerDataLogic();
            bool result = customerDataLogic.GetCustomerInfo(customerId, out customerName, out phoneno, out fax, out email, out address, out isActive, out adminname, out adminemail, out adminphone, out adminmobile, out ITname, out ITmobile, out ITemail, out ITphone, out isSystemGenerated);

            if (result == true)
            {
                Customeraddform customerAddForm = new Customeraddform()
                {
                    MdiParent = this.Parent.FindForm()
                };
                customerAddForm.customerName      = customerName;
                customerAddForm.phoneno           = phoneno;
                customerAddForm.fax               = fax;
                customerAddForm.email             = email;
                customerAddForm.address           = address;
                customerAddForm.isActive          = isActive;
                customerAddForm.adminname         = adminname;
                customerAddForm.adminemail        = adminemail;
                customerAddForm.adminphone        = adminphone;
                customerAddForm.adminmobile       = adminmobile;
                customerAddForm.ITname            = ITname;
                customerAddForm.ITmobile          = ITmobile;
                customerAddForm.ITemail           = ITemail;
                customerAddForm.ITphone           = ITphone;
                customerAddForm.isSystemGenerated = isSystemGenerated;
                customerAddForm.customerId        = customerId;
                this.Hide();
                customerAddForm.Show();
            }
            else
            {
                MessageBox.Show("No Valid Information Found!", "Error!");
            }
        }