-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindowViewModel.cs
More file actions
41 lines (35 loc) · 918 Bytes
/
Copy pathMainWindowViewModel.cs
File metadata and controls
41 lines (35 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System.Windows;
namespace _01LabChumachenko
{
internal class MainWindowViewModel : BaseViewModel, ILoaderOwner
{
#region Fields
private Visibility _loaderVisibility = Visibility.Hidden;
private bool _isControlEnabled = true;
#endregion
#region Properties
public Visibility LoaderVisibility
{
get => _loaderVisibility;
set
{
_loaderVisibility = value;
OnPropertyChanged();
}
}
public bool IsControlEnabled
{
get => _isControlEnabled;
set
{
_isControlEnabled = value;
OnPropertyChanged();
}
}
#endregion
internal MainWindowViewModel()
{
LoaderManager.Instance.Initialize(this);
}
}
}