private void toolStripButton6_Click(object sender, EventArgs e)
{
if (this.Parent is DevExpress.XtraBars.Docking.DockPanel)
{
DevExpress.XtraBars.Docking.DockPanel pnl = (DevExpress.XtraBars.Docking.DockPanel)this.Parent;
if (pnl.FloatForm == null)
{
pnl.FloatSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
pnl.FloatLocation = new System.Drawing.Point(1, 1);
pnl.MakeFloat();
// alleen grafiek
splitContainer1.Panel1Collapsed = false;
splitContainer1.Panel2Collapsed = false;
}
else
{
pnl.Restore();
splitContainer1.Panel1Collapsed = false;
splitContainer1.Panel2Collapsed = false;
}
}
else if (this.Parent is DevExpress.XtraBars.Docking.ControlContainer)
{
DevExpress.XtraBars.Docking.ControlContainer container = (DevExpress.XtraBars.Docking.ControlContainer)this.Parent;
if (container.Panel.FloatForm == null)
{
container.Panel.FloatSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
container.Panel.FloatLocation = new System.Drawing.Point(1, 1);
container.Panel.MakeFloat();
splitContainer1.Panel1Collapsed = false;
splitContainer1.Panel2Collapsed = false;
}
else
{
container.Panel.Restore();
splitContainer1.Panel1Collapsed = false;
splitContainer1.Panel2Collapsed = false;
}
}
}