private void qbtn_Click(object sender, EventArgs e) { if (SettingsManager.Login) { logfrm = new Login(); logfrm.ShowDialog(); if (logfrm.result != DialogResult.OK) { hidethis = false; KavprotManager.ShutDown(); } } this.Show(); Quarantinefrm frm = (Quarantinefrm)Forms.GetControl("quarantine"); Forms.frm.ShowModalPanel(frm, DevComponents.DotNetBar.Controls.eSlideSide.Bottom); }
private void vqbtn_Click(object sender, EventArgs e) { Quarantinefrm a = (Quarantinefrm)Forms.GetControl("quarantine"); Forms.frm.ShowModalPanel(a, DevComponents.DotNetBar.Controls.eSlideSide.Left); }
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); }