private void deleteProfileToolStripMenuItem_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(Data.SettingName)) { MessageBox.Show("Please first select a profile to Delete"); return; } else { DialogResult dr = MessageBox.Show("Do you really want to delete profile?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (dr == DialogResult.Yes) { CascadeDelete._cascadeDelete(); Data.profileNames.Clear(); ProfileNameBox.Items.Clear(); cascadelist(); ProfileNameBox.ResetText(); UserNameBox.Text = ""; ServerNameBox.Text = ""; } else { return; } } }
private void ProfileNameBox_Enter(object sender, EventArgs e) { Data.profileNames.Clear(); ProfileNameBox.Items.Clear(); cascadelist(); ProfileNameBox.ResetText(); }
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 = ""; }