/// <summary> /// Runs a command. Fires it. Calls it. Any of those. /// </summary> public void Fire() { if (CommandFired == null) { Log.AsyncR("Command failed to fire because it's fire event is null: " + CommandName); return; } CommandFired.Invoke(this, new EventArgsCommand(this)); }
/// <summary> /// Runs a command. Fires it. Calls it. Any of those. /// </summary> public void Fire() { if (CommandFired == null) { Program.LogError("Command failed to fire because it's fire event is null: " + CommandName); return; } CommandFired.Invoke(this); }
public virtual void Execute() { CommandFired?.Invoke(this); }