internal void OnScriptStopEvent(string tag) { MacroTopBarPlayControl.ScriptStopDelegate scriptStopEvent = this.ScriptStopEvent; if (scriptStopEvent == null) { return; } scriptStopEvent(tag); }
public void StopMacro() { try { this.StopTimer(); this.mBlinkPlayingIconTimer = (DispatcherTimer)null; this.ParentWindow?.mCommonHandler?.StopMacroScriptHandling(); if (this.mOperationsRecord == null) { return; } MacroTopBarPlayControl.ScriptStopDelegate scriptStopEvent = this.ScriptStopEvent; if (scriptStopEvent != null) { scriptStopEvent(this.mOperationsRecord.Name); } ClientStats.SendMiscellaneousStatsAsync("MacroOperations", RegistryManager.Instance.UserGuid, RegistryManager.Instance.ClientVersion, "macro_stop", (string)null, this.mOperationsRecord.RecordingType.ToString(), (string)null, (string)null, (string)null, "Android"); } catch (Exception ex) { Logger.Error("Error in StopMacro: " + ex.Message); } }