Launching Dashboard From MES

hang on its a bit more complicated.

private EpiButton withEventsField_btnSerialMatching;

	public void InitializeCustomCode()
	{
		// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
		// Begin Wizard Added Variable Initialization

		// End Wizard Added Variable Initialization

		// Begin Wizard Added Custom Method Calls
	// End Wizard Added Custom Method Calls

	}

	public void DestroyCustomCode()
	{
		// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
		// Begin Wizard Added Object Disposal
		// End Wizard Added Object Disposal

		// Begin Custom Code Disposal

		// End Custom Code Disposal
	}

	private void btnSerialMatching_Click(object Sender, EventArgs args)
	{
		ProcessCaller.LaunchForm(MESMenu, "WIP01");
	}
	
	private EpiButton btnSerialMatching 
	{
	
		get 
		{ 
			return withEventsField_btnSerialMatching; 
		}

		set 
		{
			if (withEventsField_btnSerialMatching != null) 
			{
				withEventsField_btnSerialMatching.Click -= btnSerialMatching_Click;
			}
		
			withEventsField_btnSerialMatching = value;

			if (withEventsField_btnSerialMatching != null) 
			{
				withEventsField_btnSerialMatching.Click += btnSerialMatching_Click;
			}
		}
	}

	private void MESMenu_Load(object sender, EventArgs args)
	{
		////
		//// Add Event Handler Code
		////

		btnSerialMatching = (EpiButton)csm.GetNativeControlReference("fe187107-b719-4a3d-96a8-5f8505ea65ae");

		btnSerialMatching.ReadOnly = false;

	}
1 Like