Skip to content

Commit

Permalink
eliminate warnings from #98 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeVeSpl authored Oct 24, 2021
1 parent f934f97 commit 6229f6c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 46 deletions.
15 changes: 0 additions & 15 deletions CS/Snoop/Forms/ObjTreeBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ protected void
this.m_tvObjs.Sorted = true;
this.m_tvObjs.TabIndex = 0;
this.m_tvObjs.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeNodeSelected);
this.m_tvObjs.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.TreeNodeSelected);
//
// m_cntxMenuObjId
//
Expand Down Expand Up @@ -316,20 +315,6 @@ protected async void TreeNodeSelected(object sender, System.Windows.Forms.TreeVi
Snoop.Utils.Display(m_lvData, m_snoopCollector);
}


/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected async void TreeNodeSelected(object sender, System.Windows.Forms.TreeNodeMouseClickEventArgs e)
{
//m_curObj = e.Node.Tag;
//await m_snoopCollector.Collect(m_curObj);
//Snoop.Utils.Display(m_lvData, m_snoopCollector);
}


/// <summary>
///
/// </summary>
Expand Down
17 changes: 1 addition & 16 deletions CS/Snoop/Forms/ParamEnumSnoop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ protected void
this.m_tvObjs.Size = new System.Drawing.Size(248, 415);
this.m_tvObjs.TabIndex = 0;
this.m_tvObjs.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeNodeSelected);
this.m_tvObjs.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.TreeNodeSelected);
//
// m_cntxMenuObjId
//
Expand Down Expand Up @@ -338,21 +337,7 @@ protected async void TreeNodeSelected(object sender, System.Windows.Forms.TreeVi
m_curObj = e.Node.Tag;
await m_snoopCollector.Collect(m_curObj);
Snoop.Utils.Display(m_lvData, m_snoopCollector);
}


/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected async void TreeNodeSelected(object sender, System.Windows.Forms.TreeNodeMouseClickEventArgs e)
{
//m_curObj = e.Node.Tag;
//await m_snoopCollector.Collect(m_curObj);
//Snoop.Utils.Display(m_lvData, m_snoopCollector);
}

}

/// <summary>
///
Expand Down
16 changes: 1 addition & 15 deletions CS/Snoop/Forms/Parameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ protected void
this.m_tvObjs.Size = new System.Drawing.Size(248, 415);
this.m_tvObjs.TabIndex = 0;
this.m_tvObjs.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.TreeNodeSelected);
this.m_tvObjs.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.TreeNodeSelected);
//
// m_cntxMenuObjId
//
Expand Down Expand Up @@ -366,20 +365,7 @@ protected async void TreeNodeSelected(object sender, System.Windows.Forms.TreeVi
m_curObj = e.Node.Tag;
await m_snoopCollector.Collect(m_curObj);
Snoop.Utils.Display(m_lvData, m_snoopCollector);
}


/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected async void TreeNodeSelected(object sender, System.Windows.Forms.TreeNodeMouseClickEventArgs e)
{
//m_curObj = e.Node.Tag;
//await m_snoopCollector.Collect(m_curObj);
//Snoop.Utils.Display(m_lvData, m_snoopCollector);
}
}


/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions CS/TestCmds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@

namespace RevitLookup
{
#pragma warning disable CS4014 // Because calls to SnoopAndShow method, which is async, are not awaited, execution of the commands continues before the calls are completed

/// <summary>
/// The classic bare-bones test. Just brings up an Alert box to show that the connection to the external module is working.
/// </summary>
Expand Down Expand Up @@ -218,4 +220,5 @@ public Result Execute(
return Result.Succeeded;
}
}
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
}

0 comments on commit 6229f6c

Please sign in to comment.