Example #1
0
        private void repo_HLE_edit_Click(object sender, EventArgs e)
        {
            Frm_TechniqueLogUpdate frm = new Frm_TechniqueLogUpdate();

            frm.LogObject = advBandedGridView1.GetFocusedRowCellValue(builder_Log.ID).ToString();
            string MissionID = advBandedGridView1.GetFocusedRowCellValue(builder_Log.MissionID).ToString();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                adapter_Log.NotifyfreshDataTable(new TechniqueLogController().FindByMissionID(MissionID));
                this.gridControl2.DataSource = adapter_Log.ResultTable;
            }
            else
            {
                MessageBoxHelper.ShowUpdateStateDialog(false);
            }
        }
Example #2
0
 private void schedulerControl1_EditAppointmentFormShowing(object sender, DevExpress.XtraScheduler.AppointmentFormEventArgs e)
 {
     e.Handled = true;
     if (string.IsNullOrEmpty(e.Appointment.Subject))
     {
         Frm_TechniqueLogInput frm = new Frm_TechniqueLogInput();
         frm.CurrentDate = e.Appointment.Start;
         if (DialogResult.OK == frm.ShowDialog())
         {
             onInitialUI();
         }
     }
     else
     {
         Frm_TechniqueLogUpdate frm = new Frm_TechniqueLogUpdate();
         frm.LogObject = e.Appointment.Id;
         if (DialogResult.OK == frm.ShowDialog())
         {
             onInitialUI();
         }
     }
 }