Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        public MainViewModel()
        {
            IsConfiguredAsServer = CheckIsConfiguredAsServer();

            InitializeSettings();

            _serviceStatePollingTimer          = new Timer(2000d);
            _serviceStatePollingTimer.Elapsed += _serviceStatePollingTimer_Elapsed;
            _serviceStatePollingTimer.Start();

            SaveChangesCommand = new SaveSettingsTaskCommand(this);
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        public MainViewModel()
        {
            IsConfiguredAsServer = CheckIsConfiguredAsServer();

            InitializeSettings();

            _serviceStatePollingTimer = new Timer(2000d);
            _serviceStatePollingTimer.Elapsed += _serviceStatePollingTimer_Elapsed;
            _serviceStatePollingTimer.Start();

            SaveChangesCommand = new SaveSettingsTaskCommand(this);
        }