示例#1
0
 public StageSZI(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
     : base(stageTab, stageNode, mainForm, IS)
 {
     mf.btnGetRequirm.Click      += BtnGetRequirm_Click;
     mf.btnGetSZIs.Click         += BtnGetSZIs_Click;
     mf.btnGetMeasSZIs.Click     += BtnGetMeasSZIs_Click;
     mf.btnExportTP.Click        += BtnExportTP_Click;
     mf.tabControlSZIs.Selecting += TabControlSZIs_Selecting;
 }
示例#2
0
        public Stage(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
        {
            this.stageTab  = stageTab;
            this.stageNode = stageNode;
            stageName      = stageNode.Text;
            stageTab.Text  = stageName;
            mf             = mainForm;
            this.IS        = IS;

            stageNode.ImageIndex          = 1;
            stageNode.SelectedImageIndex  = 1;
            imageListForTabPage           = new ImageList();
            imageListForTabPage.ImageSize = new System.Drawing.Size(256, 256);

            initTabPage();
        }
示例#3
0
 public StageIntruder(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
     : base(stageTab, stageNode, mainForm, IS)
 {
 }
示例#4
0
 public StageMeasuresTechno(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
     : base(stageTab, stageNode, mainForm, IS)
 {
 }
示例#5
0
 public stageTechnoGenThreats(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS) : base(stageTab, stageNode, mainForm, IS)
 {
 }
示例#6
0
 public StageHardware(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
     : base(stageTab, stageNode, mainForm, IS)
 {
 }
示例#7
0
 public StageVulnerabilities(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
     : base(stageTab, stageNode, mainForm, IS)
 {
 }
示例#8
0
 public StageClassification(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
     : base(stageTab, stageNode, mainForm, IS)
 {
 }
示例#9
0
        public StageTopology(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
            : base(stageTab, stageNode, mainForm, IS)
        {
            nodes = new List <Node>();
            links = new List <Link>();

            firstLoc  = new Point();
            secondLoc = new Point();

            mf.pTopology.MouseMove  += new MouseEventHandler(panel_MouseMove);
            mf.pTopology.MouseUp    += new MouseEventHandler(panel_MouseUp);
            mf.pTopology.MouseClick += new MouseEventHandler(panel_MouseClick);
            mf.pTopology.Paint      += new PaintEventHandler(panel_Paint);
            mf.tsbMove.Click        += new EventHandler(tsbMove_Click);
            mf.tsbLink.Click        += new EventHandler(tsbLink_Click);
            mf.tsbDelete.Click      += new EventHandler(tsbDelete_Click);
            mf.tsbPc.Click          += new EventHandler(tsbPc_Click);
            mf.tsbServer.Click      += new EventHandler(tsbServer_Click);
            mf.tsbRouter.Click      += new EventHandler(tsbRouter_Click);
            mf.tsbSwitch.Click      += new EventHandler(tsbSwitch_Click);
            mf.KeyDown += new KeyEventHandler(Form_KeyDown);

            setMode(Mode.Move);
        }
示例#10
0
 public StageActualThreats(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
     : base(stageTab, stageNode, mainForm, IS)
 {
 }
示例#11
0
 public StageMeasures(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
     : base(stageTab, stageNode, mainForm, IS)
 {
     ////Дебаг вариант с статическими угрозами
     //using (KPSZIContext db = new KPSZIContext())
     //{
     //    var Threats = db.Threats.Include("GISMeasures").ToList();
     //    IS.listOfActualNSDThreats = Threats.Where(t =>
     //        t.ThreatNumber == 4 ||
     //        t.ThreatNumber == 7 ||
     //        t.ThreatNumber == 16 ||
     //        t.ThreatNumber == 18 ||
     //        t.ThreatNumber == 23 ||
     //        t.ThreatNumber == 30 ||
     //        t.ThreatNumber == 31 ||
     //        t.ThreatNumber == 32 ||
     //        t.ThreatNumber == 39 ||
     //        t.ThreatNumber == 42 ||
     //        t.ThreatNumber == 45 ||
     //        t.ThreatNumber == 18 ||
     //        t.ThreatNumber == 53 ||
     //        t.ThreatNumber == 67 ||
     //        t.ThreatNumber == 72 ||
     //        t.ThreatNumber == 88 ||
     //        t.ThreatNumber == 91 ||
     //        t.ThreatNumber == 94 ||
     //        t.ThreatNumber == 95 ||
     //        t.ThreatNumber == 111 ||
     //        t.ThreatNumber == 113 ||
     //        t.ThreatNumber == 117 ||
     //        t.ThreatNumber == 122 ||
     //        t.ThreatNumber == 127 ||
     //        t.ThreatNumber == 131 ||
     //        t.ThreatNumber == 132 ||
     //        t.ThreatNumber == 139 ||
     //        t.ThreatNumber == 156 ||
     //        t.ThreatNumber == 157 ||
     //        t.ThreatNumber == 160 ||
     //        t.ThreatNumber == 179 ||
     //        t.ThreatNumber == 180 ||
     //        t.ThreatNumber == 182 ||
     //        t.ThreatNumber == 185 ||
     //        t.ThreatNumber == 186 ||
     //        t.ThreatNumber == 190 ||
     //        t.ThreatNumber == 191 ||
     //        t.ThreatNumber == 201
     //    ).ToList();
     //}
 }
示例#12
0
 public StageConfigOptions(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS) : base(stageTab, stageNode, mainForm, IS)
 {
 }
示例#13
0
 public StageAccessMatrix(TabPage stageTab, TreeNode stageNode, MainForm mainForm, InformationSystem IS)
     : base(stageTab, stageNode, mainForm, IS)
 {
 }