Exemplo n.º 1
0
        private void rpbtn_Click(object sender, EventArgs e)
        {
            if (SettingsManager.Login)
            {
                logfrm = new Login();
                logfrm.ShowDialog();
                if (logfrm.result != DialogResult.OK)
                {
                    hidethis = false;
                    KavprotManager.ShutDown();
                }
            }
            this.Show();
            Repairfrm FRM = (Repairfrm)Forms.GetControl("repair");

            Forms.frm.ShowModalPanel(FRM, DevComponents.DotNetBar.Controls.eSlideSide.Left);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        private void settingbtn_Click(object sender, EventArgs e)
        {
            Repairfrm a = (Repairfrm)Forms.GetControl("repair");

            Forms.frm.ShowModalPanel(a, DevComponents.DotNetBar.Controls.eSlideSide.Left);
        }