Skip to content

Commit

Permalink
Merge pull request #6 from Forbiddenz/someimprovements
Browse files Browse the repository at this point in the history
Copy
  • Loading branch information
tfarley authored Apr 15, 2017
2 parents 5e010b5 + b8a1098 commit 7346c7f
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 15 deletions.
51 changes: 37 additions & 14 deletions aclogview/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 34 additions & 1 deletion aclogview/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public partial class Form1 : Form {
/// Add multiple opcodes to highlight to this list.<para />
/// Each opcode will have a different row highlight color.
/// </summary>
private readonly List<int> opCodesToHighlight = new List<int>();
private readonly List<int> opCodesToHighlight = new List<int>();

private StringBuilder strbuilder = new StringBuilder();

public Form1(string[] args) {
InitializeComponent();
Expand Down Expand Up @@ -1035,5 +1037,36 @@ private void checkBox_useHighlighting_CheckedChanged(object sender, EventArgs e)
{
updateText();
}

private void parsedContextMenu_Opening(object sender, CancelEventArgs e)
{

}


private void parsedContextMenu_Click(object sender, EventArgs e)
{

if (treeView_ParsedData.Nodes.Count > 0)
{
strbuilder.Clear();
foreach (var node in GetTreeNodes(treeView_ParsedData.Nodes))
{
strbuilder.AppendLine(node.Text);
}
Clipboard.SetText(strbuilder.ToString());
}
}

IEnumerable<TreeNode> GetTreeNodes(TreeNodeCollection nodes)
{
foreach (TreeNode node in nodes)
{
yield return node;
foreach (var child in GetTreeNodes(node.Nodes))
yield return child;
}
}

}
}
3 changes: 3 additions & 0 deletions aclogview/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="parsedContextMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>358, 17</value>
</metadata>
<metadata name="mainMenu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
Expand Down

0 comments on commit 7346c7f

Please sign in to comment.