private void ClickEvent(object sender, EventArgs e) { Button this_obj = sender as Button; entity_property_form epf = new entity_property_form(); if (epf.ShowDialog() == DialogResult.OK && epf.result.Trim() != "") { this_obj.Tag = "\"" + this_obj.Name.Replace("set_", "") + "\":{" + epf.result + "},"; } else { this_obj.Tag = null; } UpdateInfo(); }
private void set_entity_Click(object sender, EventArgs e) { Button this_obj = sender as Button; entity_property_form epf = new entity_property_form(); if (epf.ShowDialog() == DialogResult.OK && epf.result.Trim() != "") { this_obj.Tag = epf.result; } else { this_obj.Tag = null; } UpdateInfo(); }