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

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

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