using System.IO;
using System.Xml.Serialization;
using QC.CompareTestTree;

namespace CompareTestTree;

public class Compare
{
	private string sourceFile;

	private string modifiedFile;

	private string resultFile;

	public string SourceFile
	{
		get
		{
			return sourceFile;
		}
		set
		{
			sourceFile = value;
		}
	}

	public string ModifiedFile
	{
		get
		{
			return modifiedFile;
		}
		set
		{
			modifiedFile = value;
		}
	}

	public string ResultFile
	{
		get
		{
			return resultFile;
		}
		set
		{
			resultFile = value;
		}
	}

	public bool CompareTrees()
	{
		FileStream fileStream = new FileStream(sourceFile, FileMode.Open);
		try
		{
			XmlSerializer xmlSerializer = new XmlSerializer(typeof(SerializeComponents));
			_ = (SerializeComponents)xmlSerializer.Deserialize(fileStream);
			fileStream.Close();
		}
		catch
		{
		}
		return true;
	}
}
