private void bbtniALAddAppointment_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Form addAppForm = new frmAddAppointment(this, presenter); addAppForm.FormBorderStyle = FormBorderStyle.None; //set fill parent addAppForm.MdiParent = this.MdiParent; addAppForm.Dock = DockStyle.Fill; addAppForm.Show(); }
private void btnALUpdateAppointment_ButtonClick(object sender, ButtonPressedEventArgs e) { GridView gridView = grdconALAppointment.FocusedView as GridView; GridColumn colCode = gvALAppointment.Columns["APP_CODE"]; String code = gvALAppointment.GetRowCellValue(gridView.FocusedRowHandle, colCode).ToString(); Form addAppForm = new frmAddAppointment(this, presenter, code); addAppForm.FormBorderStyle = FormBorderStyle.None; //set fill parent addAppForm.MdiParent = this.MdiParent; addAppForm.Dock = DockStyle.Fill; addAppForm.Show(); }