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(); }
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(); }
void frmMain_Load(object sender, EventArgs e) { Init(); DisplayVersion(); PromptForSettings(); cfClient = new CloudflareAPI(httpClient, settings); UpdateList(); DisplayAndLogPublicIpAddress(); ScheduleUpdates(); }
private void frmMain_Loaded(object sender, RoutedEventArgs e) { Init(); DisplayVersionAndSettingsPath(); PromptForSettings(); cfClient = new CloudflareAPI(httpClient, settings); FetchDsnEntries(); DisplayAndLogPublicIpAddress(); if (validateSettings()) { ValidateSelectedDomains(); } ScheduleUpdates(); }