Beispiel #1
0
        public void GiveCommand(string action)
        {
            SamurayActionEventArgs args = new SamurayActionEventArgs();

            args.Action      = action;
            args.TimeReached = DateTime.Now;
            OnCommandGived(args);
        }
Beispiel #2
0
        protected virtual void OnCommandGived(SamurayActionEventArgs e)
        {
            EventHandler <SamurayActionEventArgs> handler = CommandGived;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #3
0
 private void OnCommandGived(object sender, SamurayActionEventArgs e)
 {
     Console.WriteLine(name + " begin " + e.Action);
 }