private void dockToScanner(Form scanner) { if (scanner is IScannerPanel) { Windows.DockWithScanner(this, scanner, Context.AppWindowPosition); } }