Example #1
0
        private void NewCategoryDialog_Confirmed(object sender, EventArgs e)
        {
            AddNewCategory anc = (AddNewCategory)sender;

            this.Notify("CATEGORY \"" + anc.NameTextbox.Text + "\" ADDED");
            CloseDialog();
            this.NeedToReloadTree?.Invoke(this, EventArgs.Empty);
        }
Example #2
0
        private void AddNewCategory_Clicked(object sender, EventArgs e)
        {
            AddNewCategory newCategoryDialog = new AddNewCategory(this.RootCategory);

            newCategoryDialog.Closing   += NewCategoryDialog_Closing;
            newCategoryDialog.Confirmed += NewCategoryDialog_Confirmed;
            this.ShowDialog(newCategoryDialog);
        }