示例#1
0
        public CourseRegistrationsWindow(ejsUserInfo user,
                                         ejsSessionToken userToken, ejsManagerStage parentStage)
        {
            InitializeComponent();

            this._currentUserToken = userToken;
            this._currentUserInfo  = user;
            this._parentStage      = parentStage;

            this.BuildCourseLists();

            this._l_CurrentUserName.Content = user.LastName + ", " + user.FirstName;
        }
示例#2
0
        private void GoToStage(string StageName)
        {
            try
            {
                if (this._stages.ContainsKey(StageName) == false)
                {
                    throw new ApplicationException("Attempted to go to Stage that does not exist:\n" + StageName);
                }

                Ellipse ellipseToActivate =
                    this.FindName("_be_" + StageName) as Ellipse;

                if (this._currentStage != null)
                {
                    this._currentStage.DeActivate();
                }

                if (this._currentStageMarker != null)
                {
                    this._currentStageMarker.Visibility = Visibility.Collapsed;
                }

                this._stages[StageName].Activate(this._currentUserToken);

                if (ellipseToActivate != null)
                {
                    ellipseToActivate.Visibility = Visibility.Visible;
                }

                this._currentStage       = this._stages[StageName];
                this._currentStageMarker = ellipseToActivate;
            }
            catch (ApplicationException ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
示例#3
0
 public AddNewCourseWindow(ejsSessionToken Token, ejsManagerStage parentStage)
     : base(Token, parentStage)
 {
     InitializeComponent();
 }
 public AddNewCourseDocumentWindow(ejsSessionToken userEjsToken, ejsManagerStage parentStage)
     : base(userEjsToken, parentStage)
 {
     InitializeComponent();
 }
示例#5
0
 public AddNewItemWindow(ejsServiceReference.ejsSessionToken userEjsToken, ejsManagerStage parentStage)
 {
     this._currentUserToken = userEjsToken;
     this._parentStage      = parentStage;
 }