Beispiel #1
0
        private void buttonX5_Click(object sender, EventArgs e)
        {
            WebSmartD m = (WebSmartD)Forms.GetControl("wsd");

            Forms.frm.ShowModalPanel(m, DevComponents.DotNetBar.Controls.eSlideSide.Left);
        }
Beispiel #2
0
        internal static Control GetControl(string ctrl)
        {
            frm.metroStatusBar1.Refresh();
            switch (ctrl)
            {
            case "main":
                if (MainUI == null)
                {
                    MainUI      = new MainC();
                    MainUI.Size = new Size(766, 412);
                    return(MainUI);
                }
                else
                {
                    return(MainUI);
                }

            case "about":
                if (AboutUI == null)
                {
                    AboutUI      = new About();
                    AboutUI.Size = new Size(766, 412);
                    return(AboutUI);
                }
                else
                {
                    return(AboutUI);
                }

            case "update":
                if (UpdateUI == null)
                {
                    UpdateUI      = new Updatefrm();
                    UpdateUI.Size = new Size(766, 412);
                    return(UpdateUI);
                }
                else
                {
                    return(UpdateUI);
                }

            case "backup":
                if (BackupUI == null)
                {
                    BackupUI      = new Backupfrm();
                    BackupUI.Size = new Size(766, 412);
                    return(BackupUI);
                }
                else
                {
                    return(BackupUI);
                }

            case "quarantine":
                if (QuarantineUI == null)
                {
                    QuarantineUI      = new Quarantinefrm();
                    QuarantineUI.Size = new Size(766, 412);
                    return(QuarantineUI);
                }
                else
                {
                    return(QuarantineUI);
                }

            case "repair":
                if (RepairUI == null)
                {
                    RepairUI      = new Repairfrm();
                    RepairUI.Size = new Size(766, 412);
                    return(RepairUI);
                }
                else
                {
                    return(RepairUI);
                }

            case "scan":
                if (ScantypeUI == null)
                {
                    ScantypeUI      = new ScanTypeFrm();
                    ScantypeUI.Size = new Size(766, 412);
                    return(ScantypeUI);
                }
                else
                {
                    return(ScantypeUI);
                }

            case "settings":
                if (SettingsUI == null)
                {
                    SettingsUI      = new SETC();
                    SettingsUI.Size = new Size(766, 412);
                    return(SettingsUI);
                }
                else
                {
                    return(SettingsUI);
                }

            case "firewall":
                if (FirewallUI == null)
                {
                    FirewallUI      = new FirewallC();
                    FirewallUI.Size = new Size(766, 412);
                    return(FirewallUI);
                }
                else
                {
                    return(FirewallUI);
                }

            case "license":
                if (ActivationUI == null)
                {
                    ActivationUI      = new Activationfrm();
                    ActivationUI.Size = new Size(766, 412);
                    return(ActivationUI);
                }
                else
                {
                    return(ActivationUI);
                }

            case "avp":
                if (AVPUI == null)
                {
                    AVPUI      = new AVPC();
                    AVPUI.Size = new Size(766, 412);
                    return(AVPUI);
                }
                else
                {
                    return(AVPUI);
                }

            case "utils":
                if (ToolUI == null)
                {
                    ToolUI      = new Utilities();
                    ToolUI.Size = new Size(766, 412);
                    return(ToolUI);
                }
                else
                {
                    return(ToolUI);
                }


            case "crypto":
                if (CryptoUI == null)
                {
                    CryptoUI      = new CryptoCenter();
                    CryptoUI.Size = new Size(766, 412);
                    return(CryptoUI);
                }
                else
                {
                    return(CryptoUI);
                }

            case "wsd":
                if (WSDUI == null)
                {
                    WSDUI      = new WebSmartD();
                    WSDUI.Size = new Size(766, 412);
                    return(WSDUI);
                }
                else
                {
                    return(WSDUI);
                }
            }
            return(null);
        }