コード例 #1
0
 private async Task GetContractors()
 {
     try
     {
         Contractors = await contractorAPIHelper.GetContractors(ParentLayout.LoggedInUser.Token);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error");
     }
 }
コード例 #2
0
 private async Task GetContractors()
 {
     try
     {
         IsProgressing = true;
         Contractors   = await apiHelper.GetContractors(ParentLayout.LoggedInUser.Token);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error");
     }
     finally
     {
         IsProgressing = false;
     }
 }