Пример #1
0
        public MainWindow(Bootstrapper bootstrapper)
        {
            RestoreWindowPlacement();
            InitializeComponent();

            Bootstrapper = bootstrapper;
            DataContext = bootstrapper;

            CompositionTarget.Rendering += OnRendering;

            StartMeasuring();
        }
Пример #2
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     _notifyIcon = (TaskbarIcon)FindResource("TaskbarIcon");
     Bootstrapper = new Bootstrapper();
 }