Example #1
0
        private void btnAENewCustomer_Click(object sender, EventArgs e)
        {
            Form addCusForm = new frmAddCustomer(this, new CustomerPresenter());

            addCusForm.FormBorderStyle = FormBorderStyle.None;
            //set fill parent
            addCusForm.MdiParent = this.MdiParent;
            addCusForm.Dock      = DockStyle.Fill;
            addCusForm.Show();
        }
Example #2
0
        private void btnAddCustomer_Click(object sender, EventArgs e)
        {
            ////add customer button
            slidePlane.Height = btnSetUp.Height;
            slidePlane.Top    = btnCustomer.Top;

            string         vcName = null;
            string         vcCar  = null;
            frmAddCustomer obj    = new frmAddCustomer(vcName, vcCar);

            obj.MdiParent = this;
            obj.Show();
        }
Example #3
0
        private void btnAINewCustomer_Click(object sender, EventArgs e)
        {
            /*
             * Form addEmployForm = new frmAddEmployee(this, new EmployeePresenter());
             * addEmployForm.FormBorderStyle = FormBorderStyle.None;
             * //set fill parent
             * addEmployForm.MdiParent = this.MdiParent;
             * addEmployForm.Dock = DockStyle.Fill;
             * addEmployForm.Show();
             */
            Form addCustomerForm = new frmAddCustomer(this, new CustomerPresenter());

            addCustomerForm.FormBorderStyle = FormBorderStyle.None;
            //set fill parent
            addCustomerForm.MdiParent = this.MdiParent;
            addCustomerForm.Dock      = DockStyle.Fill;
            addCustomerForm.Show();
        }