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