Exemple #1
0
        private void bbtniCLAddCustomer_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form addCusForm = new frmAddCustomer(this, presenter);

            addCusForm.FormBorderStyle = FormBorderStyle.None;
            //set fill parent
            addCusForm.MdiParent = this.MdiParent;
            addCusForm.Dock      = DockStyle.Fill;
            addCusForm.Show();
        }
Exemple #2
0
        private void btnCLUpdateCustomer_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            GridView   gridView = grdconCLCustomer.FocusedView as GridView;
            GridColumn colCode  = gvCLCustomer.Columns["CUS_CODE"];
            String     code     = gvCLCustomer.GetRowCellValue(gridView.FocusedRowHandle, colCode).ToString();


            Form addCusForm = new frmAddCustomer(this, presenter, code);

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