using System.ComponentModel;
using System.Windows;
using System.Windows.Markup;

namespace QC.QMine;

public partial class OutputLogWindow : Window, IComponentConnector
{
	private bool closeWindow;

	public OutputLogWindow()
	{
		InitializeComponent();
	}

	private void Window_Closing(object sender, CancelEventArgs e)
	{
		if (!closeWindow)
		{
			e.Cancel = true;
			Hide();
		}
	}

	internal void Exit()
	{
		closeWindow = true;
		Close();
	}
}
