Exemplo n.º 1
0
        private void OnAnalysisStarted(object sender, EventArgs e)
        {
            PendingInfoResponses.Clear();

            var sortedColumn = analysisDataGridView.SortedColumn;
            var sortedOrder  = analysisDataGridView.SortOrder;

            AnalysisData.Clear();
            if (sortedColumn != null)
            {
                analysisDataGridView.Sort(
                    sortedColumn,
                    sortedOrder == SortOrder.Ascending
                        ? ListSortDirection.Ascending
                        : ListSortDirection.Descending
                    );
            }
        }
Exemplo n.º 2
0
        private void AfterEngineLoaded()
        {
            Engine.AnalysisStarted += OnAnalysisStarted;

            FillEngineIdInfo();

            EmbeddedControl.ToggleAnalysisButton.Enabled = true;
            toggleAnalyzeButton.Enabled      = true;
            optionsToolStripMenuItem.Enabled = true;
            closeToolStripMenuItem.Enabled   = true;
            if (EmbeddedHandler != null)
            {
                embedButton.Enabled = true;
            }
            UpdateAnalysisButtonName();

            OptionsForm                 = new EngineOptionsForm(Engine.ScratchOptions, false);
            OptionsForm.FormClosing    += OnOptionsFormClosing;
            OptionsForm.VisibleChanged += OnOptionsFormVisibilityChanged;

            AnalysisData.Clear();
        }