コード例 #1
0
 public void RefreshUsersList()
 {
     Logger.LogNewMessage("Getting all users from server..", LogType.INFO);
     try
     {
         Users = new BindingList <User>(UserServiceProxy.GetAllUsers());
         if (Users == null)
         {
             Users = new BindingList <User>();
         }
     }catch (Exception e)
     {
         Logger.LogNewMessage($"Error occured getting all users. Error message {e.Message}", LogType.ERROR);
     }
 }