Esempio n. 1
0
 protected override void OnViewLoaded(object view)
 {
     base.OnViewReady(view);
     // load the saved window positions
     _window          = view as Window;
     _window.Closing += windowClosing;
     // SetPlacement will adjust the position if it's outside of the visible boundaries
     //_window.SetPlacement(Properties.Settings.Default.MainWindowPlacement);
     _window.SetPlacement(SettingProvider.GetWindowPosition());
     notifyIcon = new NotifyIcon(_window);
     if (_host.DebugLogging)
     {
         ShowLoggingEnabledNotification();
     }
 }
Esempio n. 2
0
        protected override void OnViewLoaded(object view)
        {
            base.OnViewLoaded(view);
            // load the saved window positions
            _window          = view as Window;
            _window.Closing += windowClosing;
            // SetPlacement will adjust the position if it's outside of the visible boundaries
            //_window.SetPlacement(Properties.Settings.Default.MainWindowPlacement);
            _window.SetPlacement(SettingProvider.GetWindowPosition());
            notifyIcon = new NotifyIcon(_window);
            if (_host.DebugLogging)
            {
                ShowLoggingEnabledNotification();
            }

            //Application.Current.LoadRibbonTheme();
            _inputBindings = new InputBindings(_window);
            _inputBindings.RegisterCommands(GetInputBindingCommands());
        }