Example #1
0
        private void bbtniAMAddAccount_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form addAccForm = new frmAddAccount(this, presenter);

            addAccForm.FormBorderStyle = FormBorderStyle.None;
            //set fill parent
            addAccForm.MdiParent = this.MdiParent;
            addAccForm.Dock      = DockStyle.Fill;
            addAccForm.Show();
        }
Example #2
0
        private void btnAMUpdateAccount_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            GridView   gridView = grdconAMAccount.FocusedView as GridView;
            GridColumn colCode  = gvAMAccount.Columns["ACC_CODE"];
            String     code     = gvAMAccount.GetRowCellValue(gridView.FocusedRowHandle, colCode).ToString();


            Form addAccForm = new frmAddAccount(this, presenter, code);

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