상속: System.Windows.Forms.Form
예제 #1
0
        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var nam = new Frm_EnterName();

            nam.ShowDialog(this);
            if (nam.OK)
            {
                var SelectedIndex = comboBox1.SelectedIndex;
                Program.Settings.ControlProfiles[comboBox1.SelectedIndex].Name = nam.NameEntered;
                RefreshProfiles();
                comboBox1.SelectedIndex = SelectedIndex;
            }
        }
예제 #2
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var nam = new Frm_EnterName();

            nam.ShowDialog(this);
            if (nam.OK)
            {
                var pro = new ControlProfile();
                pro.Name = nam.NameEntered;
                Program.Settings.ControlProfiles.Add(pro);
                RefreshProfiles();
                comboBox1.SelectedIndex = comboBox1.Items.Count - 1;
            }
        }
예제 #3
0
 private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     var nam = new Frm_EnterName();
     nam.ShowDialog(this);
     if (nam.OK)
     {
         var SelectedIndex = comboBox1.SelectedIndex;
         Program.Settings.ControlProfiles[comboBox1.SelectedIndex].Name = nam.NameEntered;
         RefreshProfiles();
         comboBox1.SelectedIndex = SelectedIndex;
     }
 }
예제 #4
0
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     var nam = new Frm_EnterName();
     nam.ShowDialog(this);
     if (nam.OK)
     {
         var pro = new ControlProfile();
         pro.Name = nam.NameEntered;
         Program.Settings.ControlProfiles.Add(pro);
         RefreshProfiles();
         comboBox1.SelectedIndex = comboBox1.Items.Count - 1;
     }
 }