private void msUsuarios_Click(object sender, EventArgs e) { FUserProfile fUserProfile = new FUserProfile(); fUserProfile.OnNewMode = false; if (this.TopMost) fUserProfile.TopMost = true; fUserProfile.ShowDialog(); Global.userNameWorking = Global.userUsed.userName; Global.userIDWorking = Global.userUsed.userID; Global.trainingUsed.Reset(); tslConnStr.Text = connString; tslAppUser.Text = "Usuario=(" + TrainItLibrary.Global.userIDWorking + ")" + TrainItLibrary.Global.userNameWorking; }
//Goes to FUsers to create a new user. private void laNewUser_Click(object sender, EventArgs e) { FUserProfile fUserProfile = new FUserProfile(); fUserProfile.OnNewMode = true; fUserProfile.ShowDialog(); if (fUserProfile.OnNewMode) { txtUser.Text = Global.userUsed.userName; txtPass.Text = ""; fUserProfile.OnNewMode = false; } }