示例#1
0
        public static void StartAutomate()
        {
            AutomateForm form = AutomateForm.GetInstance(Program.Settings.AutomateScripts);

            if (form.Visible)
            {
                if (AutomateForm.IsRunning)
                {
                    form.Stop();
                }
                else
                {
                    form.Start();
                }
            }
            else
            {
                form.ShowActivate();
            }
        }
示例#2
0
        public static void OpenAutomate()
        {
            AutomateForm form = AutomateForm.GetInstance(Program.Settings.AutomateScripts);

            form.ShowActivate();
        }