mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-26 04:19:53 +08:00
Small cleanup.
This commit is contained in:
@@ -28,22 +28,14 @@
|
||||
* ======================================================================*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.Reflection;
|
||||
|
||||
using Opc.Ua.Client;
|
||||
using Opc.Ua.Client.Controls;
|
||||
using Opc.Ua.Sample.Controls;
|
||||
using Opc.Ua.Configuration;
|
||||
|
||||
namespace Opc.Ua.Sample
|
||||
{
|
||||
public partial class SampleClientForm : Opc.Ua.Sample.Controls.ClientForm
|
||||
public partial class SampleClientForm : ClientForm
|
||||
{
|
||||
public SampleClientForm()
|
||||
{
|
||||
@@ -52,14 +44,12 @@ namespace Opc.Ua.Sample
|
||||
|
||||
public SampleClientForm(
|
||||
ApplicationInstance application,
|
||||
Opc.Ua.Sample.Controls.ClientForm masterForm,
|
||||
ClientForm masterForm,
|
||||
ApplicationConfiguration configuration)
|
||||
:
|
||||
base(configuration.CreateMessageContext(), application, masterForm, configuration)
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
base.BrowseCTRL.MethodCalled += new Opc.Ua.Sample.Controls.MethodCalledEventHandler(BrowseCTRL_MethodCalled);
|
||||
|
||||
if (!configuration.SecurityConfiguration.AutoAcceptUntrustedCertificates)
|
||||
{
|
||||
@@ -84,17 +74,5 @@ namespace Opc.Ua.Sample
|
||||
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
|
||||
}
|
||||
}
|
||||
|
||||
void BrowseCTRL_MethodCalled(object sender, Opc.Ua.Sample.Controls.MethodCalledEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
// TBD
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user