Пример #1
0
        int _UnmarkedFileCount = 0; // Number of unmarked capture files

        #endregion Fields

        #region Constructors

        public Client()
        {
            InitializeComponent();
            LoadFileSystemConfiguration();
            InitializeForm();
            InitializeFlooderStatusDataGridViewControl();
            InitializeNetworkInterfacesComboBox();
            GetParseCaptureFilesServiceStatus();

            timer.Tick += new EventHandler(timer_Tick);
            timer.Interval = new TimeSpan(0, 0, 0, 1);

            this.bgWorker = new BackgroundWorker();
            this.bgWorker.WorkerReportsProgress = true;
            this.bgWorker.WorkerSupportsCancellation = true;
            InitializeBackgroundWorkerTheads();   // Only need this thread when a flooder is running so move it to the start flooder method
            InitializeProgressSpinner();
            InitializeProgressLabel();
            this.ClockButton.Visible = false;
            this.ProcessCaptureDataButton.Visible = true;
            this.StartTimerButton.Visible = true;
            UpdateParseFilesServiceStatus();
            DatabaseResetCheckBox.Checked = true;

            _AnalysisControl = new AnalysisControl();
            _ProcessedFileNotifier = new ProcessedFileNotifier(_ProcessedFilesPath);
            _CreateIntervalsAndAnalysisController = new CreateIntervalsAndAnalysisController();
        }
Пример #2
0
        private void ClientTabControl_Selected(object sender, TabControlEventArgs e)
        {
            switch (ClientTabControl.SelectedTab.Name)
            {
                case "FlooderTabPage":
                    RestoreClientControlsColorWhenSwitchingTabs();
                    break;

                case "AnalysisTabPage":
                    GrayOutClientControlsWhenSwitchingTabs();
                    if (!AnalysisMainPanel.Controls.Contains(_AnalysisControl))
                    {
                        _AnalysisControl = new AnalysisControl();
                        _AnalysisControl.Dock = DockStyle.Fill;
                        //_AnalysisControl.HistogramBinSize = HistogramBinSizeTextBox.Text;
                        AnalysisMainPanel.Controls.Add(_AnalysisControl);
                        _AnalysisControl.BringToFront();
                    }
                    break;
            }
        }
Пример #3
0
 private void ClientTabControl_Selected(object sender, TabControlEventArgs e)
 {
     switch (ClientTabControl.SelectedTab.Name)
     {
         case "FlooderTabPage":
             break;
         case "AnalysisTabPage":
             if (AnalysisMainPanel.Controls.Contains(_AnalysisControl))
             {
                 //_AnalysisControl.RefreshData();
                 _AnalysisControl.BringToFront();
             }
             else
             {
                 _AnalysisControl = new AnalysisControl();
                 _AnalysisControl.Dock = DockStyle.Fill;
                 AnalysisMainPanel.Controls.Add(_AnalysisControl);
                 _AnalysisControl.BringToFront();
             }
             break;
     }
 }