private void createTagsetButton_Click(object sender, EventArgs e) { TagsetName tn = new TagsetName(); tn.NameButtonClicked += new EventHandler(NameButtonHandler); tn.Show(); }
private void NameButtonHandler(object sender, EventArgs e) { TagsetName tn = sender as TagsetName; if (tn != null) { TagsetUpdateEventArgs args = new TagsetUpdateEventArgs(); args.Name = tn.Tagset; AddNewTagset?.Invoke(this, args); } tn.Close(); }