コード例 #1
0
        private void createTagsetButton_Click(object sender, EventArgs e)
        {
            TagsetName tn = new TagsetName();

            tn.NameButtonClicked += new EventHandler(NameButtonHandler);
            tn.Show();
        }
コード例 #2
0
        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();
        }