22 lines
470 B
C#
22 lines
470 B
C#
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace TodoDetails.ViewModel
|
|
{
|
|
public partial class BaseViewModel : ObservableObject
|
|
{
|
|
[ObservableProperty]
|
|
[NotifyPropertyChangedFor(nameof(IsNotBusy))]
|
|
bool isBusy;
|
|
|
|
[ObservableProperty]
|
|
string? title;
|
|
|
|
public bool IsNotBusy => !IsBusy;
|
|
}
|
|
}
|