private void UcNetSwitch_Load(object sender, EventArgs e) { ADSLItem adsl = new ADSLItem(); //adsl.EntryName = RiftSetConfig.Instance.ADSLName; //adsl.Password = RiftSetConfig.Instance.ADSLPwd; //adsl.User = RiftSetConfig.Instance.ADSLUser; ucAdsl = new UcAdsl(adsl, CoreGUIManager.Instance); ucAdsl.TestChanged += TestChanged; RouterItem router = new RouterItem(); //router.RouterType = RiftSetConfig.Instance.RouterType; //router.IP = RiftSetConfig.Instance.RouterIP; //router.Password = RiftSetConfig.Instance.RouterPwd; //router.User = RiftSetConfig.Instance.RouterUser; ucRouter = new UcRouter(router, CoreGUIManager.Instance); ucRouter.TestChanged += TestChanged; VPNFile vpn = new VPNFile(); //vpn.EntryName = RiftSetConfig.Instance.VpnEntryName; //vpn.File = RiftSetConfig.Instance.VpnFile; ucVpnList = new UcVpnList(vpn, CoreGUIManager.Instance); ucVpnList.TestChanged += TestChanged; }
public UcVpnList(VPNFile vpn, LogManagerBase logManager) { InitializeComponent(); this.Load += new EventHandler(UcVpnList_Load); this.vpnFile = vpn; this.LogManager = logManager; }