コード例 #1
0
        public virtual void ResetToDefault()
        {
            BaseLoadFilter flt = GetFilter();

            flt.ResetToDefault();
            Init(flt);
        }
コード例 #2
0
 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;
             }
         }
     }
 }