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(); }
// 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(); }