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(); }
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(); }