예제 #1
0
 // will run a checkup for modifications on the controls in the current page
 public static Task SendPropertyUpdateFromServer(FSWManager manager, CoreServerAnswer coreServerAnswer)
 {
     try
     {
         return(SendAsync_ID(manager.Page.ID, "propertyUpdateFromServer", JsonConvert.SerializeObject(coreServerAnswer)));
     }
     catch (Exception e)
     {
         if (manager.Page.OverrideErrorHandle is null)
         {
             throw;
         }
         else
         {
             return(manager.Page.OverrideErrorHandle(e));
         }
     }
 }
예제 #2
0
        // will run a checkup for modifications on the controls in the current page
        public static async Task <CoreServerAnswer?> ProcessPropertyChange(FSWManager manager)
        {
            try
            {
                return(await manager.ProcessPropertyChange(false));
            }
            catch (Exception e)
            {
                if (manager.Page.OverrideErrorHandle is null)
                {
                    throw;
                }

                _ = manager.Page.OverrideErrorHandle(e);

                return(null);
            }
        }