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(); } } }
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(); } } }
public Values(int[] SelectedInterval, ThreeButtonsWindowAction Action) { this.SelectedInterval = SelectedInterval; this.Action = Action; }
private void btns_Click(object sender, EventArgs e) { action = (ThreeButtonsWindowAction)(sender as Control).Tag; this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); }