private void NotificationButton_Click(object sender, RoutedEventArgs e)
        {
            NotificationsWindow window = new NotificationsWindow(patient);

            window.ShowDialog();
            RefreshTable();
        }
예제 #2
0
        public ModernThemeManager(PanaceaServices core, Theme theme)
        {
            _core     = core;
            _mainPage = new MainPageViewModel(_core, theme);
            InitializeComponent();

            popup       = new NotificationsWindow();
            _translator = new Translator("core");
        }
예제 #3
0
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            if (Settings.Default.Telemetry == -1)
            {
                _vm.EnableTelemetry = true;
            }

            if (Settings.Default.ShowNews)
            {
                var w = new NotificationsWindow();
                w.Owner = Application.Current.MainWindow;
                w.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                w.ShowDialog();
            }
        }
예제 #4
0
        public HResult Show()
        {
            try
            {
                if (_window == null)
                {
                    _window = (NotificationsWindow)_package.CreateToolWindow(typeof(NotificationsWindow));
                    new WindowListener(this);

                    _window.RedrawItems(_items);
                }

                return(_window.Frame.Show());
            }
            catch (Exception ex)
            {
                return(ErrorUtil.GetHResult(ex));
            }
        }