Пример #1
0
 public Task AddOrUpdateWindow(IInternalWindow window)
 {
     if (WindowsById.ContainsKey(window.Id))
     {
         Update(WindowsById[window.Id], window);
     }
     else
     {
         WindowsById[window.Id] = window.Clone();
     }
     return(Task.CompletedTask);
 }
Пример #2
0
 private void Update(IInternalWindow windowToUpdate, IWindow window)
 {
     windowToUpdate.UpdateFrom(window);
 }