Opc.Ua.Configuration.ManagedApplicationCtrl.NewApplicationBTN_Click C# (CSharp) Method

NewApplicationBTN_Click() private method

private NewApplicationBTN_Click ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void NewApplicationBTN_Click(object sender, EventArgs e)
        {
            try
            {
                ManagedApplication application = new ManagedApplicationDlg().ShowDialog(null);

                if (application == null)
                {
                    return;
                }

                ApplicationToManageCB.SelectedIndex = ApplicationToManageCB.Items.Add(application);
            }
            catch (Exception exception)
            {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }