void listEntry_MouseDown(object sender, PInputEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
ContextMenuStrip menu = new ContextMenuStrip();
ToolStripMenuItem openInPCCEd = new ToolStripMenuItem("Open in Package Editor");
openInPCCEd.Click += openInPCCEd_Click;
menu.Items.AddRange(new ToolStripItem[] { openInPCCEd });
menu.Show(Cursor.Position);
}
else
{
if (collapsed)
{
listEntry[0].RotateInPlace(90);
listEntry[0].TranslateBy(5, 5);
}
else
{
listEntry[0].TranslateBy(-5, -5);
listEntry[0].RotateInPlace(-90);
}
bCollapsed = !collapsed;
}
ToTree();
}