You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
` public class MainViewModel : ReactiveObject
{
private int _txNum;
private int _aliOssNum;
private double _per;
public MainViewModel()
{
_txNum = 0;
_aliOssNum = 0;
_per = 0;
BtnStart = ReactiveCommand.CreateFromObservable(BtnStartImpl);
}
public ReactiveCommand<Unit, Unit> BtnStart { get; private set; }
public IObservable BtnStartImpl()
{
return Observable.Start(() =>
{
Per = 22;
});
}
public int TxNum
{
get => _txNum;
set => this.RaiseAndSetIfChanged(ref _txNum, value);
}
public int AliOssNum
{
get => _aliOssNum;
set => this.RaiseAndSetIfChanged(ref _aliOssNum, value);
}
public double Per
{
get => _per;
set => this.RaiseAndSetIfChanged(ref _per, value);
}
}`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
` public class MainViewModel : ReactiveObject
{
private int _txNum;
private int _aliOssNum;
private double _per;
public MainViewModel()
{
_txNum = 0;
_aliOssNum = 0;
_per = 0;
BtnStart = ReactiveCommand.CreateFromObservable(BtnStartImpl);
}
public ReactiveCommand<Unit, Unit> BtnStart { get; private set; }
public IObservable BtnStartImpl()
{
return Observable.Start(() =>
{
Per = 22;
});
}
public int TxNum
{
get => _txNum;
set => this.RaiseAndSetIfChanged(ref _txNum, value);
}
Beta Was this translation helpful? Give feedback.
All reactions