danfma
11/25/2016, 3:55 PMclass CounterViewModel : ViewModel() {
var count = 0
val nextCommand = relayCommand { next() }
val backCommand = relayCommand { back() }
private fun next() {
count++
emitPropertyChanged(this::count)
}
private fun back() {
count--
emitPropertyChanged(this::count)
}
}