Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public UcVpnList(VPNFile vpn, LogManagerBase logManager)
 {
     InitializeComponent();
     this.Load      += new EventHandler(UcVpnList_Load);
     this.vpnFile    = vpn;
     this.LogManager = logManager;
 }