Exemple #1
0
        void button3_Click(object sender, EventArgs e)
        {
            Variable v = FVariable.ShowForm("", "", "");

            if (v != null)
            {
                Add(v, true);
            }
        }
Exemple #2
0
        void listView1_DoubleClick(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count != 1)
            {
                button3_Click(sender, e);
                return;
            }

            ListViewItem it = listView1.SelectedItems[0];
            Variable     v  = FVariable.ShowForm(it.Text, it.SubItems[1].Text, it.SubItems[2].Text);

            if (v != null)
            {
                listView1.Items.Remove(it);
                Add(v, true);
            }
        }