public MainWindow() { InitializeComponent(); InitWindow(); Hide(); DataContext = new ProtectEyesViewModel(); }
public NotifyWindow(Rectangle area, ProtectEyesViewModel protectEyesViewModel) { this.protectEyesViewModel = protectEyesViewModel; Area = area; DataContext = new NotifyViewModel(this, protectEyesViewModel); InitializeComponent(); }
public NotifyViewModel(NotifyWindow notifyWindow, ProtectEyesViewModel protectEyesViewModel) { this.protectEyesViewModel = protectEyesViewModel; this.notifyWindow = notifyWindow; RestPic = BitmapToBitmapImage(GetBG()); SetRestDesc(); CloseAllNotifyWindowsCommand = new CommandHandler(CloseAllNotifyWindows, () => true); }