コード例 #1
0
        /// <summary>
        /// Adds a new blank HttpServer to the list
        /// </summary>
        private void NewConfigCommandAction()
        {
            if (NetworkSettings?.Count > 4)
            {
                return;
            }

            NetworkSettings.Add(new NetworkConfig());
            SelectedTab = NetworkSettings.Count - 1;
            NetworkSettings[SelectedTab].NetworkSettingsErrorEvent += NetworkErrorEvent;
            NetworkSettings[SelectedTab].PropertyChanged           += delegate { Refresh(); };
            OnPropertyChanged(nameof(SelectedTab));
            Refresh();
        }