Esempio n. 1
0
        public MainWindow()
        {
            InitializeComponent();

            DataContext = this;

            StartCommand
            .DoBalking(async() =>
            {
                Status.Value = "実行中";
                await Task.Delay(3000);
                Status.Value = "停止";
            })
            .Subscribe(_ =>
            {
                Count.Value++;
            });
        }