예제 #1
0
        private void On_BtnOKClick(object sender, RoutedEventArgs e)
        {
            try
            {
                EjsBridge.ejsService.ejsSessionToken newToken =
                    EjsBridge.ejsBridgeManager.AuthenticateUser(
                        this._tb_UserName.Text,
                        this._tbPw_Password.Password,
                        SiliconStudio.Meet.EjpLib.Helpers.IdManipulation.GetNewGuid()
                        );

                App._currentEjpStudent.SessionToken = newToken;
                this.Close();
            }
            catch (Exception ex)
            {
                SiliconStudio.DebugManagers.DebugReporter.Report(
                    SiliconStudio.DebugManagers.MessageType.Error,
                    "eJournalPlus Client - EJS Login Window",
                    "Loging in to EJS Failed" +
                    "\nError: " + ex.Message);

                MessageBox.Show(ex.Message, "Authentication error");
            }
            finally
            {
                this.Close();
            }
        }
예제 #2
0
        private void On_BtnOKClick(object sender, RoutedEventArgs e)
        {
            try
            {
                EjsBridge.ejsService.ejsSessionToken newToken =
                    EjsBridge.ejsBridgeManager.AuthenticateUser(
                        this._tb_UserName.Text,
                        this._tbPw_Password.Password,
                        SiliconStudio.Meet.EjpLib.Helpers.IdManipulation.GetNewGuid()
                        );

                App._currentEjpStudent.SessionToken = newToken;
                this.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, Application.Current.Resources["Str_AuthErrorTitle"] as string);
            }
            finally
            {
                this.Close();
            }
        }
예제 #3
0
        }        //end: Constructor

        /// <summary>
        /// Protected base constructor.
        /// </summary>
        /// <param name="Id">Guid of the user.</param>
        protected ejpUser(EjsBridge.ejsService.ejsSessionToken ejsUserToken)
        {
            this._sessionToken = ejsUserToken;
        }        //end: Constructor
예제 #4
0
 public ejpStudent(EjsBridge.ejsService.ejsSessionToken ejsUserToken)
     : base(ejsUserToken)
 {
 }        //end: Constructor