コード例 #1
0
 /// <summary>
 /// 重置查询方法
 /// </summary>
 protected async Task ResetSearchClick()
 {
     if (OnResetSearchAsync != null)
     {
         await OnResetSearchAsync(SearchModel);
     }
     else if (SearchTemplate == null)
     {
         SearchModel.Reset();
     }
     await SearchClick();
 }
コード例 #2
0
 /// <summary>
 /// Default handler for resetting that delegates the action to the view model.
 /// </summary>
 protected virtual async Task OnResetAsync(MouseEventArgs e)
 {
     SearchModel?.Reset(this, e);
     await Task.CompletedTask;
 }