예제 #1
0
        private void _showDiagramBtn_Click(object sender, EventArgs e)
        {
            string selected = _diagramCb.SelectedItem.ToString();

            if (string.IsNullOrEmpty(selected))
            {
                return;
            }

            if (!VkAnalyzer.Enums.CommonMaps.UserParametersMap.ContainsKey(selected))
            {
                return;
            }

            string value = VkAnalyzer.Enums.CommonMaps.UserParametersMap[selected];

            if (!ChartGlobalMap.getInstance().CurrentCharts.ContainsKey(value))
            {
                Chart chart = getChart(value);
                ChartGlobalMap.getInstance().CurrentCharts.Add(value, chart);
                ChartBuilderFactory.getChartBuilder(value, chart);
            }

            resetChartVisibility();
            ChartGlobalMap.getInstance().CurrentCharts[value].Visible = true;
        }
예제 #2
0
        public void onSearchStarted()
        {
            GlobalContext.getInstance().State = ConsoleState.InProgress;
            ChartGlobalMap.getInstance().deinitCurrentCharts();
            GlobalContext.getInstance().CurrentUsers = null;
            this.Invoke((MethodInvoker) delegate()
            {
                _stopSearchBtn.Enabled  = true;
                _startSearchBtn.Enabled = false;

                _clearConsoleBtn.Enabled    = false;
                _saveToFileBtn.Enabled      = false;
                _loadFromFileBtn.Enabled    = false;
                _loadFromHistoryBtn.Enabled = false;
                _loginBtn.Enabled           = false;
                _filtersBtn.Enabled         = false;
            });
        }
예제 #3
0
        public void onSearchFinished()
        {
            if (GlobalContext.getInstance().CoreIdsLenght != GlobalContext.getInstance().CoreIdsCount)
            {
                return;
            }

            GlobalContext.getInstance().State = ConsoleState.NotEmpty;
            ChartGlobalMap.getInstance().initCurrentCharts();
            this.Invoke((MethodInvoker) delegate()
            {
                _stopSearchBtn.Enabled  = false;
                _startSearchBtn.Enabled = true;

                _clearConsoleBtn.Enabled    = true;
                _saveToFileBtn.Enabled      = true;
                _loadFromFileBtn.Enabled    = true;
                _loadFromHistoryBtn.Enabled = true;
                _loginBtn.Enabled           = true;
                _filtersBtn.Enabled         = true;
            });
        }