/// <summary> /// MainViewModel construcor. /// </summary> /// <param name="windowManager">The current window manager.</param> /// <param name="eventAggregator">The event aggregator.</param> /// <param name="lageantClient">The lageant client.</param> private MainViewModel(IWindowManager windowManager, IEventAggregator eventAggregator, ILageantClient lageantClient) { _windowManager = windowManager; DisplayName = string.Format("SimpleCrypt {0}", VersionUtilities.PublishVersion); TryAutoDecrypt = false; MainViewError = string.Empty; _lageantClient = lageantClient; RefreshKeys(); }