Example #1
0
 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;
         }
     }
 }
Example #2
0
        private void ProfileNameBox_Enter(object sender, EventArgs e)
        {
            Data.profileNames.Clear();
            ProfileNameBox.Items.Clear();

            cascadelist();
            ProfileNameBox.ResetText();
        }
Example #3
0
        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 = "";
        }
Example #4
0
        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 = "";
        }