/// <summary> /// Invoked when the companion scanner is shown. Dock /// this form to the scanner /// </summary> /// <param name="sender">sender</param> /// <param name="arg">args</param> private void AppPanelManager_EvtScannerShow(object sender, ScannerShowEventArg arg) { if (arg.Scanner != this) { dockToScanner(arg.Scanner.Form); } }
/// <summary> /// Invoked when the companian scanner is shown. Dock /// this scanner with the companian. /// </summary> /// <param name="sender">event sender</param> /// <param name="arg">event args</param> private void Instance_EvtScannerShow(object sender, ScannerShowEventArg arg) { if (arg.Scanner != this) { _dockedWithForm = arg.Scanner.Form; dockToScanner(arg.Scanner.Form); } }
/// <summary> /// Handler for event raised when a scanner is displayed /// </summary> /// <param name="sender">event sender</param> /// <param name="e">event args</param> private void Instance_EvtScannerShow(object sender, ScannerShowEventArg arg) { SetTalkWindowPosition(arg.Scanner.Form); if (_talkWindowForm != null) { Windows.SetForegroundWindow(_talkWindowForm.Handle); } }