public void GiveCommand(string action) { SamurayActionEventArgs args = new SamurayActionEventArgs(); args.Action = action; args.TimeReached = DateTime.Now; OnCommandGived(args); }
protected virtual void OnCommandGived(SamurayActionEventArgs e) { EventHandler <SamurayActionEventArgs> handler = CommandGived; if (handler != null) { handler(this, e); } }
private void OnCommandGived(object sender, SamurayActionEventArgs e) { Console.WriteLine(name + " begin " + e.Action); }