Exemplo n.º 1
0
        public MainWindow(Bootstrapper bootstrapper)
        {
            RestoreWindowPlacement();
            InitializeComponent();

            Bootstrapper = bootstrapper;
            DataContext = bootstrapper;

            CompositionTarget.Rendering += OnRendering;

            StartMeasuring();
        }
Exemplo n.º 2
0
 protected override void OnStartup(StartupEventArgs e)
 {
     base.OnStartup(e);
     _notifyIcon = (TaskbarIcon)FindResource("TaskbarIcon");
     Bootstrapper = new Bootstrapper();
 }