blob: f10325507221f556c3df5f8b17e61424446fbdab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PortEngine
{
public class QuantumnetAPI
{
private static void loadSite(UserControl site, Panel pnlSiteArea)
{
pnlSiteArea.Controls.Clear();
pnlSiteArea.Controls.Add(site);
}
public static void navigateToSite(TextBox txtNavigateToThis, Panel pnlLoadSiteHere)
{
switch (txtNavigateToThis.Text)
{
case "quantumconnections.qt":
loadSite(new QuantumAPI.Sites.QuantumISP(), pnlLoadSiteHere);
break;
case "malwarebits.qt":
loadSite(new Malwarebits(), pnlLoadSiteHere);
break;
default:
loadSite(new QuantumAPI.Sites._404Error(), pnlLoadSiteHere);
break;
}
}
}
}
|