Esempio n. 1
0
        public SplashScreenViewModel(IAboutInfoService aboutInfoService, ILanguageService languageService)
        {
            Argument.IsNotNull(() => aboutInfoService);
            Argument.IsNotNull(() => languageService);

            _languageService = languageService;

            var aboutInfo = aboutInfoService.GetAboutInfo();
            CompanyLogoForSplashScreenUri = aboutInfo.CompanyLogoForSplashScreenUri;
        }
        public SplashScreenViewModel(IAboutInfoService aboutInfoService, ILanguageService languageService)
        {
            Argument.IsNotNull(() => aboutInfoService);
            Argument.IsNotNull(() => languageService);

            _languageService = languageService;

            var aboutInfo = aboutInfoService.GetAboutInfo();

            CompanyLogoForSplashScreenUri = aboutInfo.CompanyLogoForSplashScreenUri;
        }
Esempio n. 3
0
        protected override async Task InitializeAsync()
        {
            await base.InitializeAsync();

            var aboutInfo = _aboutInfoService.GetAboutInfo();

            Title   = aboutInfo.Name;
            Company = aboutInfo.Company;
            CompanyLogoForSplashScreenUri = aboutInfo.CompanyLogoForSplashScreenUri;
            ProducedBy = string.Format(_languageService.GetString("Orchestra_ProducedBy"), Company);
            Version    = aboutInfo.DisplayVersion;
        }
Esempio n. 4
0
        public virtual void ShowAbout()
        {
            var aboutInfo = _aboutInfoService.GetAboutInfo();

            if (aboutInfo != null)
            {
                Log.Info("Showing about dialog");

                _uiVisualizerService.ShowDialog <AboutViewModel>(aboutInfo);
            }
            else
            {
                Log.Warning("IAboutInfoService.GetAboutInfo() returned null, cannot show about window");
            }
        }
Esempio n. 5
0
        public ThirdPartyNoticesViewModel(IAboutInfoService aboutInfoService,
                                          IThirdPartyNoticesService thirdPartyNoticesService)
        {
            Argument.IsNotNull(() => aboutInfoService);
            Argument.IsNotNull(() => thirdPartyNoticesService);

            _thirdPartyNoticesService = thirdPartyNoticesService;

            var aboutInfo = aboutInfoService.GetAboutInfo();

            Title = LanguageHelper.GetString("Orchestra_ThirdPartyNotices_Title");

            var explanation = LanguageHelper.GetString("Orchestra_ThirdPartyNotices_Explanation");

            Explanation = string.Format(explanation, aboutInfo.Company, aboutInfo.ProductName);
        }
Esempio n. 6
0
 protected override async Task InitializeAsync()
 {
     AboutInfo = _aboutInfoService.GetAboutInfo();
 }