Ejemplo n.º 1
0
        /// <summary>
        /// Reload the category treeview
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Mng_NeedToReloadTree(object sender, EventArgs e)
        {
            this.LoadTreeView();
            CategoriesManager mng = sender as CategoriesManager;

            mng.RefreshTree(this.ProjectCategories);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Show the manage dialog
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void CategoryManageButton_Click(object sender, RoutedEventArgs e)
        {
            CategoriesManager mng = new CategoriesManager(this.ProjectCategories);

            mng.Closing          += Mng_Closing;
            mng.NeedToReloadTree += Mng_NeedToReloadTree;
            this.MainWindow.ShowCustomDialog(mng);
        }