Example #1
0
        /// <summary>
        ///     MainViewModel construcor.
        /// </summary>
        /// <param name="windowManager">The current window manager.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="lageantCore">The lageant core.</param>
        private MainViewModel(IWindowManager windowManager, IEventAggregator eventAggregator, ILageantCore lageantCore)
        {
            _windowManager = windowManager;
            DisplayName = string.Format("Lageant {0} (beta)", VersionUtilities.PublishVersion);
            MainViewError = string.Empty;
            IsWorking = false;

            _lageantCore = lageantCore;
            if (!_lageantCore.CreateServer()) return;

            Keys = new CollectionViewSource {Source = _keys};
        }
Example #2
0
        /// <summary>
        ///     MainViewModel construcor.
        /// </summary>
        /// <param name="windowManager">The current window manager.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="lageantCore">The lageant core.</param>
        private MainViewModel(IWindowManager windowManager, IEventAggregator eventAggregator, ILageantCore lageantCore)
        {
            _windowManager = windowManager;
            DisplayName    = string.Format("Lageant {0} (beta)", VersionUtilities.PublishVersion);
            MainViewError  = string.Empty;
            IsWorking      = false;

            _lageantCore = lageantCore;
            if (!_lageantCore.CreateServer())
            {
                return;
            }

            Keys = new CollectionViewSource {
                Source = _keys
            };
        }