Ejemplo n.º 1
0
        void multiTask_CheckingTaskChanged(Hy.Check.Engine.Checker curChecker, CheckTask curTask)
        {
            m_FrmCheck             = new FrmTaskCheck(curTask, null);
            m_FrmCheck.CurrentTask = curTask;
            m_FrmCheck.AdaptCheckerEvents(curChecker);

            m_FrmCheck.Show();
            m_FrmCheck.ReadyForCheck();
            Application.DoEvents();

            //if (m_FrmCheck.InvokeRequired)
            //{
            //System.Threading.ThreadStart threadStart = delegate
            //{
            //    if (m_FrmCheck.InvokeRequired)
            //    {
            //        System.Threading.ThreadStart threadStartSub = delegate
            //        {
            //            m_FrmCheck.Show();
            //            m_FrmCheck.ReadyForCheck();
            //        };
            //        m_FrmCheck.Invoke(threadStartSub);
            //    }
            //    else
            //    {
            //        m_FrmCheck.ReadyForCheck();
            //        m_FrmCheck.ShowDialog();
            //    }
            //};
            //System.Threading.Thread thread = new System.Threading.Thread(threadStart);
            //thread.Start();
            //}
            //else
            //{
            //    m_FrmCheck.Show();
            //    if (m_FrmCheck.InvokeRequired)
            //    {
            //        m_FrmCheck.Invoke(new System.Threading.ThreadStart(m_FrmCheck.ReadyForCheck));
            //    }
            //    else
            //    {
            //        m_FrmCheck.ReadyForCheck();
            //    }
            //    Application.DoEvents();
            //}
        }
Ejemplo n.º 2
0
 public override void OnClick()
 {
     List<SchemaRuleEx> ruleSelection = null;
     FrmPreCheck frmPreCheck = new FrmPreCheck();
     frmPreCheck.CurrentTemplateRules = CheckApplication.InitCurrentTemplateRules();
     frmPreCheck.SchemaRulesSelection = ruleSelection;
     if (frmPreCheck.ShowDialog() == DialogResult.Yes)
     {
         Hy.Check.Task.Task task = Hy.Check.Command.CheckApplication.CurrentTask;
         task.ReadyForCheck(false);
         ruleSelection = frmPreCheck.SchemaRulesSelection;
         CheckApplication.TaskChanged(null);
         Hy.Check.UI.Forms.FrmTaskCheck frmCheck = new Hy.Check.UI.Forms.FrmTaskCheck(task, ruleSelection);
         frmCheck.CheckTask();
         CheckApplication.TaskChanged(task);
     }
 }
Ejemplo n.º 3
0
        public override void OnClick()
        {
            List <SchemaRuleEx> ruleSelection = null;
            FrmPreCheck         frmPreCheck   = new FrmPreCheck();

            frmPreCheck.CurrentTemplateRules = CheckApplication.InitCurrentTemplateRules();
            frmPreCheck.SchemaRulesSelection = ruleSelection;
            if (frmPreCheck.ShowDialog() == DialogResult.Yes)
            {
                Hy.Check.Task.Task task = Hy.Check.Command.CheckApplication.CurrentTask;
                task.ReadyForCheck(false);
                ruleSelection = frmPreCheck.SchemaRulesSelection;
                CheckApplication.TaskChanged(null);
                Hy.Check.UI.Forms.FrmTaskCheck frmCheck = new Hy.Check.UI.Forms.FrmTaskCheck(task, ruleSelection);
                frmCheck.CheckTask();
                CheckApplication.TaskChanged(task);
            }
        }
Ejemplo n.º 4
0
        void multiTask_CheckingTaskChanged(Hy.Check.Engine.Checker curChecker, CheckTask curTask)
        {
            m_FrmCheck = new FrmTaskCheck(curTask, null);
            m_FrmCheck.CurrentTask = curTask;
            m_FrmCheck.AdaptCheckerEvents(curChecker);

            m_FrmCheck.Show();
            m_FrmCheck.ReadyForCheck();
            Application.DoEvents();

            //if (m_FrmCheck.InvokeRequired)
            //{
            //System.Threading.ThreadStart threadStart = delegate
            //{
            //    if (m_FrmCheck.InvokeRequired)
            //    {
            //        System.Threading.ThreadStart threadStartSub = delegate
            //        {
            //            m_FrmCheck.Show();
            //            m_FrmCheck.ReadyForCheck();
            //        };
            //        m_FrmCheck.Invoke(threadStartSub);
            //    }
            //    else
            //    {
            //        m_FrmCheck.ReadyForCheck();
            //        m_FrmCheck.ShowDialog();
            //    }
            //};
            //System.Threading.Thread thread = new System.Threading.Thread(threadStart);
            //thread.Start();
            //}
            //else
            //{
            //    m_FrmCheck.Show();
            //    if (m_FrmCheck.InvokeRequired)
            //    {
            //        m_FrmCheck.Invoke(new System.Threading.ThreadStart(m_FrmCheck.ReadyForCheck));
            //    }
            //    else
            //    {
            //        m_FrmCheck.ReadyForCheck();
            //    }
            //    Application.DoEvents();
            //}
        }