private bool ComAction(object parameters) { var com = ((InstrumentCommandActionOption)parameters).Command; OnCommandRequest?.Invoke(this, com); return(true); }
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); } } }