blob: d90900282d9bac4d616b5eed2b56586b6ccd940a (
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
|
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;
default:
loadSite(new QuantumAPI.Sites._404Error(), pnlLoadSiteHere);
break;
}
}
}
}
|