Exemple #1
0
 private void Detect_Click(object sender, EventArgs e)
 {
     using (var dialog = new FormDetect())
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             SetFromAction(dialog.Action);
         }
     }
 }
Exemple #2
0
 private void QuickButton_Click(object sender, EventArgs e)
 {
     using (var dialog = new FormDetect())
     {
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             actionList.Clear();
             actionList.Add(dialog.Action);
             listBox1.DataSource = null;
             listBox1.DataSource = actionList;
         }
     }
 }