예제 #1
0
파일: frmMain.cs 프로젝트: nistudyc/DnsTube
        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
파일: frmMain.cs 프로젝트: wbswzj/DnsTube
        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();
        }