Esempio n. 1
0
        private void btnEditTGIs_Click(object sender, EventArgs e)
        {
            DialogResult dr = TGIBlockListEditor.Show(this, vpxy.TGIBlocks);

            if (dr != DialogResult.OK)
            {
                return;
            }
            tbg_TGIBlockListChanged(sender, e);
        }
Esempio n. 2
0
        private void btnTGIEditor_Click(object sender, EventArgs e)
        {
            CountedTGIBlockList tgiBlocksCopy = new CountedTGIBlockList(null, vpxy.TGIBlocks);
            DialogResult        dr            = TGIBlockListEditor.Show(tgiBlocksCopy);

            if (dr != DialogResult.OK)
            {
                return;
            }
            vpxy.TGIBlocks.Clear();
            vpxy.TGIBlocks.AddRange(tgiBlocksCopy.ToArray());
        }
Esempio n. 3
0
        private void btnTGIEditor_Click(object sender, EventArgs e)
        {
            DialogResult dr = TGIBlockListEditor.Show(objk.TGIBlocks);

            if (dr != DialogResult.OK)
            {
                return;
            }

            foreach (Control c in tableLayoutPanel1.Controls)
            {
                if (c as TGIBlockCombo != null)
                {
                    (c as TGIBlockCombo).Refresh();
                }
            }
        }