Exemple #1
0
        private void updatebtn_Click(object sender, EventArgs e)
        {
            Updatefrm u = (Updatefrm)Forms.GetControl("update");

            Forms.frm.ShowModalPanel(u, DevComponents.DotNetBar.Controls.eSlideSide.Left);
            u.backgroundWorker1.RunWorkerAsync();
        }
Exemple #2
0
 private void MainForm_Shown(object sender, EventArgs e)
 {
     if (firstshow)
     {
         firstshow = false;
         Updatefrm u = (Updatefrm)Forms.GetControl("update");
         Forms.frm.ShowModalPanel(u, DevComponents.DotNetBar.Controls.eSlideSide.Left);
         u.backgroundWorker1.RunWorkerAsync();
         timer1.Enabled = true;
     }
     else
     {
         firstshow = false;
     }
     try
     {
         if (SettingsManager.KAI)
         {
             Process.Start(Application.StartupPath + @"\KAIML.exe");
         }
     }
     catch
     {
     }
 }
Exemple #3
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled = false;
            Updatefrm u = (Updatefrm)Forms.GetControl("update");

            Forms.frm.ShowModalPanel(u, DevComponents.DotNetBar.Controls.eSlideSide.Left);
            u.backgroundWorker1.RunWorkerAsync();
            timer1.Enabled = true;
        }
Exemple #4
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);
        }
Exemple #5
0
        private void Helpbtn_Click(object sender, EventArgs e)
        {
            Updatefrm u = (Updatefrm)Forms.GetControl("update");

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