Exemple #1
0
 private void editButton_Click(object sender, EventArgs e)
 {
     foreach (ListViewItem item in listView.SelectedItems)
     {
         Point     point     = (Point)item.Tag;
         PointForm pointForm = new PointForm(point);
         if (pointForm.ShowDialog() == DialogResult.OK)
         {
             AppModel.EditPoint(point);
         }
     }
 }
Exemple #2
0
        private void editButton_Click(object sender, EventArgs e)
        {
            TreeNode item = treeView.SelectedNode;

            if (item.Tag != null)
            {
                Point     point     = (Point)item.Tag;
                PointForm pointForm = new PointForm(point);
                if (pointForm.ShowDialog() == DialogResult.OK)
                {
                    AppModel.EditPoint(point);
                }
            }
        }