Inheritance: System.Windows.Forms.Form
コード例 #1
0
ファイル: searchDirs.cs プロジェクト: zhouzu/cs-script
 private void edit_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (EditDirForm dlg = new EditDirForm(listBox1.SelectedItem.ToString()))
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             listBox1.Items[listBox1.SelectedIndex] = dlg.Dir;
             modified   = true;
             ok.Enabled = apply.Enabled = modified;
         }
     }
 }
コード例 #2
0
ファイル: searchDirs.cs プロジェクト: zhouzu/cs-script
 private void add_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (EditDirForm dlg = new EditDirForm(""))
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             listBox1.Items.Add(dlg.Dir);
             modified               = true;
             ok.Enabled             = apply.Enabled = modified;
             listBox1.SelectedIndex = listBox1.Items.Count - 1;
         }
     }
 }
コード例 #3
0
ファイル: searchDirs.cs プロジェクト: oleg-shilo/cs-script
 private void add_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (EditDirForm dlg = new EditDirForm(""))
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             listBox1.Items.Add(dlg.Dir);
             modified = true;
             ok.Enabled = apply.Enabled = modified;
             listBox1.SelectedIndex = listBox1.Items.Count - 1;
         }
     }
 }
コード例 #4
0
ファイル: searchDirs.cs プロジェクト: oleg-shilo/cs-script
 private void edit_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (EditDirForm dlg = new EditDirForm(listBox1.SelectedItem.ToString()))
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             listBox1.Items[listBox1.SelectedIndex] = dlg.Dir;
             modified = true;
             ok.Enabled = apply.Enabled = modified;
         }
     }
 }