private void OnSimulationEndedForSeatingArrangement(object sender, Events.EventArg <IEnumerable <Bot> > args) { var seatingArrangement = args.Data; this.stopwatch.Stop(); Log.TotalSimulationTime(this.stopwatch.ElapsedMilliseconds); }
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; } }
private void OnSimulationStartedForSeatingArrangement(object sender, Events.EventArg <IEnumerable <Bot> > e) { this.stopwatch = Stopwatch.StartNew(); }