DockWithScanner() public static method

Docks the form to the scanner form in the relative position specified
public static DockWithScanner ( Form form, Form scanner, WindowPosition scannerPosition ) : void
form System.Windows.Forms.Form form to dock
scanner System.Windows.Forms.Form scanner form to dock to
scannerPosition WindowPosition relative position
return void
コード例 #1
0
 /// <summary>
 /// Docks this scanner to the companian scanner
 /// </summary>
 /// <param name="scanner">companian scanner</param>
 private void dockToScanner(Form scanner)
 {
     if (scanner is IScannerPanel)
     {
         Windows.DockWithScanner(this, scanner, Context.AppWindowPosition);
     }
 }
コード例 #2
0
 /// <summary>
 /// Docks this scanner to the companian scanner
 /// </summary>
 /// <param name="scanner">companian scanner</param>
 private void dockToScanner(Form scanner)
 {
     if (scanner is IScannerPanel)
     {
         if (((IPanel)scanner).PanelCommon.DisplayMode != DisplayModeTypes.Popup)
         {
             Windows.DockWithScanner(this, scanner, Context.AppWindowPosition);
         }
     }
 }
コード例 #3
0
ファイル: FileBrowserScanner.cs プロジェクト: zezo010/acat
        /// <summary>
        /// Docks this scanner to the companian scanner
        /// </summary>
        /// <param name="scanner">companian scanner</param>
        private void dockToScanner(Form scanner)
        {
            if (!Windows.GetVisible(this))
            {
                return;
            }

            if (scanner is IScannerPanel)
            {
                if (((IPanel)scanner).PanelCommon.DisplayMode != DisplayModeTypes.Popup)
                {
                    Windows.DockWithScanner(this, scanner, Context.AppWindowPosition);
                    Windows.SetTopMost(scanner);
                }
            }

            if (Left < 0)
            {
                Left = 0;
            }
        }