예제 #1
0
        public ShellViewModel(ILogRepository logRepository, ICommandBuilder commandBuilder, ILogService logger)
        {
            _logger = logger;
            var v = Assembly.GetEntryAssembly().GetName().Version;

            Version = string.Format(Messages.Status_Version, v.ToString(3));

            LogRepository    = logRepository;
            DefaultDirectory = Environment.ExpandEnvironmentVariables(DEFAULT_DIRECTORY);

            FilterCommand = commandBuilder.BuildAsyncCommand <string>(FilterAsync, CanFilter);
        }