Exemplo n.º 1
0
        private void OnSimulationEndedForSeatingArrangement(object sender, Events.EventArg <IEnumerable <Bot> > args)
        {
            var seatingArrangement = args.Data;

            this.stopwatch.Stop();
            Log.TotalSimulationTime(this.stopwatch.ElapsedMilliseconds);
        }
Exemplo n.º 2
0
 private void TextBox_OnKeyPresse(object sender, Events.EventArg arg)
 {
     if (arg.Data.Code == Keyboard.Key.Backspace)
     {
         if (Text.Length > 0)
         {
             Text = Text.Substring(0, Text.Length - 1);
         }
     }
     else if (arg.Data.Code == Keyboard.Key.Enter)
     {
     }
     else
     {
         Text += arg.Data.Code;
     }
 }
Exemplo n.º 3
0
 private void OnSimulationStartedForSeatingArrangement(object sender, Events.EventArg <IEnumerable <Bot> > e)
 {
     this.stopwatch = Stopwatch.StartNew();
 }