Ejemplo n.º 1
0
        public MainWindowViewModel(LoadedViewModel loadedView, LoadingViewModel loadingView, QuestPatcherService mainService)
        {
            LoadedView  = loadedView;
            LoadingView = loadingView;
            MainService = mainService;

            // Set the window name based on the QuestPatcher version
            WindowName = $"QuestPatcher v{VersionUtil.QuestPatcherVersion}";
        }
Ejemplo n.º 2
0
        public MainWindowViewModel(LoadedViewModel loadedView, LoadingViewModel loadingView, QuestPatcherService mainService)
        {
            LoadedView  = loadedView;
            LoadingView = loadingView;
            MainService = mainService;

            // Set the window name based on the assembly version
            Version?assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;

            if (assemblyVersion == null)
            {
                throw new NullReferenceException("Assembly version was null, unable to set window title");
            }

            WindowName = $"QuestPatcher v{assemblyVersion.Major}.{assemblyVersion.Minor}.{assemblyVersion.Build}";
        }