Quickstarts.HistoricalEvents.Client.SelectTypeDlg.BrowseTV_DoubleClick C# (CSharp) Method

BrowseTV_DoubleClick() private method

Handles the DoubleClick event of the BrowseTV control.
private BrowseTV_DoubleClick ( object sender, EventArgs e ) : void
sender object The source of the event.
e EventArgs The instance containing the event data.
return void
        private void BrowseTV_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                if (BrowseTV.SelectedNode == null)
                {
                    return;
                }

                if (OkBTN.Enabled)
                {
                    DialogResult = DialogResult.OK;
                }
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }