Пример #1
0
 private void SelectAction()
 {
     if (listView1.SelectedItems.Count == 0)
     {
         return;
     }
     if (frmAction.frmRangeAction.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         if (frmAction.frmRangeAction.action != ThreeButtonsWindowAction._ThirdButton)
         {
             this.Action = frmAction.frmRangeAction.action;
             CloseWithOK();
         }
     }
 }
Пример #2
0
 private void SelectAction()
 {
     if (listView1.SelectedItems.Count == 0)
     {
         return;
     }
     if (frmAction.frmRangeAction.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         if ((RangeAction)frmAction.frmRangeAction.action != RangeAction._cancel)
         {
             this.Action           = frmAction.frmRangeAction.action;
             this.SelectedInterval = (int[])listView1.SelectedItems[0].Tag;
             this.DialogResult     = System.Windows.Forms.DialogResult.OK;
             this.Close();
         }
     }
 }
Пример #3
0
 public Values(int[] SelectedInterval, ThreeButtonsWindowAction Action)
 {
     this.SelectedInterval = SelectedInterval;
     this.Action           = Action;
 }
Пример #4
0
 private void btns_Click(object sender, EventArgs e)
 {
     action            = (ThreeButtonsWindowAction)(sender as Control).Tag;
     this.DialogResult = System.Windows.Forms.DialogResult.OK;
     this.Close();
 }