示例#1
0
 private void Log_Closed(object sender, EventArgs e)
 {
     _logWindow = null;
     Focus();
 }
示例#2
0
        private void ButtonBase_ViewLog_OnClick(object sender, RoutedEventArgs e)
        {
            if (_logWindow != null) _logWindow.Focus();
            else
            {
                _logWindow = new LogWindow();
                _logWindow.Owner = this;
                _logWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;

                _logWindow.CloseClicked += Log_Closed;

                _logWindow.Show();
            }
        }