コード例 #1
0
        public FormConnectionWizard()
        {
            InitializeComponent();

            Shown += new EventHandler(FormConnectionWizard_Shown);
            DNSHelper dh = new DNSHelper();
            dh.Start();
        }
コード例 #2
0
        public FormConnectionWizard()
        {
            InitializeComponent();

            Shown += new EventHandler(FormConnectionWizard_Shown);
            DNSHelper dh = new DNSHelper();

            dh.Start();
        }
コード例 #3
0
 private static void TestDynDNS(ref bool cancel, ref string CancelReason)
 {
     // Test client
     DNSHelper dHelper = new DNSHelper();
     DNSHelper.DynDnsUpdateResult result = dHelper.NotifyDynDNS(Settings.Default.LastPublicIP);
     if (! (
         (result == DNSHelper.DynDnsUpdateResult.UpdatedIp) ||
         (result == DNSHelper.DynDnsUpdateResult.NoUpdateSameIp)
         ))
     {
         CancelReason = dHelper.ErrorMessageForResult(result);
         CancelReason = "DynDNS could not update your IP address: " + CancelReason;
         cancel = true;
     }
 }
コード例 #4
0
        public FormConnectionWizard()
        {
            InitializeComponent();

            var store = new SettingsProviderNet.Settings.TestStorage();

            settingsRetreiver = new SettingsProviderNet.SettingsProvider(store);
            settingsSaver     = new SettingsProviderNet.SettingsProvider(store);


            Shown += new EventHandler(FormConnectionWizard_Shown);
            DNSHelper dh = new DNSHelper();

            dh.Start();
        }
コード例 #5
0
        private static void TestDynDNS(ref bool cancel, ref string CancelReason)
        {
            // Test client
            DNSHelper dHelper = new DNSHelper();

            DNSHelper.DynDnsUpdateResult result = dHelper.NotifyDynDNS(Settings.Default.LastPublicIP);
            if (!(
                    (result == DNSHelper.DynDnsUpdateResult.UpdatedIp) ||
                    (result == DNSHelper.DynDnsUpdateResult.NoUpdateSameIp)
                    ))
            {
                CancelReason = dHelper.ErrorMessageForResult(result);
                CancelReason = "DynDNS could not update your IP address: " + CancelReason;
                cancel       = true;
            }
        }