예제 #1
0
 public CallHomeSettingsDialog(Pool pool)
 {
     this.pool = pool;
     callHomeSettings = pool.CallHomeSettings;
     authenticationToken = callHomeSettings.GetExistingSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_TOKEN_SECRET);
     usetName = callHomeSettings.GetSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_CREDENTIAL_USER_SECRET);
     password = callHomeSettings.GetSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_CREDENTIAL_PASSWORD_SECRET);
     InitializeComponent();
     PopulateControls();
     InitializeControls();
     UpdateButtons();
 }
예제 #2
0
 public CallHomeSettingsDialog(Pool pool, bool enrollNow)
 {
     this.pool = pool;
     callHomeSettings = pool.CallHomeSettings;
     if (enrollNow)
         callHomeSettings.Status = CallHomeStatus.Enabled;
     authenticationToken = callHomeSettings.GetExistingSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_TOKEN_SECRET);
     xsUserName = callHomeSettings.GetSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_CREDENTIAL_USER_SECRET);
     xsPassword = callHomeSettings.GetSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_CREDENTIAL_PASSWORD_SECRET);
     InitializeComponent();
     PopulateControls();
     InitializeControls();
     UpdateButtons();
 }
예제 #3
0
 public CallHomeSettingsDialog(Pool pool, bool enrollNow)
 {
     this.pool        = pool;
     callHomeSettings = pool.CallHomeSettings;
     if (enrollNow)
     {
         callHomeSettings.Status = CallHomeStatus.Enabled;
     }
     authenticationToken = callHomeSettings.GetExistingSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_TOKEN_SECRET);
     xsUserName          = callHomeSettings.GetSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_CREDENTIAL_USER_SECRET);
     xsPassword          = callHomeSettings.GetSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_CREDENTIAL_PASSWORD_SECRET);
     InitializeComponent();
     PopulateControls();
     InitializeControls();
     UpdateButtons();
 }
예제 #4
0
 private bool ChangesMade()
 {
     if (enrollmentCheckBox.Checked && callHomeSettings.Status != CallHomeStatus.Enabled)
     {
         return(true);
     }
     if (!enrollmentCheckBox.Checked && callHomeSettings.Status != CallHomeStatus.Disabled)
     {
         return(true);
     }
     if (frequencyNumericBox.Value != callHomeSettings.IntervalInWeeks)
     {
         return(true);
     }
     if (dayOfWeekComboBox.SelectedIndex != (int)callHomeSettings.DayOfWeek)
     {
         return(true);
     }
     if (timeOfDayComboBox.SelectedIndex != callHomeSettings.TimeOfDay)
     {
         return(true);
     }
     if (authenticationToken != callHomeSettings.GetSecretyInfo(pool.Connection, CallHomeSettings.UPLOAD_TOKEN_SECRET))
     {
         return(true);
     }
     if (textboxXSUserName.Text != xsUserName)
     {
         return(true);
     }
     if (textboxXSPassword.Text != xsPassword)
     {
         return(true);
     }
     return(false);
 }