From 5683aba8d5f3835a422bdb4e362283906fc4d850 Mon Sep 17 00:00:00 2001 From: Erich Barnstedt Date: Mon, 1 Aug 2016 13:34:24 +0200 Subject: [PATCH] Small cleanup. --- .../Samples/Client.Net4/SampleClientForm.cs | 26 ++----------------- .../Publisher.Net4/SamplePublisherForm.cs | 14 ---------- 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/SampleApplications/Samples/Client.Net4/SampleClientForm.cs b/SampleApplications/Samples/Client.Net4/SampleClientForm.cs index fca0fdb512..fec27b59b6 100644 --- a/SampleApplications/Samples/Client.Net4/SampleClientForm.cs +++ b/SampleApplications/Samples/Client.Net4/SampleClientForm.cs @@ -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); - } - } } } diff --git a/SampleApplications/Samples/Publisher.Net4/SamplePublisherForm.cs b/SampleApplications/Samples/Publisher.Net4/SamplePublisherForm.cs index 5fd2645e4a..d7984a60da 100644 --- a/SampleApplications/Samples/Publisher.Net4/SamplePublisherForm.cs +++ b/SampleApplications/Samples/Publisher.Net4/SamplePublisherForm.cs @@ -50,8 +50,6 @@ namespace Opc.Ua.Sample { InitializeComponent(); - base.BrowseCTRL.MethodCalled += new Opc.Ua.Sample.Controls.MethodCalledEventHandler(BrowseCTRL_MethodCalled); - if (!configuration.SecurityConfiguration.AutoAcceptUntrustedCertificates) { configuration.CertificateValidator.CertificateValidation += new CertificateValidationEventHandler(CertificateValidator_CertificateValidation); @@ -75,17 +73,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); - } - } } }