public FormConnectionWizard()
        {
            InitializeComponent();

            Shown += new EventHandler(FormConnectionWizard_Shown);
            DNSHelper dh = new DNSHelper();
            dh.Start();
        }
        public FormConnectionWizard()
        {
            InitializeComponent();

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

            dh.Start();
        }
 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;
            }
        }