private async void ExecuteCommand(SscCommand command) { if (!command.Enabled || !IsCurrentViewActivated()) { return; } await ParticipateOrWatchAsync(); }
private void ExecuteCommand(SscCommand command) { if (!command.Enabled) { return; } if (command.Directive == GlobalCommands.Instance.GotoInteractiveCommand.Directive) { ExecuteGotoPage(GlobalResources.InteractiveNavView); } else if (command.Directive == GlobalCommands.Instance.GotoDiscussionCommand.Directive) { ExecuteGotoPage(GlobalResources.DiscussionNavView); } else if (command.Directive == GlobalCommands.Instance.GotoInteractiveWithoutLiveCommand.Directive) { ExecuteGotoPage(GlobalResources.InteractiveWithouLiveNavView); } }