logo

Manage notes window More...

+ Inheritance diagram for NoteFly.FrmManageNotes:

Classes

struct  SHFILEOPSTRUCT_x64
 SHFILEOPSTRUCT_x64 struct More...
 
struct  SHFILEOPSTRUCT_x86
 SHFILEOPSTRUCT_x86 struct More...
 

Public Types

enum  FileOperationFlags : ushort {
  FOF_SILENT = 0x0004, FOF_NOCONFIRMATION = 0x0010, FOF_ALLOWUNDO = 0x0040, FOF_SIMPLEPROGRESS = 0x0100,
  FOF_NOERRORUI = 0x0400, FOF_WANTNUKEWARNING = 0x4000
}
 Possible flags for the SHFileOperation method. More...
 
enum  FileOperationType : uint { FO_MOVE = 0x0001, FO_COPY = 0x0002, FO_DELETE = 0x0003, FO_RENAME = 0x0004 }
 File Operation Function Type for SHFileOperation More...
 

Public Member Functions

 FrmManageNotes (Notes notes)
 Initializes a new instance of the FrmManageNotes class. More...
 
void Resetdatagrid ()
 Reset the previous drawed row numbers in datagridview1. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Private Member Functions

static int SHFileOperation_x86 (ref SHFILEOPSTRUCT_x86 FileOp)
 
static int SHFileOperation_x64 (ref SHFILEOPSTRUCT_x64 FileOp)
 
void SetSkin ()
 Set the skin for the FrmManageNotes form. More...
 
void SetFormTitle ()
 Set the title of this form. More...
 
void SetFormTooltips ()
 Set all form tooltips if tooltips are enabled. More...
 
void btnBackAllNotes_Click (object sender, EventArgs e)
 Request to backup all notes to a file. Ask where to save then do it. More...
 
void btnClose_Click (object sender, EventArgs e)
 Close form More...
 
void btnNoteDelete_Click (object sender, EventArgs e)
 The user pressed the delete button for a note. More...
 
string GetShortTitle (string title)
 Get a shorted title if title is too long. More...
 
void btnRestoreAllNotes_Click (object sender, EventArgs e)
 Request to restore all notes from a backup file. More...
 
void btnShowSelectedNotes_Click (object sender, EventArgs e)
 Toggle visibility selected notes. More...
 
void dataGridViewNotes_CellClick (object sender, DataGridViewCellEventArgs e)
 Cell clicked in dataGridViewNotes, set hide/show note button text. More...
 
void ToggleVisibilityNote (int row)
 Toggle the visibility of a note. More...
 
void dataGridViewNotes_ColumnHeaderMouseClick (object sender, DataGridViewCellMouseEventArgs e)
 A column is sorted, make sure backgroundcolor skin colum get painted again. More...
 
void dataGridViewNotes_RowPostPaint (object sender, DataGridViewRowPostPaintEventArgs e)
 Color the skin cell with the foreground color of the skin in this cell. More...
 
void dataGridViewNotes_Scroll (object sender, ScrollEventArgs e)
 Scrolling the datagridview. More...
 
void DeleteNotesSelectedRowsGrid (DataGridViewSelectedRowCollection selrows)
 Deletes the notes in memory and the files that are selected in a Gridview. In reverse order, so updating datagridview goes well. More...
 
void DrawNotesGrid ()
 Draw a list of all notes. Sets FrmManageNotesNeedUpdate to true. More...
 
DataTable CreateDatatable ()
 Create a new datatable object with translated columns for notes overview. More...
 
DataTable AddDatatableNoteRow (DataTable datatable, int notepos)
 Add a row with note information to a databasetable More...
 
void frmManageNotes_Activated (object sender, EventArgs e)
 FrmManageNotes is activated. More...
 
void frmManageNotes_Deactivate (object sender, EventArgs e)
 Form not active, make tranparent if set. More...
 
int GetNoteposBySelrow (int rowindex)
 Get the note position in the list by looking up the nr colom with at the partialer row. More...
 
void pbResizeGrip_MouseMove (object sender, MouseEventArgs e)
 The manage note form is beening resized. More...
 
void pbResizeGrip_MouseUp (object sender, MouseEventArgs e)
 Resize ended, set column width More...
 
void pnlHead_MouseDown (object sender, MouseEventArgs e)
 Moving frmManageNotes More...
 
void pnlHead_MouseMove (object sender, MouseEventArgs e)
 Move FrmManageNotes if pnlHead is being left clicked. More...
 
void pnlHead_MouseUp (object sender, MouseEventArgs e)
 End moving FrmManageNotes. More...
 
void SetDataGridViewColumsWidth ()
 Sets every colom of the datagridview to a reasonable width. More...
 
void dataGridViewNotes_CellDoubleClick (object sender, DataGridViewCellEventArgs e)
 Double click a row in dataGridView toggle the visibility of a note. More...
 
void dataGridViewNotes_CellMouseEnter (object sender, DataGridViewCellEventArgs e)
 Display a tooltip with the note content for the hovered note in that row. More...
 
void searchTextBoxNotes_SearchStart (string keywords)
 Start searching on a keyword. More...
 
void searchTextBoxNotes_SearchStop ()
 Searching in notes stopped, show all notes again. More...
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 

Static Private Member Functions

static bool IsWOW64Process ()
 Check whether this is a 64bit operating system More...
 

Private Attributes

const int COLNOTENRFIXEDWIDTH = 30
 Constant for the fixed width of the number note colum in datagridview1. More...
 
const int COLINDEXNR = 0
 Column index of the nr column. More...
 
const int COLINDEXTITLE = 1
 Column index of the title column. More...
 
const int COLINDEXVISIBLE = 2
 Column index of the visible column. More...
 
const int COLINDEXSKIN = 3
 Column index of the skin column. More...
 
Notes notes
 Rereference to notes More...
 
Point oldp
 Delta point More...
 
int prevrownr = -1
 The previous painted row number. More...
 
ToolTip tooltip
 The tooltip. More...
 
int secondprevrownr = -2
 The previous of previous painted row number. More...
 
int prevrowtooltip = -1
 The previous row the tooltip was showed More...
 
System.Windows.Forms.Button btnClose
 The close Button of FrmMangeNotes More...
 
System.Windows.Forms.Panel pnlHead
 An panel the titlebar of the form. More...
 
System.Windows.Forms.PictureBox pbResizeGrip
 An picturebox for resizing form. More...
 
System.ComponentModel.IContainer components
 Required designer variable. More...
 
System.Windows.Forms.Button btnRestoreAllNotes
 Button btnRestoreAllNotes More...
 
System.Windows.Forms.Button btnShowSelectedNotes
 Button btnShowSelectedNotes More...
 
System.Windows.Forms.Button btnNoteDelete
 Button btnNoteDelete More...
 
System.Windows.Forms.Button btnBackAllNotes
 Button Button More...
 
System.Windows.Forms.Label lbTextWindowTitle
 Label lbTextWindowTitle More...
 
System.Windows.Forms.DataGridView dataGridViewNotes
 DataGridView dataGridView1 More...
 
System.Windows.Forms.Panel pnlContent
 Panel pnlContent More...
 
System.Windows.Forms.TableLayoutPanel tableLayoutPanelButtons
 TableLayoutPanel tableLayoutPanelButtons More...
 
SearchTextBox searchTextBoxNotes
 SearchTextBox searchTextBoxNotes More...
 

Detailed Description

Manage note window

Member Enumeration Documentation

Enumerator
FOF_SILENT 

Do not show a dialog during the process

FOF_NOCONFIRMATION 

Do not ask the user to confirm selection

FOF_ALLOWUNDO 

Delete the file to the recycle bin. (Required flag to send a file to the bin

FOF_SIMPLEPROGRESS 

Do not show the names of the files or folders that are being recycled.

FOF_NOERRORUI 

Surpress errors, if any occur during the process.

FOF_WANTNUKEWARNING 

Warn if files are too big to fit in the recycle bin and will need to be deleted completely.

Enumerator
FO_MOVE 

Move the objects

FO_COPY 

Copy the objects

FO_DELETE 

Delete (or recycle) the objects

FO_RENAME 

Rename the object(s)

Constructor & Destructor Documentation

NoteFly.FrmManageNotes.FrmManageNotes ( Notes  notes)
Parameters
notesThe class notes, with access to all the notes.

Member Function Documentation

DataTable NoteFly.FrmManageNotes.AddDatatableNoteRow ( DataTable  datatable,
int  notepos 
)
private
Parameters
datatableThe database to add a row to.
noteposThe position of the note in the notes list in Notes class.
Returns
The databasetable with a extra row
void NoteFly.FrmManageNotes.btnBackAllNotes_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmManageNotes.btnClose_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmManageNotes.btnNoteDelete_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmManageNotes.btnRestoreAllNotes_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmManageNotes.btnShowSelectedNotes_Click ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
DataTable NoteFly.FrmManageNotes.CreateDatatable ( )
private
Returns
A new datatable object.
void NoteFly.FrmManageNotes.dataGridViewNotes_CellClick ( object  sender,
DataGridViewCellEventArgs  e 
)
private
Parameters
senderSender object
eDataGridViewCell event arguments
void NoteFly.FrmManageNotes.dataGridViewNotes_CellDoubleClick ( object  sender,
DataGridViewCellEventArgs  e 
)
private
Parameters
senderSender object
eDataGridViewCellEvent Arguments
void NoteFly.FrmManageNotes.dataGridViewNotes_CellMouseEnter ( object  sender,
DataGridViewCellEventArgs  e 
)
private
Parameters
senderSender object
eDataGridViewCell event arguments
void NoteFly.FrmManageNotes.dataGridViewNotes_ColumnHeaderMouseClick ( object  sender,
DataGridViewCellMouseEventArgs  e 
)
private
Parameters
senderSender object
eDataGridViewCellMouse event arguments
void NoteFly.FrmManageNotes.dataGridViewNotes_RowPostPaint ( object  sender,
DataGridViewRowPostPaintEventArgs  e 
)
private
Parameters
senderSender object
eDataGridViewRowPostPaint event arguments
void NoteFly.FrmManageNotes.dataGridViewNotes_Scroll ( object  sender,
ScrollEventArgs  e 
)
private
Parameters
senderSender object
eScroll event arguments
void NoteFly.FrmManageNotes.DeleteNotesSelectedRowsGrid ( DataGridViewSelectedRowCollection  selrows)
private
Parameters
selrowsThe selected rows in datagridview1
override void NoteFly.FrmManageNotes.Dispose ( bool  disposing)
protected
Parameters
disposingTrue if managed resources should be disposed; otherwise, false.
void NoteFly.FrmManageNotes.DrawNotesGrid ( )
private
void NoteFly.FrmManageNotes.frmManageNotes_Activated ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmManageNotes.frmManageNotes_Deactivate ( object  sender,
EventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
int NoteFly.FrmManageNotes.GetNoteposBySelrow ( int  rowindex)
private
Parameters
rowindexThe selected row index in datagridview1.
Returns
The position of the note in the list. -1 if error.
string NoteFly.FrmManageNotes.GetShortTitle ( string  title)
private
Parameters
titleThe current title
Returns
A shorter title if title is a certain length.
void NoteFly.FrmManageNotes.InitializeComponent ( )
private
static bool NoteFly.FrmManageNotes.IsWOW64Process ( )
staticprivate
Returns
true if this is a 64bit operating system
void NoteFly.FrmManageNotes.pbResizeGrip_MouseMove ( object  sender,
MouseEventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmManageNotes.pbResizeGrip_MouseUp ( object  sender,
MouseEventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmManageNotes.pnlHead_MouseDown ( object  sender,
MouseEventArgs  e 
)
private
Parameters
senderSender object
eEvent arguments
void NoteFly.FrmManageNotes.pnlHead_MouseMove ( object  sender,
MouseEventArgs  e 
)
private
Parameters
senderSender object
eMouse event arguments
void NoteFly.FrmManageNotes.pnlHead_MouseUp ( object  sender,
MouseEventArgs  e 
)
private
Parameters
senderSender object
eMouse event arguments
void NoteFly.FrmManageNotes.Resetdatagrid ( )
void NoteFly.FrmManageNotes.searchTextBoxNotes_SearchStart ( string  keywords)
private
Parameters
keywordsThe keyword to search on.
void NoteFly.FrmManageNotes.searchTextBoxNotes_SearchStop ( )
private
void NoteFly.FrmManageNotes.SetDataGridViewColumsWidth ( )
private
void NoteFly.FrmManageNotes.SetFormTitle ( )
private
void NoteFly.FrmManageNotes.SetFormTooltips ( )
private
void NoteFly.FrmManageNotes.SetSkin ( )
private
static int NoteFly.FrmManageNotes.SHFileOperation_x64 ( ref SHFILEOPSTRUCT_x64  FileOp)
private
static int NoteFly.FrmManageNotes.SHFileOperation_x86 ( ref SHFILEOPSTRUCT_x86  FileOp)
private
void NoteFly.FrmManageNotes.ToggleVisibilityNote ( int  row)
private
Parameters
rowThe row number in dataGridView1 that is double clicked.

Member Data Documentation

System.Windows.Forms.Button NoteFly.FrmManageNotes.btnBackAllNotes
private
System.Windows.Forms.Button NoteFly.FrmManageNotes.btnClose
private
System.Windows.Forms.Button NoteFly.FrmManageNotes.btnNoteDelete
private
System.Windows.Forms.Button NoteFly.FrmManageNotes.btnRestoreAllNotes
private
System.Windows.Forms.Button NoteFly.FrmManageNotes.btnShowSelectedNotes
private
const int NoteFly.FrmManageNotes.COLINDEXNR = 0
private
const int NoteFly.FrmManageNotes.COLINDEXSKIN = 3
private
const int NoteFly.FrmManageNotes.COLINDEXTITLE = 1
private
const int NoteFly.FrmManageNotes.COLINDEXVISIBLE = 2
private
const int NoteFly.FrmManageNotes.COLNOTENRFIXEDWIDTH = 30
private
System.ComponentModel.IContainer NoteFly.FrmManageNotes.components
private
System.Windows.Forms.DataGridView NoteFly.FrmManageNotes.dataGridViewNotes
private
System.Windows.Forms.Label NoteFly.FrmManageNotes.lbTextWindowTitle
private
Notes NoteFly.FrmManageNotes.notes
private
Point NoteFly.FrmManageNotes.oldp
private
System.Windows.Forms.PictureBox NoteFly.FrmManageNotes.pbResizeGrip
private
System.Windows.Forms.Panel NoteFly.FrmManageNotes.pnlContent
private
System.Windows.Forms.Panel NoteFly.FrmManageNotes.pnlHead
private
int NoteFly.FrmManageNotes.prevrownr = -1
private
int NoteFly.FrmManageNotes.prevrowtooltip = -1
private
SearchTextBox NoteFly.FrmManageNotes.searchTextBoxNotes
private
int NoteFly.FrmManageNotes.secondprevrownr = -2
private
System.Windows.Forms.TableLayoutPanel NoteFly.FrmManageNotes.tableLayoutPanelButtons
private
ToolTip NoteFly.FrmManageNotes.tooltip
private