Beispiel #1
0
        private void gtlist_DoubleClick(object sender, EventArgs e)
        {
            if (gtlist.SelectedIndex == -1)
            {
                return;
            }

            frmXYEdit f = new frmXYEdit();

            f.StrValue = (string)list[gtlist.SelectedIndex];
            f.Init();
            if (f.ShowDialog() == DialogResult.OK)
            {
                list.RemoveAt(gtlist.SelectedIndex);
                list.Insert(gtlist.SelectedIndex, f.StrValue);
                gtlist.SetItemValue(f.TextVal, gtlist.SelectedIndex);
            }
        }
Beispiel #2
0
        private void gtlist_DoubleClick(object sender, EventArgs e)
        {
            if (gtlist.SelectedIndex == -1)
            {
                return;
            }

            frmXYEdit f = new frmXYEdit();
            f.StrValue = (string)list[gtlist.SelectedIndex];
            f.Init();
            if (f.ShowDialog() == DialogResult.OK)
            {
                list.RemoveAt(gtlist.SelectedIndex);
                list.Insert(gtlist.SelectedIndex,f.StrValue);
                gtlist.SetItemValue(f.TextVal,gtlist.SelectedIndex);
            }
        }