Exemple #1
0
 void procedure_proc(object sender, tools.program e)
 {
     if (e.subProc == 11)
     {
         this.Dispatcher.Invoke((Action)(() =>
         {
             COM.tx("dir", "log");
         }));
     }
     else if (e.subProc == 15)
     {
         loadInfoContent = procedure.infoText;
     }
 }
Exemple #2
0
        void procedure_proc(object sender, tools.program e)
        {
            try
            {
                if (e.page != 0)
                {
                    if (e.page == 2)
                    {
                        this.Dispatcher.Invoke((Action)(() =>
                        {
                            this.search.IsEnabled = false;
                            this.btl_set.IsEnabled = true;
                            this.system.IsEnabled = true;
                        }));
                    }
                    this.Dispatcher.Invoke((Action)(() =>
                    {
                        navigate(e.page);
                    }));
                }

                if (e.subProc == 1)
                {
                    this.Dispatcher.Invoke((Action)(() =>
                    {
                        this.search.IsEnabled = true;
                        this.btl_set.IsEnabled = false;
                        this.system.IsEnabled = false;
                    }));
                }

                if (e.subProc == 4 || e.subProc == 7)
                {
                    this.Dispatcher.Invoke((Action)(() => { windowState(5); }));
                }
                else if (e.subProc == 6)
                {
                    this.Dispatcher.Invoke((Action)(() => { windowState(4, procedure.infoText); }));
                }
            }
            catch (Exception ex)
            {
                log.write("app", ex.Message + "\r\n " + ex.TargetSite);
            }

        }