22 lines
483 B
C#
22 lines
483 B
C#
using System.Reactive;
|
|
using ReactiveUI;
|
|
using ReactiveUI.SourceGenerators;
|
|
|
|
namespace pgLabII.ViewModels;
|
|
|
|
public partial class QueryToolViewModel : ViewModelBase, IViewItem
|
|
{
|
|
[Reactive] private string _caption = "Cap";
|
|
|
|
[Reactive] private string _query = "";
|
|
|
|
public ReactiveCommand<Unit, Unit> EditCommand { get; }
|
|
|
|
public QueryToolViewModel()
|
|
{
|
|
EditCommand = ReactiveCommand.Create(() =>
|
|
{
|
|
Query += " test";
|
|
});
|
|
}
|
|
}
|