private void btnEditTGIs_Click(object sender, EventArgs e) { DialogResult dr = TGIBlockListEditor.Show(this, vpxy.TGIBlocks); if (dr != DialogResult.OK) { return; } tbg_TGIBlockListChanged(sender, e); }
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()); }
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(); } } }