Naanou
Class frmNMain

Main form. This is were all the action happens.

Field Summary
System.Threading.Thread closeThread
System.ComponentModel.IContainer components
Crownwood.Magic.Docking.Content contentDebugForm
Crownwood.Magic.Docking.Content debugREWindow
Crownwood.Magic.Docking.DockingManager dockingManager
Naanou.Search.Filters filters
System.Windows.Forms.ImageList il
Crownwood.Magic.Menus.MenuCommand mnuTasksNews
Crownwood.Magic.Menus.MenuCommand mnuTasksSearch
Crownwood.Magic.Menus.MenuCommand mnuTasksShare
Crownwood.Magic.Menus.MenuCommand mnuView
Crownwood.Magic.Menus.MenuCommand mnuViewDebugRE
Crownwood.Magic.Menus.MenuCommand mnuViewStats
Crownwood.Magic.Menus.MenuCommand mnuViewVis
Naanou.frmWeb newsWebBrowser
Naanou.Common.ILogger redirect
Naanou.frmSplash splash
Naanou.frmDebugStats statsForm
Crownwood.Magic.Controls.TabControl tabControl
Crownwood.Magic.Controls.TabPage transfersTab
System.Windows.Forms.NotifyIcon tray
Crownwood.Magic.Controls.TabPage visTab

Fields inherited from class System.Windows.Forms.ScrollableControl
scrollPosition

Fields inherited from class System.Windows.Forms.Control
window

Constructor Summary
frmNMain()
         Constructor

Properties inherited from class System.Windows.Forms.Form
AcceptButton, ActiveMdiChild, AllowTransparency, AutoScale, AutoScaleBaseSize, AutoScroll, BackColor, CancelButton, ClientSize, ControlBox, CreateParams, DefaultImeMode, DefaultSize, DesktopBounds, DesktopLocation, DialogResult, FormBorderStyle, HelpButton, Icon, IsMdiChild, IsMdiContainer, IsRestrictedWindow, KeyPreview, MaximizeBox, MaximizedBounds, MaximumSize, MdiChildren, MdiParent, Menu, MergedMenu, MinimizeBox, MinimumSize, Modal, Opacity, OwnedForms, Owner, ShowInTaskbar, Size, SizeGripStyle, StartPosition, TabIndex, TopLevel, TopMost, TransparencyKey, WindowState

Properties inherited from class System.Windows.Forms.ContainerControl
ActiveControl, BindingContext, ParentForm

Properties inherited from class System.Windows.Forms.ScrollableControl
AutoScrollMargin, AutoScrollMinSize, AutoScrollPosition, DisplayRectangle, DockPadding, HScroll, VScroll

Properties inherited from class System.Windows.Forms.Control
AccessibilityObject, AccessibleDefaultActionDescription, AccessibleDescription, AccessibleName, AccessibleRole, AllowDrop, Anchor, BackgroundImage, Bottom, Bounds, CanFocus, CanSelect, Capture, CausesValidation, ClientRectangle, CompanyName, ContainsFocus, ContextMenu, Controls, Created, Cursor, DataBindings, Disposing, Dock, Enabled, Focused, Font, FontHeight, ForeColor, Handle, HasChildren, Height, ImeMode, InvokeRequired, IsAccessible, IsDisposed, IsHandleCreated, Left, Location, Name, Parent, ProductName, ProductVersion, RecreatingHandle, Region, RenderRightToLeft, ResizeRedraw, Right, RightToLeft, ShowFocusCues, ShowKeyboardCues, Site, TabStop, Tag, Text, Top, TopLevelControl, Visible, Width, WindowTarget

Properties inherited from class System.ComponentModel.Component
Container, DesignMode, Events

Method Summary
Naanou.frmWeb AddBrowser(string startUrl)
         Adds a webbrowser
Naanou.frmWeb AddBrowser(string startUrl, int imageIndex)
         Adds a webbrowser with a specified icon
Crownwood.Magic.Controls.TabPage AddTab(System.Windows.Forms.Form form, int iconIndex)
Crownwood.Magic.Docking.Content AddWindow(System.Windows.Forms.Form form)
         Adds a window to display
Crownwood.Magic.Docking.Content AddWindow(System.Windows.Forms.Form form, int iconIndex)
         Adds a window to display, with a specified icon
void CreateInitialUI()
void CreateMenu()
void Dispose(bool disposing)
         Clean up any resources being used.
string ExePath()
void frmNMain_Closing(object sender, System.ComponentModel.CancelEventArgs e)
void frmNMain_Resize(object sender, System.EventArgs e)
void HideDebugWindow()
void ILogger.Log(string message, Naanou.Common.LogLevel level)
         Log a message with a specified level
void InitializeComponent()
         Required method for Designer support - do not modify the contents of this method with the code editor.
void IWindowDocker.AddWindow(System.Windows.Forms.Form form, int iconIndex)
void IWindowDocker.AddWindow(System.Windows.Forms.Form form)
void Main()
void NodeOffline()
         Called from indexer to indicate node is offline
void NodeOnline()
         Called from Indexer to indicate node is online
void NodeStarted()
         Called from Indexer to indicate node has stated
void OnDebugLookupServiceClick(object sender, System.EventArgs args)
void OnDebugREWindowClosed(object sender, System.EventArgs args)
void OnExitClick(object sender, System.EventArgs args)
void OnHelpAboutClick(object sender, System.EventArgs args)
void OnHelpChatClick(object sender, System.EventArgs args)
void OnHelpWebClick(object sender, System.EventArgs args)
void OnNewsBrowserClosed(object sender, System.EventArgs args)
void OnSearchClick(object sender, System.EventArgs args)
void OnShareClick(object sender, System.EventArgs args)
void OnStatisticsClick(object sender, System.EventArgs args)
void OnTabClosePressed(object sender, System.EventArgs args)
void OnTabFormClosed(object sender, System.EventArgs args)
void OnTabTextChanged(object sender, System.EventArgs args)
void OnTasksNewsClick(object sender, System.EventArgs args)
void OnThreadException(object sender, System.Threading.ThreadExceptionEventArgs args)
void OnTransfersClick(object sender, System.EventArgs args)
void OnVisualisationClick(object sender, System.EventArgs args)
void OnWebBrowserTitleChange(object sender, System.EventArgs args)
void OnWindowTextChange(object sender, System.EventArgs args)
void SafeDiskLog(System.Exception er, string extraInfo)
void SetDebugWindow(System.Windows.Forms.Form form)
void SetSplashOff()
         Turns splash screen off
void SetSplashProgress(string message)
         Sets the splash screen progress
void ShowDebugWindow()
void Shutdown()
void Start()
void tray_Click(object sender, System.EventArgs e)
void tray_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
void UserWarning(string message)
void UserWarningImpl(string message)

Methods inherited from class System.Windows.Forms.Form
Activate, ActivateMdiChild, AddOwnedForm, AdjustFormScrollbars, ApplyAutoScaling, AssignParent, CenterToParent, CenterToScreen, Close, CreateControlsInstance, CreateHandle, DefWndProc, FocusInternal, LayoutMdi, OnActivated, OnClosed, OnClosing, OnCreateControl, OnDeactivate, OnFontChanged, OnHandleCreated, OnHandleDestroyed, OnInputLanguageChanged, OnInputLanguageChanging, OnLoad, OnMaximizedBoundsChanged, OnMaximumSizeChanged, OnMdiChildActivate, OnMenuComplete, OnMenuStart, OnMinimumSizeChanged, OnPaint, OnResize, OnStyleChanged, OnTextChanged, OnVisibleChanged, ProcessCmdKey, ProcessDialogKey, ProcessKeyPreview, ProcessTabKey, RecreateHandleCore, RemoveOwnedForm, ScaleCore, Select, SetBoundsCore, SetClientSizeCore, SetDesktopBounds, SetDesktopLocation, SetVisibleCore, ShouldSerializeAutoScaleBaseSize, ShouldSerializeSize, ShowDialog, ShowDialog, ToString, UpdateDefaultButton, WndProc

Methods inherited from class System.Windows.Forms.ContainerControl
IContainerControl.ActivateControl, OnControlRemoved, ProcessDialogChar, ProcessMnemonic, Validate

Methods inherited from class System.Windows.Forms.ScrollableControl
GetScrollState, OnLayout, OnMouseWheel, ScrollControlIntoView, SetAutoScrollMargin, SetDisplayRectLocation, SetScrollState

Methods inherited from class System.Windows.Forms.Control
AccessibilityNotifyClients, BeginInvoke, BeginInvoke, BringToFront, CanSelectCore, Contains, CreateAccessibilityInstance, CreateControl, CreateGraphics, DestroyHandle, DisposeAxControls, DoDragDrop, EndInvoke, FindForm, Focus, GetChildAtPoint, GetContainerControl, GetNextControl, GetStyle, GetTopLevel, GetVisibleCore, Hide, InitializeDCForWmCtlColor, InitLayout, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invoke, Invoke, InvokeGotFocus, InvokeLostFocus, InvokeOnClick, InvokePaint, InvokePaintBackground, IsInputChar, IsInputKey, NotifyInvalidate, NotifyValidationResult, OnBackColorChanged, OnBackgroundImageChanged, OnBindingContextChanged, OnCausesValidationChanged, OnChangeUICues, OnClick, OnContextMenuChanged, OnControlAdded, OnCursorChanged, OnDockChanged, OnDoubleClick, OnDragDrop, OnDragEnter, OnDragLeave, OnDragOver, OnEnabledChanged, OnEnter, OnForeColorChanged, OnGiveFeedback, OnGotFocus, OnHelpRequested, OnImeModeChanged, OnInvalidated, OnKeyDown, OnKeyPress, OnKeyUp, OnLeave, OnLocationChanged, OnLostFocus, OnMouseDown, OnMouseEnter, OnMouseHover, OnMouseLeave, OnMouseMove, OnMouseUp, OnMove, OnNotifyMessage, OnPaintBackground, OnParentBackColorChanged, OnParentBackgroundImageChanged, OnParentBindingContextChanged, OnParentChanged, OnParentEnabledChanged, OnParentFontChanged, OnParentForeColorChanged, OnParentRightToLeftChanged, OnParentVisibleChanged, OnQueryContinueDrag, OnRightToLeftChanged, OnSizeChanged, OnSystemColorsChanged, OnTabIndexChanged, OnTabStopChanged, OnValidated, OnValidating, PerformLayout, PerformLayout, PointToClient, PointToScreen, PreProcessMessage, ProcessKeyEventArgs, ProcessKeyMessage, RaiseDragEvent, RaiseKeyEvent, RaiseMouseEvent, RaisePaintEvent, RecreateHandle, RectangleToClient, RectangleToScreen, Refresh, ResetBackColor, ResetBindings, ResetCursor, ResetFont, ResetForeColor, ResetImeMode, ResetMouseEventArgs, ResetRightToLeft, ResetText, ResumeLayout, ResumeLayout, RtlTranslateAlignment, RtlTranslateAlignment, RtlTranslateAlignment, RtlTranslateContent, RtlTranslateHorizontal, RtlTranslateLeftRight, Scale, Scale, Select, SelectNextControl, SendToBack, SetBounds, SetBounds, SetStyle, SetTopLevel, ShouldSerializeBackColor, ShouldSerializeCursor, ShouldSerializeFont, ShouldSerializeForeColor, ShouldSerializeImeMode, ShouldSerializeLocation, ShouldSerializeRightToLeft, ShouldSerializeText, Show, SuspendLayout, UnsafeNativeMethods+IOleControl.FreezeEvents, UnsafeNativeMethods+IOleControl.GetControlInfo, UnsafeNativeMethods+IOleControl.OnAmbientPropertyChange, UnsafeNativeMethods+IOleControl.OnMnemonic, UnsafeNativeMethods+IOleInPlaceActiveObject.ContextSensitiveHelp, UnsafeNativeMethods+IOleInPlaceActiveObject.EnableModeless, UnsafeNativeMethods+IOleInPlaceActiveObject.GetWindow, UnsafeNativeMethods+IOleInPlaceActiveObject.OnDocWindowActivate, UnsafeNativeMethods+IOleInPlaceActiveObject.OnFrameWindowActivate, UnsafeNativeMethods+IOleInPlaceActiveObject.ResizeBorder, UnsafeNativeMethods+IOleInPlaceActiveObject.TranslateAccelerator, UnsafeNativeMethods+IOleInPlaceObject.ContextSensitiveHelp, UnsafeNativeMethods+IOleInPlaceObject.GetWindow, UnsafeNativeMethods+IOleInPlaceObject.InPlaceDeactivate, UnsafeNativeMethods+IOleInPlaceObject.ReactivateAndUndo, UnsafeNativeMethods+IOleInPlaceObject.SetObjectRects, UnsafeNativeMethods+IOleInPlaceObject.UIDeactivate, UnsafeNativeMethods+IOleObject.Advise, UnsafeNativeMethods+IOleObject.Close, UnsafeNativeMethods+IOleObject.DoVerb, UnsafeNativeMethods+IOleObject.EnumAdvise, UnsafeNativeMethods+IOleObject.EnumVerbs, UnsafeNativeMethods+IOleObject.GetClientSite, UnsafeNativeMethods+IOleObject.GetClipboardData, UnsafeNativeMethods+IOleObject.GetExtent, UnsafeNativeMethods+IOleObject.GetMiscStatus, UnsafeNativeMethods+IOleObject.GetMoniker, UnsafeNativeMethods+IOleObject.GetUserClassID, UnsafeNativeMethods+IOleObject.GetUserType, UnsafeNativeMethods+IOleObject.InitFromData, UnsafeNativeMethods+IOleObject.IsUpToDate, UnsafeNativeMethods+IOleObject.OleUpdate, UnsafeNativeMethods+IOleObject.SetClientSite, UnsafeNativeMethods+IOleObject.SetColorScheme, UnsafeNativeMethods+IOleObject.SetExtent, UnsafeNativeMethods+IOleObject.SetHostNames, UnsafeNativeMethods+IOleObject.SetMoniker, UnsafeNativeMethods+IOleObject.Unadvise, UnsafeNativeMethods+IOleWindow.ContextSensitiveHelp, UnsafeNativeMethods+IOleWindow.GetWindow, UnsafeNativeMethods+IPersist.GetClassID, UnsafeNativeMethods+IPersistPropertyBag.GetClassID, UnsafeNativeMethods+IPersistPropertyBag.InitNew, UnsafeNativeMethods+IPersistPropertyBag.Load, UnsafeNativeMethods+IPersistPropertyBag.Save, UnsafeNativeMethods+IPersistStorage.GetClassID, UnsafeNativeMethods+IPersistStorage.HandsOffStorage, UnsafeNativeMethods+IPersistStorage.InitNew, UnsafeNativeMethods+IPersistStorage.IsDirty, UnsafeNativeMethods+IPersistStorage.Load, UnsafeNativeMethods+IPersistStorage.Save, UnsafeNativeMethods+IPersistStorage.SaveCompleted, UnsafeNativeMethods+IPersistStreamInit.GetClassID, UnsafeNativeMethods+IPersistStreamInit.GetSizeMax, UnsafeNativeMethods+IPersistStreamInit.InitNew, UnsafeNativeMethods+IPersistStreamInit.IsDirty, UnsafeNativeMethods+IPersistStreamInit.Load, UnsafeNativeMethods+IPersistStreamInit.Save, UnsafeNativeMethods+IQuickActivate.GetContentExtent, UnsafeNativeMethods+IQuickActivate.QuickActivate, UnsafeNativeMethods+IQuickActivate.SetContentExtent, UnsafeNativeMethods+IViewObject.Draw, UnsafeNativeMethods+IViewObject.Freeze, UnsafeNativeMethods+IViewObject.GetAdvise, UnsafeNativeMethods+IViewObject.GetColorSet, UnsafeNativeMethods+IViewObject.SetAdvise, UnsafeNativeMethods+IViewObject.Unfreeze, UnsafeNativeMethods+IViewObject2.Draw, UnsafeNativeMethods+IViewObject2.Freeze, UnsafeNativeMethods+IViewObject2.GetAdvise, UnsafeNativeMethods+IViewObject2.GetColorSet, UnsafeNativeMethods+IViewObject2.GetExtent, UnsafeNativeMethods+IViewObject2.SetAdvise, UnsafeNativeMethods+IViewObject2.Unfreeze, Update, UpdateBounds, UpdateBounds, UpdateBounds, UpdateStyles, UpdateStylesCore, UpdateZOrder

Methods inherited from class System.ComponentModel.Component
Dispose, Finalize, GetService

Methods inherited from class System.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService

Methods inherited from class System.Object
Equals, GetHashCode, GetType, MemberwiseClone

Events inherited from class System.Windows.Forms.Form
Activated, Closed, Closing, Deactivate, InputLanguageChanged, InputLanguageChanging, Load, MaximizedBoundsChanged, MaximumSizeChanged, MdiChildActivate, MenuComplete, MenuStart, MinimumSizeChanged

Events inherited from class System.Windows.Forms.Control
BackColorChanged, BackgroundImageChanged, BindingContextChanged, CausesValidationChanged, ChangeUICues, Click, ContextMenuChanged, ControlAdded, ControlRemoved, CursorChanged, DockChanged, DoubleClick, DragDrop, DragEnter, DragLeave, DragOver, EnabledChanged, Enter, FontChanged, ForeColorChanged, GiveFeedback, GotFocus, HandleCreated, HandleDestroyed, HelpRequested, ImeModeChanged, Invalidated, KeyDown, KeyPress, KeyUp, Layout, Leave, LocationChanged, LostFocus, MouseDown, MouseEnter, MouseHover, MouseLeave, MouseMove, MouseUp, MouseWheel, Move, Paint, ParentChanged, QueryAccessibilityHelp, QueryContinueDrag, Resize, RightToLeftChanged, SizeChanged, StyleChanged, SystemColorsChanged, TabIndexChanged, TabStopChanged, TextChanged, Validated, Validating, VisibleChanged

Events inherited from class System.ComponentModel.Component
Disposed


Field Detail

closeThread

private System.Threading.Thread closeThread


components

private System.ComponentModel.IContainer components


contentDebugForm

private Crownwood.Magic.Docking.Content contentDebugForm


debugREWindow

private Crownwood.Magic.Docking.Content debugREWindow


dockingManager

private Crownwood.Magic.Docking.DockingManager dockingManager


filters

private Naanou.Search.Filters filters


il

private System.Windows.Forms.ImageList il


mnuTasksNews

private Crownwood.Magic.Menus.MenuCommand mnuTasksNews


mnuTasksSearch

private Crownwood.Magic.Menus.MenuCommand mnuTasksSearch


mnuTasksShare

private Crownwood.Magic.Menus.MenuCommand mnuTasksShare


mnuView

private Crownwood.Magic.Menus.MenuCommand mnuView


mnuViewDebugRE

private Crownwood.Magic.Menus.MenuCommand mnuViewDebugRE


mnuViewStats

private Crownwood.Magic.Menus.MenuCommand mnuViewStats


mnuViewVis

private Crownwood.Magic.Menus.MenuCommand mnuViewVis


newsWebBrowser

private Naanou.frmWeb newsWebBrowser


redirect

private Naanou.Common.ILogger redirect


splash

private Naanou.frmSplash splash


statsForm

private Naanou.frmDebugStats statsForm


tabControl

private Crownwood.Magic.Controls.TabControl tabControl


transfersTab

private Crownwood.Magic.Controls.TabPage transfersTab


tray

private System.Windows.Forms.NotifyIcon tray


visTab

private Crownwood.Magic.Controls.TabPage visTab

Constructor Detail

frmNMain

public frmNMain()

Constructor

Method Detail

AddBrowser

internal Naanou.frmWeb AddBrowser(string startUrl)

Adds a webbrowser

Parameters:
startUrl - Url
Returns:
Web browser form

AddBrowser

internal Naanou.frmWeb AddBrowser(string startUrl,
                                  int imageIndex)

Adds a webbrowser with a specified icon

Parameters:
startUrl - Url
imageIndex - Icon index
Returns:
Web browser form

AddTab

public Crownwood.Magic.Controls.TabPage AddTab(System.Windows.Forms.Form form,
                                               int iconIndex)


AddWindow

public Crownwood.Magic.Docking.Content AddWindow(System.Windows.Forms.Form form)

Adds a window to display

Parameters:
form - Window

AddWindow

public Crownwood.Magic.Docking.Content AddWindow(System.Windows.Forms.Form form,
                                                 int iconIndex)

Adds a window to display, with a specified icon

Parameters:
form - Form
iconIndex - Icon

CreateInitialUI

private void CreateInitialUI()


CreateMenu

private void CreateMenu()


Dispose

protected void Dispose(bool disposing)

Clean up any resources being used.


ExePath

public string ExePath()


frmNMain_Closing

private void frmNMain_Closing(object sender,
                              System.ComponentModel.CancelEventArgs e)


frmNMain_Resize

private void frmNMain_Resize(object sender,
                             System.EventArgs e)


HideDebugWindow

internal void HideDebugWindow()


ILogger.Log

private void ILogger.Log(string message,
                         Naanou.Common.LogLevel level)

Log a message with a specified level

Parameters:
message - Message to log
level - Log level

InitializeComponent

private void InitializeComponent()

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


IWindowDocker.AddWindow

private void IWindowDocker.AddWindow(System.Windows.Forms.Form form,
                                     int iconIndex)


IWindowDocker.AddWindow

private void IWindowDocker.AddWindow(System.Windows.Forms.Form form)


Main

public void Main()


NodeOffline

public void NodeOffline()

Called from indexer to indicate node is offline


NodeOnline

public void NodeOnline()

Called from Indexer to indicate node is online


NodeStarted

public void NodeStarted()

Called from Indexer to indicate node has stated


OnDebugLookupServiceClick

private void OnDebugLookupServiceClick(object sender,
                                       System.EventArgs args)


OnDebugREWindowClosed

private void OnDebugREWindowClosed(object sender,
                                   System.EventArgs args)


OnExitClick

private void OnExitClick(object sender,
                         System.EventArgs args)


OnHelpAboutClick

private void OnHelpAboutClick(object sender,
                              System.EventArgs args)


OnHelpChatClick

private void OnHelpChatClick(object sender,
                             System.EventArgs args)


OnHelpWebClick

private void OnHelpWebClick(object sender,
                            System.EventArgs args)


OnNewsBrowserClosed

private void OnNewsBrowserClosed(object sender,
                                 System.EventArgs args)


OnSearchClick

private void OnSearchClick(object sender,
                           System.EventArgs args)


OnShareClick

private void OnShareClick(object sender,
                          System.EventArgs args)


OnStatisticsClick

private void OnStatisticsClick(object sender,
                               System.EventArgs args)


OnTabClosePressed

private void OnTabClosePressed(object sender,
                               System.EventArgs args)


OnTabFormClosed

private void OnTabFormClosed(object sender,
                             System.EventArgs args)


OnTabTextChanged

private void OnTabTextChanged(object sender,
                              System.EventArgs args)


OnTasksNewsClick

private void OnTasksNewsClick(object sender,
                              System.EventArgs args)


OnThreadException

private void OnThreadException(object sender,
                               System.Threading.ThreadExceptionEventArgs args)


OnTransfersClick

private void OnTransfersClick(object sender,
                              System.EventArgs args)


OnVisualisationClick

private void OnVisualisationClick(object sender,
                                  System.EventArgs args)


OnWebBrowserTitleChange

private void OnWebBrowserTitleChange(object sender,
                                     System.EventArgs args)


OnWindowTextChange

private void OnWindowTextChange(object sender,
                                System.EventArgs args)


SafeDiskLog

public void SafeDiskLog(System.Exception er,
                        string extraInfo)


SetDebugWindow

internal void SetDebugWindow(System.Windows.Forms.Form form)


SetSplashOff

public void SetSplashOff()

Turns splash screen off


SetSplashProgress

public void SetSplashProgress(string message)

Sets the splash screen progress

Parameters:
message -

ShowDebugWindow

internal void ShowDebugWindow()


Shutdown

private void Shutdown()


Start

private void Start()


tray_Click

private void tray_Click(object sender,
                        System.EventArgs e)


tray_MouseDown

private void tray_MouseDown(object sender,
                            System.Windows.Forms.MouseEventArgs e)


UserWarning

internal void UserWarning(string message)


UserWarningImpl

private void UserWarningImpl(string message)