Пример #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();
        }
Пример #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();
        }