Esempio n. 1
0
        void DisplaySettingsForm()
        {
            var frm = new frmSettings(settings);

            frm.ShowDialog();
            frm.Close();
            // reload settings
            settings = new Settings();
            // pick up new credentials if they were changed
            cfClient = new CloudflareAPI(Client, settings.EmailAddress, settings.ApiKey);
            // pick up new interval if it was changed
            ScheduleUpdates();
        }
Esempio n. 2
0
        void DisplaySettingsForm()
        {
            var frm = new frmSettings(settings, tc);

            frm.ShowDialog();
            frm.Close();
            // reload settings
            settings = new Settings();

            SetProtocolUiEnabled();

            // pick up new credentials if they were changed
            cfClient = new CloudflareAPI(httpClient, settings);
            // pick up new interval if it was changed
            ScheduleUpdates();
        }
Esempio n. 3
0
        void frmMain_Load(object sender, EventArgs e)
        {
            Init();

            DisplayVersion();

            PromptForSettings();

            cfClient = new CloudflareAPI(httpClient, settings);

            UpdateList();

            DisplayAndLogPublicIpAddress();

            ScheduleUpdates();
        }
Esempio n. 4
0
        private void frmMain_Loaded(object sender, RoutedEventArgs e)
        {
            Init();

            DisplayVersionAndSettingsPath();

            PromptForSettings();

            cfClient = new CloudflareAPI(httpClient, settings);

            FetchDsnEntries();

            DisplayAndLogPublicIpAddress();

            if (validateSettings())
            {
                ValidateSelectedDomains();
            }

            ScheduleUpdates();
        }