Exemple #1
0
 /// <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));
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 public virtual void Execute()
 {
     CommandFired?.Invoke(this);
 }