Example #1
0
        private bool ComAction(object parameters)
        {
            var com = ((InstrumentCommandActionOption)parameters).Command;

            OnCommandRequest?.Invoke(this, com);
            return(true);
        }
Example #2
0
        public override void Do()
        {
            var active = UpdateHelper.IsAppRunning(mainAppPath);

            if (config.KeepUpdaterRunning)
            {
                ClientCommand cmd = Ping(active);
                if (cmd != null)
                {
                    OnCommandRequest?.Invoke(cmd, localRunInfo);
                }
            }

            if (!active)
            {
                if (IsStarted)
                {
                    OnMainAppsClose?.Invoke(this, localRunInfo);
                }
            }
        }