예제 #1
0
        void ConnectionTypeChanged(object sender, SelectionChangedEventArgs e)
        {
            ComboBox comboBox = sender as ComboBox;

            if (comboBox != null)
            {
                AuthMgr.LoginDetails.ConnectionType = (ConnectionType)comboBox.SelectedValue;
                switch (AuthMgr.LoginDetails.ConnectionType)
                {
                case ConnectionType.BasicAuth:
                    SetTabVisibility(TabType.Credentials, true);
                    SetControlVisibility(EditorControlType.Password, true);
                    SetControlVisibility(EditorControlType.RallyServer, true);
                    SetControlVisibility(EditorControlType.IdpServer, false);
                    break;

                case ConnectionType.SpBasedSso:
                    SetTabVisibility(TabType.Credentials, true);
                    SetControlVisibility(EditorControlType.Password, false);
                    SetControlVisibility(EditorControlType.RallyServer, true);
                    SetControlVisibility(EditorControlType.IdpServer, false);
                    break;

                case ConnectionType.IdpBasedSso:
                    SetTabVisibility(TabType.Credentials, false);
                    SetControlVisibility(EditorControlType.RallyServer, false);
                    SetControlVisibility(EditorControlType.IdpServer, true);
                    tabControl.SelectedItem = rallyTab;
                    break;

                default:
                    throw new NotImplementedException();
                }

                rallyTab.Focus();
            }
        }
예제 #2
0
        private void OnFadeInCompleted(object sender, EventArgs e)
#endif
        {
            _texDetail.Focus();
        }