logo

TrayIcon gui object class. More...

Public Member Functions

 TrayIcon (FormManager formmanager)
 Initializes a new instance of the TrayIcon class. New trayicon in the systray. More...
 
void Dispose ()
 Destroy NotifyIcon with ContextMenuStrip and ToolStripMenuItems etc. More...
 

Private Member Functions

void Icon_Click (object sender, MouseEventArgs e)
 There is left clicked on the icon. If actionleftclick is 0 do nothing. If actionleftclick is 1 actived all notes. If actionleftclick is 2 create a new note. More...
 
void menuTrayIcon_Opening (object sender, System.ComponentModel.CancelEventArgs e)
 Trayicon menu is being openened. More...
 
void menuNewNoteClipboard_Click (object sender, EventArgs e)
 Open new note window with content set from clipboard text. More...
 
void MenuNewNote_Click (object sender, EventArgs e)
 Open new note window. More...
 
void MenuManageNotes_Click (object sender, EventArgs e)
 Open manage notes window. More...
 
void MenuSettings_Click (object sender, EventArgs e)
 Open settings window. More...
 
void MenuPlugins_Click (object sender, EventArgs e)
 Open plugins window. More...
 
void MenuAbout_Click (object sender, EventArgs e)
 Open about window. More...
 
void MenuExit_Click (object sender, EventArgs e)
 User request to shutdown application. Check if confirm box is needed. If confirm box is still open and menuExit_Click event is fired then shutdown application anyway. More...
 

Private Attributes

FormManager formmanager
 Reference to the FormManager class. More...
 
System.ComponentModel.IContainer components = null
 Container that holds some objects. More...
 
bool confirmexitshowed = false
 Indicated wheter confirm exit is showed. More...
 
NotifyIcon icon
 The trayicon itself. More...
 
ContextMenuStrip menuTrayIcon
 The trayicon contextmenu More...
 
ToolStripMenuItem menuNewNote
 New note menu option More...
 
ToolStripMenuItem menuNewNoteClipboard
 Create a new note from clipboard. More...
 
ToolStripMenuItem menuManageNotes
 Manage notes menu option More...
 
ToolStripMenuItem menuSettings
 Settings application menu option More...
 
ToolStripMenuItem menuPlugins
 Plugins menu option More...
 
ToolStripMenuItem menuAbout
 About menu option More...
 
ToolStripMenuItem menuExit
 Exit menu option More...
 

Detailed Description

Constructor & Destructor Documentation

NoteFly.TrayIcon.TrayIcon ( FormManager  formmanager)
Parameters
formmanagerReference to FormManager class.

Member Function Documentation

void NoteFly.TrayIcon.Dispose ( )
void NoteFly.TrayIcon.Icon_Click ( object  sender,
MouseEventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.TrayIcon.MenuAbout_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent argument
void NoteFly.TrayIcon.MenuExit_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent argument
void NoteFly.TrayIcon.MenuManageNotes_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent argument
void NoteFly.TrayIcon.MenuNewNote_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent argument
void NoteFly.TrayIcon.menuNewNoteClipboard_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.TrayIcon.MenuPlugins_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent argument
void NoteFly.TrayIcon.MenuSettings_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent argument
void NoteFly.TrayIcon.menuTrayIcon_Opening ( object  sender,
System.ComponentModel.CancelEventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments

Member Data Documentation

System.ComponentModel.IContainer NoteFly.TrayIcon.components = null
private
bool NoteFly.TrayIcon.confirmexitshowed = false
private
FormManager NoteFly.TrayIcon.formmanager
private
NotifyIcon NoteFly.TrayIcon.icon
private
ToolStripMenuItem NoteFly.TrayIcon.menuAbout
private
ToolStripMenuItem NoteFly.TrayIcon.menuExit
private
ToolStripMenuItem NoteFly.TrayIcon.menuManageNotes
private
ToolStripMenuItem NoteFly.TrayIcon.menuNewNote
private
ToolStripMenuItem NoteFly.TrayIcon.menuNewNoteClipboard
private
ToolStripMenuItem NoteFly.TrayIcon.menuPlugins
private
ToolStripMenuItem NoteFly.TrayIcon.menuSettings
private
ContextMenuStrip NoteFly.TrayIcon.menuTrayIcon
private