Пример #1
0
        private void onLoad()
        {
            if (runOnLoad && DesignMode == false)
            {
                updateVisibilityOfSaveButton();
                if (dgvFindingsDetails.Columns.Count == 0) // only do this once
                {
                    O2Forms.addToDataGridView_Column(dgvFindingsDetails, "Name", 100);
                    O2Forms.addToDataGridView_Column(dgvFindingsDetails, "Value", -1);
                    dgvFindingsDetails.Columns[0].ReadOnly = true;

                    O2Forms.addToDataGridView_Column(dgvTraceDetails, "Name", 100);
                    O2Forms.addToDataGridView_Column(dgvTraceDetails, "Value", -1);
                    dgvTraceDetails.Columns[0].ReadOnly = true;

                    OzasmtMappedToWindowsForms.loadIntoToolStripCombox_O2TraceTypes(cbCurrentO2TraceType);

                    //newO2Finding();
                    runOnLoad = false;

                    ascxTraceTreeView.onTreeNodeAfterSelect    += ascx_TraceTreeView_onTreeNodeAfterSelect;
                    ascxTraceTreeView.onTreeNodeAfterLabelEdit += ascxTraceView_onTreeNodeAfterLabelEdit;
                }
            }
        }
Пример #2
0
        //public Dictionary<string, IO2Finding> currentFilteredText = new Dictionary<string, IO2Finding>();
        //public Dictionary<IO2Finding, string> currentFilteredTextMappings = new Dictionary<IO2Finding, string>();

        private void onLoad()
        {
            if (runOnLoad && DesignMode == false)
            {
                this.invokeOnThread(() =>
                {
                    //   OzasmtMappedToWindowsForms.loadIntoCombox_O2FindingFieldsNames((cbFilter1), "severity");
                    OzasmtMappedToWindowsForms.loadIntoToolStripCombox_O2FindingFieldsNames(
                        (cbFilter1), "vulnType");
                    OzasmtMappedToWindowsForms.loadIntoToolStripCombox_O2FindingFieldsNames(
                        (cbFilter2), "");                                                           // we can't set the default value here
                    cbFilter2.Items.Insert(0, noFilterStringTagForFilter2);                         // since this would push it down
                    cbFilter2.Text            = "vulnName";                                         // so we add it here
                    tbSavedFileName.Text      = PublicDI.config.TempFileNameInTempDirectory + ".ozasmt";
                    maxNumberOfFindingsToLoad = 1000;
                    tbMaxRecordsToShow.Text   = maxNumberOfFindingsToLoad.ToString();
                    laNoAssessmentLoadEnginesLoaded.Visible = (o2AssessmentLoadEngines.Count == 0);
                    runOnLoad = false;
                    return(false);
                });
            }
        }