Beispiel #1
0
        private void moveToToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                return;
            }

            var h = listView1.SelectedItems[0].Tag as HelperItem;
            VectorSetValuesDialog d = new VectorSetValuesDialog();

            d.ShowDialog();
            h.MoveTo(d.Vector);
        }
Beispiel #2
0
        private void setDialogToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listView2.SelectedItems.Count == 0)
            {
                return;
            }
            if (!(listView2.SelectedItems[0].Tag is VectorFieldEditor tag))
            {
                return;
            }
            VectorSetValuesDialog d = new VectorSetValuesDialog();

            d.Init(tag.Vector);
            d.ShowDialog();
            tag.SetVector(d.Vector);
        }