コード例 #1
0
ファイル: UserNameForm.cs プロジェクト: ayodele1/EEJ
 private void onOK(object sender, EventArgs e)
 {
     if (!ValidateB2BEmail(_emailTbox.Text))
     {
         MessageBox.Show("Please Enter a Valid B2B Email");
         return;
     }
     _userCreated = new User();
     _userCreated.b2bEmail = _emailTbox.Text;
     Close();
 }
コード例 #2
0
ファイル: Controller.cs プロジェクト: ayodele1/EEJ
 // This method is called once from the Main method
 public static void startTraining()
 {
     QAData.readFiles();
     AppState SavedState = Controller.UserPreferences.LoadState(saveFilename); //Load the Saved state
     
         //AppState SavedState = Controller.UserPreferences.LoadState(saveFilename); //Load the Saved state
         //if (SavedState != null)
         //{
         //    GetLoadedState(SavedState);
         //isNewUser = false;
         //}
         if (isNewUser)
         {
             newUser = GetUserData();
             isNewUser = false;
         }
     createUserFolders();
     initializeResources();
     updateResources();
     showData();
 }