Exemplo n.º 1
0
        public MainViewModel()
        {
            AddMapCommand = new RelayCommand(AddMap);
            AddBotCommand = new RelayCommand(AddBot);
            RemoveBotCommand = new RelayCommand(RemoveBot, () => SelectedBot != null);
            StartSimulationCommand = new RelayCommand(StartSimulation, () => Configuration.IsValid());

            _botInformations = new ObservableCollection<BotInfoModel>();
            _logs = new ObservableCollection<string>();
            Configuration = new ConfigurationViewModel();
        }
Exemplo n.º 2
0
        public MainViewModel()
        {
            AddMapCommand          = new RelayCommand(AddMap);
            AddBotCommand          = new RelayCommand(AddBot);
            RemoveBotCommand       = new RelayCommand(RemoveBot, () => SelectedBot != null);
            StartSimulationCommand = new RelayCommand(StartSimulation, () => Configuration.IsValid());

            _botInformations = new ObservableCollection <BotInfoModel>();
            _logs            = new ObservableCollection <string>();
            Configuration    = new ConfigurationViewModel();
        }