public DataGridViewModel() { SpeciesRow.Add(new SpeciesRowViewModel()); SpeciesRow[0].RowChanged += SpeciesEdit; RemoveCareer = new RemoveCommand(RemoveRow); messageService = new MsgBoxService(); }
public CrudViewModel(IMsgBoxService msgboxService) { messageService = msgboxService; _clientRepository = new ClientRepository(); CreateCommand = new Command(() => Create()); LoadCommand = new Command(() => Read()); UpDateCommand = new Command(() => Update()); DeleteCommand = new Command(() => Delete()); Clients = new ObservableCollection <Client>(); }
public ConfigurationViewModel(INavigationService navigationService, ICameraConfigurationRepository cameraConfigurationRepository, IMsgBoxService msgBoxService) { _navigationService = navigationService; _msgBoxService = msgBoxService; _cameraConfigurationRepository = cameraConfigurationRepository; _parameters = new List<ConfigurationParameterViewModel>(); VideoParameters = new ObservableCollection<ConfigurationParameterViewModel>(); PhotoParameters = new ObservableCollection<ConfigurationParameterViewModel>(); SystemParameters = new ObservableCollection<ConfigurationParameterViewModel>(); // _configurationService = configurationService; //LoadDetailedConfigurationAsync(); }
public MainWindowViewModel() { _IconSource = Path.Combine(Environment.CurrentDirectory, "Images/GamecardsPic.png"); // Add available pages messageService = new MsgBoxService(); PageViewModels.Add(new MenuViewModel(this)); PageViewModels.Add(new OptionsViewModel(this)); PageViewModels.Add(new GameViewModel(this, PageViewModels[1], messageService)); PageViewModels.Add(new RulesViewModel(this)); // Set starting page CurrentPageViewModel = PageViewModels[0]; }
public GameViewModel(MainWindowViewModel mainwindow, PageViewModel options, IMsgBoxService msgboxService) { mwvm = mainwindow; messageService = msgboxService; gameLogic = new Game(this, options.Data); }