示例#1
0
        private void AddPB_Click(object sender, RoutedEventArgs e)
        {
            EditFilterDialog dlg = new EditFilterDialog(null);

            dlg.ShowDialog();

            if (dlg.m_OK)
            {
                FilterVM.Refresh();
            }
        }
示例#2
0
        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();
            }
        }