using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.Windows;
using System.Windows.Forms;
using System.Windows.Markup;

namespace QC.QMSCT;

public partial class MULTIDUT_SWDL : TechnologyInformationControl, IComponentConnector
{
	public MULTIDUT_SWDL()
	{
		Updater = new MULTIDUT_SWDL_UPDATER(this);
		InitializeComponent();
	}

	private void button_BinaryImageFolderPath_Click(object sender, RoutedEventArgs e)
	{
		FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog();
		folderBrowserDialog.ShowNewFolderButton = true;
		folderBrowserDialog.SelectedPath = technologySpecificGV[MULTIDUT_SWDL_UPDATER.BINARY_IMAGE_FOLDER_PATH];
		if (folderBrowserDialog.ShowDialog() == DialogResult.OK && technologySpecificGV[MULTIDUT_SWDL_UPDATER.BINARY_IMAGE_FOLDER_PATH] != folderBrowserDialog.SelectedPath)
		{
			textbox_BinaryImageFolderPath.Text = folderBrowserDialog.SelectedPath;
			technologySpecificGV[MULTIDUT_SWDL_UPDATER.BINARY_IMAGE_FOLDER_PATH] = folderBrowserDialog.SelectedPath;
			NotifyParameterChange();
		}
	}

	[DebuggerNonUserCode]
	[GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
	internal Delegate _CreateDelegate(Type delegateType, string handler)
	{
		return Delegate.CreateDelegate(delegateType, this, handler);
	}
}
