예제 #1
0
 private void ConfigurationStatusChanged(ADFSServiceManager mgr, ConfigOperationStatus status, Exception ex = null)
 {
     if (IsNotifsEnabled())
     {
         if (this.InvokeRequired)
         {
             ReloadData();
         }
     }
 }
예제 #2
0
        /// <summary>
        /// ServersStatusChanged method implementation
        /// </summary>
        private void ConfigurationStatusChanged(ADFSServiceManager mgr, ConfigOperationStatus status, Exception ex = null)
        {
            switch (status)
            {
            case ConfigOperationStatus.ConfigInError:
                _panel.BackColor = Color.DarkRed;
                break;

            case ConfigOperationStatus.ConfigSaved:
                _panel.BackColor = Color.Orange;
                break;

            case ConfigOperationStatus.ConfigLoaded:
                bool isactive = ManagementAdminService.ADFSManager.IsMFAProviderEnabled(null);
                if (isactive)
                {
                    _panel.BackColor = Color.Green;
                }
                else
                {
                    _panel.BackColor = Color.Yellow;
                }
                lblFarmActive.Tag = isactive;
                break;

            case ConfigOperationStatus.ConfigIsDirty:
                _panel.BackColor = Color.Red;
                break;

            default:
                _panel.BackColor = Color.Yellow;
                break;
            }
            UpdateLabels(status);
            this._panel.Refresh();
        }
예제 #3
0
 /// <summary>
 /// UpdateLabels method implmentation
 /// </summary>
 private void UpdateLabels(ConfigOperationStatus status)
 {
     lblFarmActive.Text = "Active : " + Convert.ToBoolean(lblFarmActive.Tag).ToString();
 }
 private void mgr_ConfigurationStatusChanged(ADFSServiceManager mgr, ConfigOperationStatus status, Exception ex = null)
 {
 }