示例#1
0
        public ShellViewModel(LogParserViewModel logParserViewModel, SettingsViewModel settingsViewModel, AboutViewModel aboutViewModel, SnackbarMessageQueue messageQueue)
        {
            this.logParserViewModel = logParserViewModel;
            this.settingsViewModel  = settingsViewModel;
            this.aboutViewModel     = aboutViewModel;
            this.messageQueue       = messageQueue;

            var assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version;

            Version = $"Ver. {assemblyVersion.Major}.{assemblyVersion.Minor}.{assemblyVersion.Build}";
        }
示例#2
0
 public MainWindowViewModel(LogParserManager manager)
 {
     LogParser = new LogParserViewModel(manager);
 }