private Task Add(Command command) { switch (command) { case Command.ToggleWindow: return(ToggleWindow.Add()); case Command.NextTab: return(NextTab.Add()); case Command.PreviousTab: return(PreviousTab.Add()); case Command.NewTab: return(NewTab.Add()); case Command.CloseTab: return(CloseTab.Add()); case Command.NewWindow: return(NewWindow.Add()); case Command.ShowSettings: return(ShowSettings.Add()); case Command.Copy: return(Copy.Add()); case Command.Paste: return(Paste.Add()); } return(Task.CompletedTask); }