SampleCore 1.0.0.0
SampleCore 사용 방법을 보여 주는 예제 프로젝트입니다.
로딩중...
검색중...
일치하는것 없음
MainWindowViewModel.cs
이 파일의 문서화 페이지로 가기
1using Dreamine.MVVM.Attributes;
2using Dreamine.MVVM.Core;
3using Dreamine.MVVM.ViewModels;
6
8{
17 public partial class MainWindowViewModel : ViewModelBase
18 {
27 [DreamineModel]
37 [DreamineEvent]
39
48 public string Title => Model.Title;
57 public string Message => Model.Message;
58
67 [DreamineCommand] private void Ok() => Event.Ok();
76 [DreamineCommand] private void Cancel() => Event.Cancel();
85 [DreamineCommand] private void Minimize() => Event.Minimize();
94 [DreamineCommand] private void Maximize() => Event.Maximize();
103 [DreamineCommand] private void Close() => Event.Close();
112 [DreamineCommand] private void SubPage() => Event.SubPage();
113
123 {
124 _model = null!;
125 _event = null!;
126 _ = _model;
127 _ = _event;
128 }
129 }
130}