Ejemplo n.º 1
0
 private void Log_Closed(object sender, EventArgs e)
 {
     _logWindow = null;
     Focus();
 }
Ejemplo n.º 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();
            }
        }