예제 #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);
        }
예제 #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());
        }
예제 #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();
                }
            }
        }