SIL.FieldWorks.LexText.Controls.MasterCategoryListDlg.m_tvMasterList_DoubleClick C# (CSharp) Method

m_tvMasterList_DoubleClick() private method

private m_tvMasterList_DoubleClick ( object sender, System e ) : void
sender object
e System
return void
		private void m_tvMasterList_DoubleClick(object sender, System.EventArgs e)
		{
			TreeNode tn = m_tvMasterList.GetNodeAt(m_tvMasterList.PointToClient(Cursor.Position));
			m_tvMasterList.SelectedNode = tn;
			MasterCategory mc = tn.Tag as MasterCategory;
			if (!mc.InDatabase)
			{
				DialogResult = DialogResult.OK;
				Close();
			}
		}