logo

FormManager class More...

Public Member Functions

 FormManager (Notes notes)
 Create a new instance of FormManager class. More...
 
void RefreshFrmManageNotes ()
 Do a refresh on the FrmManageNotes window if it's created. More...
 
void OpenNewNote (bool contentclipboard)
 Create a new note. More...
 
void OpenNewNote (string title, string content)
 Create a new note. More...
 
void OpenFrmManageNotes ()
 Open manage notes window, only allow one instance. More...
 
void OpenFrmSettings ()
 Open settings window, only allow one instance. More...
 
void OpenFrmPlugins ()
 Open plugins window, only allow one instance. More...
 
void OpenFrmAbout ()
 Open about window, only allow one instance. More...
 
void BringToFrontNotes ()
 Bring all notes windows to front. More...
 

Properties

bool Frmneweditnoteopen [get, set]
 Gets or sets a value indicating whether a FrmNewNote window is open. More...
 
bool FrmManageNotesNeedUpdate [get, set]
 Gets or sets a value indicating whether FrmManageNotes datagridview needs to be redrawn. More...
 

Private Member Functions

bool AllowCreateForm (Form form)
 Check whether a form can be created. More...
 
void KeyboardListener_s_KeyEventHandler (object sender, EventArgs e)
 Handle keys that are pressed to check for system wide shortcut being pressed. More...
 
void ResetAllModifierKeys ()
 Reset all pressed modifier keys. More...
 
void ChangeDeltaPositionNewNote ()
 Change the delta position of FrmNewNote. More...
 

Private Attributes

Notes notes
 Reference to notes More...
 
FrmManageNotes frmmanagenotes
 Reference to FrmManageNotes window. More...
 
FrmPlugins frmplugins
 Reference to FrmPlugins window. More...
 
FrmSettings frmsettings
 Reference to FrmSettings window. More...
 
FrmAbout frmabout
 Reference to FrmAbout window. More...
 
int newnotedeltaX = 0
 The newnote window delta X position More...
 
int newnotedeltaY = 0
 The newnote window delta Y position More...
 
bool frmneweditnoteopen = false
 Used for warning if new note is still open on shutdown application. More...
 
bool frmmanagenotesneedupdate = false
 A boolean indication whether FrmManageNotes datagridview needs to be redrawn. More...
 
KeyboardListener keylister
 Reference to KeyboardListener class. More...
 
bool controlpressed = false
 Is control being pressd. More...
 
bool shiftpressed = false
 Is shift being pressd. More...
 
bool altpressed = false
 Is alt being pressd. More...
 

Detailed Description

Constructor & Destructor Documentation

NoteFly.FormManager.FormManager ( Notes  notes)
Parameters
notesReference to notes class.

Member Function Documentation

bool NoteFly.FormManager.AllowCreateForm ( Form  form)
private
Parameters
formThe form to check.
Returns
True if form may be created.
void NoteFly.FormManager.BringToFrontNotes ( )
void NoteFly.FormManager.ChangeDeltaPositionNewNote ( )
private
void NoteFly.FormManager.KeyboardListener_s_KeyEventHandler ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FormManager.OpenFrmAbout ( )
void NoteFly.FormManager.OpenFrmManageNotes ( )
void NoteFly.FormManager.OpenFrmPlugins ( )
void NoteFly.FormManager.OpenFrmSettings ( )
void NoteFly.FormManager.OpenNewNote ( bool  contentclipboard)
Parameters
contentclipboardSet content with text from clipboard
void NoteFly.FormManager.OpenNewNote ( string  title,
string  content 
)
Parameters
contentclipboardSet content with text from clipboard
void NoteFly.FormManager.RefreshFrmManageNotes ( )
void NoteFly.FormManager.ResetAllModifierKeys ( )
private

Member Data Documentation

bool NoteFly.FormManager.altpressed = false
private
bool NoteFly.FormManager.controlpressed = false
private
FrmAbout NoteFly.FormManager.frmabout
private
FrmManageNotes NoteFly.FormManager.frmmanagenotes
private
bool NoteFly.FormManager.frmmanagenotesneedupdate = false
private
bool NoteFly.FormManager.frmneweditnoteopen = false
private
FrmPlugins NoteFly.FormManager.frmplugins
private
FrmSettings NoteFly.FormManager.frmsettings
private
KeyboardListener NoteFly.FormManager.keylister
private
int NoteFly.FormManager.newnotedeltaX = 0
private
int NoteFly.FormManager.newnotedeltaY = 0
private
Notes NoteFly.FormManager.notes
private
bool NoteFly.FormManager.shiftpressed = false
private

Property Documentation

bool NoteFly.FormManager.FrmManageNotesNeedUpdate
getset
bool NoteFly.FormManager.Frmneweditnoteopen
getset