Exemple #1
0
 public void OnEditV2()
 {
     if (this.ListView.SelectedItems.Count > 0)
     {
         EditV2Frm dlg = new EditV2Frm(this.ListView);
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             // todo
         }
     }
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnEditV2Multi_Click(object sender, EventArgs e)
 {
     if (this.view.ListView.SelectedItems.Count > 1)
     {
         EditV2Frm dlg = new EditV2Frm(view.ListView, true);
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             // todo
         }
     }
     else
     {
         OnEditV2_Click(sender, e);
     }
 }