private void Instance_EvtScannerShow(object sender, ScannerShowEventArg arg) { if (arg.Scanner != this && Windows.GetVisible(this)) { _dockedWithForm = arg.Scanner.Form; dockToScanner(arg.Scanner.Form); } }