private void btnNewProfile_Click(object sender, EventArgs e) { // Create new profile if profile name isn't blank if (!string.IsNullOrWhiteSpace(txtNewProfile.Text)) { Profiles newProfile = new Profiles(); newProfile.CreateProfile(txtNewProfile.Text); } }
private void btnCreateProfile_Click(object sender, EventArgs e) { // Create new profile if profile name isn't blank if (!string.IsNullOrWhiteSpace(txtNewProfile.Text)) { Profiles newProfile = new Profiles(); newProfile.CreateProfile(txtNewProfile.Text); } txtNewProfile.Text = string.Empty; PopulateProfilesBox(); tablessControl.SelectedTab = tabProfiles; }
private void btnCreateProfile_Click(object sender, EventArgs e) { // Create new profile if profile name isn't blank if (!string.IsNullOrWhiteSpace(txtNewProfile.Text)) { Profiles newProfile = new Profiles(); newProfile.CreateProfile(txtNewProfile.Text); } txtNewProfile.Text = string.Empty; ProfileButtonVisibleChange(false); PopulateProfilesBox(); }