Ejemplo n.º 1
0
        /// <summary>
        /// open WindowDirectory on insert mode
        /// </summary>
        private void add_directory(object sender, RoutedEventArgs e)
        {
            WindowDirectory de = new WindowDirectory();

            if (de.ShowDialog() == true)
            {
                load_directories();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// open WindowDirectory on update mode
        /// </summary>
        private void edit_directory(object sender, RoutedEventArgs e)
        {
            if (_selectedDirectory is null || _selectedDirectory.pk < 0)
            {
                return;
            }

            WindowDirectory de = new WindowDirectory(_selectedDirectory.pk);

            if (de.ShowDialog() == true)
            {
                load_directories();
            }
        }