private void ShowContextPanel(bool state)
{
/*if (!ContextPanel.InvokeRequired)
Task.Run(new Action(() => ShowContextPanel(state)));*/
if (ContextPanel.InvokeRequired)
this.Invoke(new Action(() => ShowContextPanel(state)));
else
{
/*UsefulThings.WinForms.Transitions.TransitionType_CriticalDamping trans = new UsefulThings.WinForms.Transitions.TransitionType_CriticalDamping(300);
UsefulThings.WinForms.Transitions.Transition.run(ContextPanel, "Height", (state ? 25 : 0), trans);
UsefulThings.WinForms.Transitions.Transition.run(MainTreeView, "Height", (state ? MainSplitter.Panel1.Height - 25 : MainSplitter.Panel1.Height), trans);*/
/*ContextPanel.Height = state ? 25 : 0;
MainTreeView.Height = state ? MainSplitter.Panel1.Height - 25 : MainSplitter.Panel1.Height;*/ // KFreon: Scaling fixes
}
}