Esempio n. 1
0
        public SettingsViewModel(IStaticParams staticParams)
        {
            _staticParams = staticParams ?? throw new ArgumentNullException(nameof(staticParams));
            var versionNumber = Assembly.GetExecutingAssembly().GetName().Version.ToString() ?? "0";

            Version = "Application " + versionNumber;
        }
Esempio n. 2
0
 public GameViewModel(ICoreNavigationServie navigationService,
                      IStaticParams staticParams,
                      IDocumentService documentService)
 {
     _navigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService));
     _staticParams      = staticParams ?? throw new ArgumentNullException(nameof(staticParams));
     _documentService   = documentService ?? throw new ArgumentNullException(nameof(documentService));
 }
Esempio n. 3
0
 public HomeViewModel(ICoreNavigationServie navigationServie, IStaticParams staticParams, IIOService iOService)
 {
     _navigationServie = navigationServie ?? throw new ArgumentNullException(nameof(navigationServie));
     _staticParams     = staticParams ?? throw new ArgumentNullException(nameof(staticParams));
     _iOService        = iOService ?? throw new ArgumentNullException(nameof(iOService));
 }
Esempio n. 4
0
 public MainViewModel(ICoreNavigationServie coreNavigationServie, IStaticParams staticParams)
 {
     _navigationServie = coreNavigationServie ?? throw new ArgumentNullException(nameof(coreNavigationServie));
     _staticParams     = staticParams ?? throw new ArgumentNullException(nameof(staticParams));
 }
Esempio n. 5
0
 public IOService(IStaticParams staticParams)
 {
     _staticParams = staticParams ?? throw new ArgumentNullException(nameof(staticParams));
 }