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

namespace QC.QMSCT;

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

	private void button_BinaryImageFolderPath_Click(object sender, RoutedEventArgs e)
	{
		OpenFileDialog openFileDialog = new OpenFileDialog();
		openFileDialog.Multiselect = false;
		try
		{
			if (technologySpecificGV[MULTIDUT_RF_UPDATER.MULTIPLEX_MANAGER_CONFIG_FILE] != null)
			{
				openFileDialog.InitialDirectory = Path.GetDirectoryName(technologySpecificGV[MULTIDUT_RF_UPDATER.MULTIPLEX_MANAGER_CONFIG_FILE]);
			}
		}
		catch
		{
		}
		if (openFileDialog.ShowDialog() == DialogResult.OK && technologySpecificGV[MULTIDUT_RF_UPDATER.MULTIPLEX_MANAGER_CONFIG_FILE] != openFileDialog.FileName)
		{
			textbox_MultiplexManagerConfigFile.Text = openFileDialog.SafeFileName;
			technologySpecificGV[MULTIDUT_RF_UPDATER.MULTIPLEX_MANAGER_CONFIG_FILE] = openFileDialog.FileName;
			NotifyParameterChange();
		}
	}

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