private void setupProgileToolStripMenuItem_Click(object sender, EventArgs e) { Data._mode = "Setup"; SetupProfileForm Spf = new SetupProfileForm(); Spf.Show(); }
private void editProfileToolStripMenuItem_Click(object sender, EventArgs e) { Data._mode = "Edit"; SetupProfileForm Spf = new SetupProfileForm(); Spf.ProfileNameBox.Text = Data.SettingName; Spf.ProfilePanelLabel.Text = " Edit Profile"; Spf.Show(); cascadelist(); ProfileNameBox.ResetText(); UserNameBox.Text = ""; ServerNameBox.Text = ""; }
private void editProfileToolStripMenuItem_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(Data.SettingName)) { MessageBox.Show("Please first select a profile to Edit"); return; } else { Data._mode = "Edit"; } SetupProfileForm Spf = new SetupProfileForm(); Spf.ProfileNameBox.Text = Data.SettingName; Spf.ProfilePanelLabel.Text = " Edit Profile"; Spf.Show(); cascadelist(); ProfileNameBox.ResetText(); UserNameBox.Text = ""; ServerNameBox.Text = ""; }