Exemple #1
0
        private void CreateCommands()
        {
            RestoreCommand = ReactiveCommand.Create();
            RestoreCommand.Subscribe(arg => RestoreCommandHandler());

            ExportCommand = ReactiveCommand.Create();
            ExportCommand.Subscribe(arg => ExportCommandCommandHandler());

            LoadSoundsCommand = ReactiveCommand.Create();
            LoadSoundsCommand.Subscribe(arg => LoadSoundsCommandHandler());

            ResetSoundsCommand = ReactiveCommand.Create();
            ResetSoundsCommand.Subscribe(arg => ResetSoundsCommandHandler());

            ClearPlayersCommand = ReactiveCommand.Create();
            ClearPlayersCommand.Subscribe(arg => ClearPlayersCommandHandler());

            EmailCommand = ReactiveCommand.Create();
            EmailCommand.Subscribe(async arg => await EmailCommandCommandHandler());
        }