예제 #1
0
        private void ShowStatusView()
        {
            if (statusView == null)
            {
                statusView = new StatusView {
                    DataContext = statusViewModel
                };

                statusView.Closing += ((arg_1, arg_2) => statusView = null);
                statusView.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
                statusView.Show();
                UpdateStatusView();
            }
            else
            {
                statusView.Activate();
            }

            statusView.Icon = AppIcon;
        }