C# Class WindowHelper.WindowHelperForm

Inheritance: System.Windows.Forms.UserControl
Mostrar archivo Open project: PeterHorsbollMoller/mbWindowHelper Class Usage Examples

Public Methods

Method Description
AddToClosedWindowList ( int windowID, string windowName, int windowType ) : void
AddToOrUpdateInWindowLists ( int windowID, string windowName, int windowType ) : void
AutolockWindow ( int windowID ) : void
Close ( ) : void
CreateWindowList ( int windowIDs, string windowNames, int windowTypes ) : void
DockWindowChange ( ) : void
DockWindowClose ( ) : void

Close the dockable usercontrol(Named view Dialog)

GetDockWindowClosed ( ) : bool

get the open/close status of dockable user control(WindowHelper dialog)

LoadSpecialWindows ( ) : void
RefreshClosedWindowsList ( ) : void
RefreshWindowsList ( ) : void
RemoveFromAllWindowsLists ( int windowID ) : void
ResetActiveWindow ( ) : void
SetActiveWindow ( int windowID ) : void
SetDockPosition ( ) : void

Set the dialog position and docking state

SetDockWindowPositionFromFile ( ) : void

Method for Setting the Docking state from xml file containg docking persistance information

StoreDockedSpecialWindows ( ) : void
WindowHelperForm ( string title ) : System
ZoomNextAndPreviousAddExtent ( int windowID ) : void
ZoomNextAndPreviousAddWindow ( int windowID ) : void
ZoomNextAndPreviousRemoveWindow ( int windowID ) : void
ZoomNextAndPreviousZoomToFirst ( ) : void
ZoomNextAndPreviousZoomToLast ( ) : void
ZoomNextAndPreviousZoomToNext ( ) : void
ZoomNextAndPreviousZoomToPrevious ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddToOrUpdateInWindowLists ( Windows window ) : bool
AddToWindowLists ( Windows window ) : void
AddTooltips ( ) : void
ApplyDockWindowState ( ) : void

Method for setting the docking and position of dockable window

GetWindowIndex ( Windows windowsList, Windows windowToLocate ) : int
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

IsNodeABrowserWindow ( TreeNode node ) : bool
IsNodeAClosedWindow ( TreeNode node ) : bool
IsNodeAGraphWindow ( TreeNode node ) : bool
IsNodeALayoutWindow ( TreeNode node ) : bool
IsNodeAMapperWindow ( TreeNode node ) : bool
IsNodeAWindow ( TreeNode node ) : bool
LoadDockWindowStateFromFile ( ) : void

Load the dock window state from the xml file It uses mutexes to synchronize the threads accessing the xml file

RemoveFromWindowList ( Windows windowsList, Windows windowToRemove ) : void
SetDefaultDockingInfo ( ) : void

Method for setting some resaonable position/ docked state

UpdateInWindowList ( Windows windowList, Windows window ) : bool
UpdateInWindowLists ( Windows window ) : bool
UpdateWindowsButtons ( ) : void
UpdateWindowsButtons ( TreeNode node ) : void
WindowHelperForm_DockChanged ( object sender, EventArgs e ) : void
WindowHelperForm_LocationChanged ( object sender, EventArgs e ) : void
WriteDockWindowStateToFile ( ) : void

Write the dock window state to file It uses mutexes to synchronize the threads accessing the xml file

_ModifyWindow ( Windows window ) : void
_ModifyWindowUsingTreeNode ( TreeNode node ) : void
_buttonCloneWindow_Click ( object sender, EventArgs e ) : void
_buttonCloseWindow_Click ( object sender, EventArgs e ) : void
_buttonCurrentMakeDockable_Click ( object sender, EventArgs e ) : void
_buttonCurrentOptions_Click ( object sender, EventArgs e ) : void
_buttonLockWindow_Click ( object sender, EventArgs e ) : void
_buttonMakeDockable_Click ( object sender, EventArgs e ) : void
_buttonRestoreWindow_Click ( object sender, EventArgs e ) : void
_buttonUnlockWindow_Click ( object sender, EventArgs e ) : void
_buttonZoomToFirst_Click ( object sender, EventArgs e ) : void
_buttonZoomToLast_Click ( object sender, EventArgs e ) : void
_buttonZoomToNext_Click ( object sender, EventArgs e ) : void
_buttonZoomToPrevious_Click ( object sender, EventArgs e ) : void
_checkBoxAutolockWindows_CheckedChanged ( object sender, EventArgs e ) : void
_treeViewSpecialWindows_NodeMouseClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
_treeViewSpecialWindows_NodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
_treeViewWindows_NodeMouseClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
_treeViewWindows_NodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
_treeviewClosedWindows_NodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
getDockWindowState ( ) : DockWindowState

Method for getting the Docking state related information

Method Details

AddToClosedWindowList() public method

public AddToClosedWindowList ( int windowID, string windowName, int windowType ) : void
windowID int
windowName string
windowType int
return void

AddToOrUpdateInWindowLists() public method

public AddToOrUpdateInWindowLists ( int windowID, string windowName, int windowType ) : void
windowID int
windowName string
windowType int
return void

AutolockWindow() public method

public AutolockWindow ( int windowID ) : void
windowID int
return void

Close() public method

public Close ( ) : void
return void

CreateWindowList() public method

public CreateWindowList ( int windowIDs, string windowNames, int windowTypes ) : void
windowIDs int
windowNames string
windowTypes int
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

DockWindowChange() public method

public DockWindowChange ( ) : void
return void

DockWindowClose() public method

Close the dockable usercontrol(Named view Dialog)
public DockWindowClose ( ) : void
return void

GetDockWindowClosed() public method

get the open/close status of dockable user control(WindowHelper dialog)
public GetDockWindowClosed ( ) : bool
return bool

LoadSpecialWindows() public method

public LoadSpecialWindows ( ) : void
return void

RefreshClosedWindowsList() public method

public RefreshClosedWindowsList ( ) : void
return void

RefreshWindowsList() public method

public RefreshWindowsList ( ) : void
return void

RemoveFromAllWindowsLists() public method

public RemoveFromAllWindowsLists ( int windowID ) : void
windowID int
return void

ResetActiveWindow() public method

public ResetActiveWindow ( ) : void
return void

SetActiveWindow() public method

public SetActiveWindow ( int windowID ) : void
windowID int
return void

SetDockPosition() public method

Set the dialog position and docking state
public SetDockPosition ( ) : void
return void

SetDockWindowPositionFromFile() public method

Method for Setting the Docking state from xml file containg docking persistance information
public SetDockWindowPositionFromFile ( ) : void
return void

StoreDockedSpecialWindows() public method

public StoreDockedSpecialWindows ( ) : void
return void

WindowHelperForm() public method

public WindowHelperForm ( string title ) : System
title string
return System

ZoomNextAndPreviousAddExtent() public method

public ZoomNextAndPreviousAddExtent ( int windowID ) : void
windowID int
return void

ZoomNextAndPreviousAddWindow() public method

public ZoomNextAndPreviousAddWindow ( int windowID ) : void
windowID int
return void

ZoomNextAndPreviousRemoveWindow() public method

public ZoomNextAndPreviousRemoveWindow ( int windowID ) : void
windowID int
return void

ZoomNextAndPreviousZoomToFirst() public method

public ZoomNextAndPreviousZoomToFirst ( ) : void
return void

ZoomNextAndPreviousZoomToLast() public method

public ZoomNextAndPreviousZoomToLast ( ) : void
return void

ZoomNextAndPreviousZoomToNext() public method

public ZoomNextAndPreviousZoomToNext ( ) : void
return void

ZoomNextAndPreviousZoomToPrevious() public method

public ZoomNextAndPreviousZoomToPrevious ( ) : void
return void