public virtual void ResetToDefault() { BaseLoadFilter flt = GetFilter(); flt.ResetToDefault(); Init(flt); }
void ButtonReset_Click(object sender, EventArgs e) { if (_FilterForm != null) { if (ButtonFilter != null && ButtonFilter.Owner != null) { ButtonFilter.Owner.TopLevelControl.Cursor = Cursors.WaitCursor; } try { BaseLoadFilter flt = _FilterForm.GetFilter(); flt.ResetToDefault(); _FilterForm.Init(flt); FireFilterChanged(flt); } finally { if (ButtonFilter != null && ButtonFilter.Owner != null) { ButtonFilter.Owner.TopLevelControl.Cursor = Cursors.Default; } } } }