/// <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(); } }
/// <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(); } }