public Task AddOrUpdateWindow(IInternalWindow window) { if (WindowsById.ContainsKey(window.Id)) { Update(WindowsById[window.Id], window); } else { WindowsById[window.Id] = window.Clone(); } return(Task.CompletedTask); }
private void Update(IInternalWindow windowToUpdate, IWindow window) { windowToUpdate.UpdateFrom(window); }