Beispiel #1
0
        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();
        }
Beispiel #2
0
        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();
        }