private void AddPB_Click(object sender, RoutedEventArgs e) { EditFilterDialog dlg = new EditFilterDialog(null); dlg.ShowDialog(); if (dlg.m_OK) { FilterVM.Refresh(); } }
private void EditPB_Click(object sender, RoutedEventArgs e) { DataRecord record = (DataRecord)filterXamDataGrid.ActiveRecord; if (record == null) { return; } FilterContainer filter = (FilterContainer)record.DataItem; EditFilterDialog dlg = new EditFilterDialog(filter); dlg.ShowDialog(); if (dlg.m_OK) { FilterVM.Refresh(); } }