private void cmdAddExt_Click(object sender, RoutedEventArgs e) { try { var dex = new WndExternals(this) { Owner = this }; var showDialog = dex.ShowDialog(); if (showDialog != null && showDialog.Value) { fillExternals(); } } catch (Exception ex) { PNStatic.LogException(ex); } }
private void editExternal(PNExternal ext) { try { if (ext == null) return; var dex = new WndExternals(this, ext) { Owner = this }; var showDialog = dex.ShowDialog(); if (showDialog != null && showDialog.Value) { fillExternals(false); } } catch (Exception ex) { PNStatic.LogException(ex); } }