C# Class SS.Ynote.Classic.MainForm

Mostra file Open project: samarjeet27/ynoteclassic

Private Properties

Property Type Description
AddRecentFile void
Addbookmarkmenu_Click void
BuildDialogFilter string
BuildLangMenu void
ConvertToText string
CopyMenuItem_Click void
CutMenuItem_Click void
EvaluateFunction void
ExecShellCommand void
ExitMenu_Click void
GetContentFromPersistString IDockContent
InitSettings void
InitTimer void
InitializeComponent void
InsertCharacters void
LangMenuItemClicked void
LoadPlugins void
LoadRecentList void
LoadRecentProjects void
NewMenuItem_Click void
OpenEditor SS.Ynote.Classic.Editor
OpenFileAsync void
OpenMenuItem_Click void
OpenProject void
OptionsMenu_Click void
PasteMenuItem_Click void
RedoMenuItem_Click void
RevertFile void
SaveEditor void
SaveRecentFiles void
SaveRecentProjects void
SortByLength IEnumerable
Split void
ToggleMenu void
TrimPunctuation string
UndoMenuItem_Click void
UpdateDocumentInfo void
UpdateScroll void
aboutmenu_Click void
bookmarkwindow_ProcessCommand void
caselowermenu_Click void
casetitlemenu_Click void
caseuppermenu_Click void
colorschemeitem_Click void
colorschememenu_Select void
commanderMenu_Click void
commandwindow_ProcessCommand void
commentmenu_Click void
cwin_ProcessCommand void
cwindow_ProcessCommand void
datetime_Click void
decreaseindent_Click void
distractionfree_Click void
dock_ActiveDocumentChanged void
doindent_Click void
duplicatelinemenu_Click void
emptycolumns_Click void
emptylines_Click void
fileastext_Click void
filemenu_Select void
filenamemenuitem_Click void
fileswitcher_ProcessCommand void
foldallmenu_Click void
foldselected_Click void
fromrtf_Click void
fullfilenamemenuitem_Click void
gotobookmark_Click void
gotoendmenu_Click void
gotofirstlinemenu_Click void
htmlexport_Click void
increaseindent_Click void
langitem_Click void
langmenu_Click void
langmenu_MouseEnter void
macroitem_click void
macrosmenu_Select void
menuItem100_Click void
menuItem29_Click void
menuItem30_Click void
menuItem4_Click void
menuItem65_Click void
menuItem69_Click void
menuItem71_Click void
menuItem75_Click void
menuItem76_Click void
menuItem77_Click void
menuItem78_Click void
menuItem79_Click void
menuItem80_Click void
menuItem84_Click void
miExecmacro_Click void
miaddtoproj_Click void
mibugreport_Click void
miclearMarked_Click void
miclearbookmarks_Click void
miclearmacro_Click void
miclose_Click void
micloseproj_Click void
micopyhtml_Click void
micopyrtf_Click void
midecryptfile_Click void
midocinfo_Click void
mieditproj_Click void
mifb_Click void
mifindNext_Click void
mifind_Click void
mifindchar_Click void
mifindinfiles_Click void
mifindinproject_Click void
mifindprev_Click void
miforum_Click void
mifullscreen_Click void
migoleftbracket_Click void
migoogle_Click void
migorightbracket_Click void
migotofileinproject_Click void
migotoline_Click void
migotosymbol_Click void
mihiddenchars_Click void
miinscliphis_Click void
milanguage_Select void
milasttab_Click void
mimacrorecord_Click void
mimap_Click void
mimarkRed_Click void
mimarkblue_Click void
mimarkgray_Click void
mimarkgreen_Click void
mimarkyellow_Click void
mimenu_Click void
mimultimacro_Click void
mincrementalsearch_Click void
minewscript_Click void
minewsnippet_Click void
minewsyntax_Click void
minewview_Click void
miopenproject_Click void
miprint_Click void
miproject_Select void
miprojpage_Click void
miproperties_Click void
miprotectfile_Click void
mirefreshproj_Click void
mireindentline_Click void
mirestoredefault_Click void
mirevert_Click void
mirunscripts_Click void
misaveall_Click void
misaveas_Click void
misavemacro_Click void
misaveproj_Click void
miscriptconsole_Click void
miselectedfile_Click void
miselectfindNext_Click void
mishellcmd_Click void
misnippets_Click void
misortlength_Click void
misplitbelow_Click void
misplitbeside_Click void
miswitchproj_Click void
mitoolbar_Click void
mitransparent_Click void
mitrimpunctuation_Click void
miupdates_Click void
miuserkeys_Click void
miwikimenu_Click void
miwikipedia_Click void
mizoomin_Click void
mizoomout_Click void
movelinedown_Click void
movelineup_Click void
navbackwardmenu_Click void
navforwardmenu_Click void
navigatethroughbookmarks_Click void
openrecentproj_Click void
pluginmanagermenu_Click void
pngexport_Click void
removebookmarkmenu_Click void
removeemptylines_Click void
removelinemenu_Click void
reopenclosedtab_Click void
replacemenu_Click void
rtfExport_Click void
savemenu_Click void
scriptitem_clicked void
selectallmenu_Click void
splitlinemenu_Click void
statusbarmenuitem_Click void
swapcase_Click void
unfoldmenu_Click void
unfoldselected_Click void
viewmenu_Select void
wordwrapmenu_Click void
zoom_DropDownItemClicked void

Public Methods

Method Description
AskInput ( string caption, InputWindow EnterInput ) : void
CreateNewDoc ( ) : void

Create New Document

GetActiveProject ( ) : YnoteProject

Gets the Active Project

MainForm ( string file ) : System

Default Constructor

OpenFile ( string file ) : void

Opens a File

SaveEditor ( SS.Ynote.Classic.Editor edit ) : void

SaveEditor without encoding

Trace ( string message, int timeout ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClosing ( CancelEventArgs e ) : void
OnResize ( EventArgs e ) : void

Private Methods

Method Description
AddRecentFile ( string name ) : void

Adds a recentfile to menu

Addbookmarkmenu_Click ( object sender, EventArgs e ) : void
BuildDialogFilter ( string lang, FileDialog dlg ) : string
BuildLangMenu ( ) : void

Builds the Language Menu -View->Syntax Highlighter->{Language(enumeration)}

ConvertToText ( string rtf ) : string
CopyMenuItem_Click ( object sender, EventArgs e ) : void
CutMenuItem_Click ( object sender, EventArgs e ) : void
EvaluateFunction ( object sender, InputEventArgs args ) : void
ExecShellCommand ( string command ) : void
ExitMenu_Click ( object sender, EventArgs e ) : void
GetContentFromPersistString ( string persistString ) : IDockContent
InitSettings ( ) : void

Initialize Settings

InitTimer ( ) : void

Initialize Status Bar Timer

InitializeComponent ( ) : void

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

InsertCharacters ( int times, string character ) : void
LangMenuItemClicked ( object sender, EventArgs e ) : void

Occurs when BuildLangMenu() is called and adds the click handler of every menu item so generated to LangMenuItemClicked delegate

LoadPlugins ( ) : void

Load Plugins

LoadRecentList ( ) : void

Loads the List of Recent files from list

LoadRecentProjects ( ) : void
NewMenuItem_Click ( object sender, EventArgs e ) : void
OpenEditor ( string file ) : SS.Ynote.Classic.Editor
OpenFileAsync ( string name ) : void
OpenMenuItem_Click ( object sender, EventArgs e ) : void
OpenProject ( YnoteProject project ) : void
OptionsMenu_Click ( object sender, EventArgs e ) : void
PasteMenuItem_Click ( object sender, EventArgs e ) : void
RedoMenuItem_Click ( object sender, EventArgs e ) : void
RevertFile ( ) : void

Reverts the File to the Original State

SaveEditor ( SS.Ynote.Classic.Editor edit, Encoding encoding ) : void

Save a typeof(Editor), with encoding.getEncoding( "name")

SaveRecentFiles ( ) : void

Saves Recent File to List

SaveRecentProjects ( ) : void
SortByLength ( IEnumerable e ) : IEnumerable

Sorts Array By Length

Split ( int iLine, FastColoredTextBox tb, string s ) : void
ToggleMenu ( bool visible ) : void
TrimPunctuation ( string value ) : string

Trims Punctuation from start and end of string.

UndoMenuItem_Click ( object sender, EventArgs e ) : void
UpdateDocumentInfo ( ) : void

Updates the Document Info

UpdateScroll ( FastColoredTextBox tb, int vPos, int curLine ) : void
aboutmenu_Click ( object sender, EventArgs e ) : void
bookmarkwindow_ProcessCommand ( object sender, CommandWindowEventArgs e ) : void
caselowermenu_Click ( object sender, EventArgs e ) : void
casetitlemenu_Click ( object sender, EventArgs e ) : void
caseuppermenu_Click ( object sender, EventArgs e ) : void
colorschemeitem_Click ( object sender, EventArgs e ) : void
colorschememenu_Select ( object sender, EventArgs e ) : void
commanderMenu_Click ( object sender, EventArgs e ) : void
commandwindow_ProcessCommand ( object sender, CommandWindowEventArgs e ) : void
commentmenu_Click ( object sender, EventArgs e ) : void
cwin_ProcessCommand ( object sender, CommandWindowEventArgs e ) : void
cwindow_ProcessCommand ( object sender, CommandWindowEventArgs e ) : void
datetime_Click ( object sender, EventArgs e ) : void
decreaseindent_Click ( object sender, EventArgs e ) : void
distractionfree_Click ( object sender, EventArgs e ) : void
dock_ActiveDocumentChanged ( object sender, EventArgs e ) : void
doindent_Click ( object sender, EventArgs e ) : void
duplicatelinemenu_Click ( object sender, EventArgs e ) : void
emptycolumns_Click ( object sender, EventArgs e ) : void
emptylines_Click ( object sender, EventArgs e ) : void
fileastext_Click ( object sender, EventArgs e ) : void
filemenu_Select ( object sender, EventArgs e ) : void
filenamemenuitem_Click ( object sender, EventArgs e ) : void
fileswitcher_ProcessCommand ( object sender, CommandWindowEventArgs e ) : void
foldallmenu_Click ( object sender, EventArgs e ) : void
foldselected_Click ( object sender, EventArgs e ) : void
fromrtf_Click ( object sender, EventArgs e ) : void
fullfilenamemenuitem_Click ( object sender, EventArgs e ) : void
gotobookmark_Click ( object sender, EventArgs e ) : void
gotoendmenu_Click ( object sender, EventArgs e ) : void
gotofirstlinemenu_Click ( object sender, EventArgs e ) : void
htmlexport_Click ( object sender, EventArgs e ) : void
increaseindent_Click ( object sender, EventArgs e ) : void
langitem_Click ( object sender, EventArgs e ) : void
langmenu_Click ( object sender, EventArgs e ) : void
langmenu_MouseEnter ( object sender, EventArgs e ) : void
macroitem_click ( object sender, EventArgs e ) : void
macrosmenu_Select ( object sender, EventArgs e ) : void
menuItem100_Click ( object sender, EventArgs e ) : void
menuItem29_Click ( object sender, EventArgs e ) : void
menuItem30_Click ( object sender, EventArgs e ) : void
menuItem4_Click ( object sender, EventArgs e ) : void
menuItem65_Click ( object sender, EventArgs e ) : void
menuItem69_Click ( object sender, EventArgs e ) : void
menuItem71_Click ( object sender, EventArgs e ) : void
menuItem75_Click ( object sender, EventArgs e ) : void
menuItem76_Click ( object sender, EventArgs e ) : void
menuItem77_Click ( object sender, EventArgs e ) : void
menuItem78_Click ( object sender, EventArgs e ) : void
menuItem79_Click ( object sender, EventArgs e ) : void
menuItem80_Click ( object sender, EventArgs e ) : void
menuItem84_Click ( object sender, EventArgs e ) : void
miExecmacro_Click ( object sender, EventArgs e ) : void
miaddtoproj_Click ( object sender, EventArgs e ) : void
mibugreport_Click ( object sender, EventArgs e ) : void
miclearMarked_Click ( object sender, EventArgs e ) : void
miclearbookmarks_Click ( object sender, EventArgs e ) : void
miclearmacro_Click ( object sender, EventArgs e ) : void
miclose_Click ( object sender, EventArgs e ) : void
micloseproj_Click ( object sender, EventArgs e ) : void
micopyhtml_Click ( object sender, EventArgs e ) : void
micopyrtf_Click ( object sender, EventArgs e ) : void
midecryptfile_Click ( object sender, EventArgs e ) : void
midocinfo_Click ( object sender, EventArgs e ) : void
mieditproj_Click ( object sender, EventArgs e ) : void
mifb_Click ( object sender, EventArgs e ) : void
mifindNext_Click ( object sender, EventArgs e ) : void
mifind_Click ( object sender, EventArgs e ) : void
mifindchar_Click ( object sender, EventArgs e ) : void
mifindinfiles_Click ( object sender, EventArgs e ) : void
mifindinproject_Click ( object sender, EventArgs e ) : void
mifindprev_Click ( object sender, EventArgs e ) : void
miforum_Click ( object sender, EventArgs e ) : void
mifullscreen_Click ( object sender, EventArgs e ) : void
migoleftbracket_Click ( object sender, EventArgs e ) : void
migoogle_Click ( object sender, EventArgs e ) : void
migorightbracket_Click ( object sender, EventArgs e ) : void
migotofileinproject_Click ( object sender, EventArgs e ) : void
migotoline_Click ( object sender, EventArgs e ) : void
migotosymbol_Click ( object sender, EventArgs e ) : void
mihiddenchars_Click ( object sender, EventArgs e ) : void
miinscliphis_Click ( object sender, EventArgs e ) : void
milanguage_Select ( object sender, EventArgs e ) : void
milasttab_Click ( object sender, EventArgs e ) : void
mimacrorecord_Click ( object sender, EventArgs e ) : void
mimap_Click ( object sender, EventArgs e ) : void
mimarkRed_Click ( object sender, EventArgs e ) : void
mimarkblue_Click ( object sender, EventArgs e ) : void
mimarkgray_Click ( object sender, EventArgs e ) : void
mimarkgreen_Click ( object sender, EventArgs e ) : void
mimarkyellow_Click ( object sender, EventArgs e ) : void
mimenu_Click ( object sender, EventArgs e ) : void
mimultimacro_Click ( object sender, EventArgs e ) : void
mincrementalsearch_Click ( object sender, EventArgs e ) : void
minewscript_Click ( object sender, EventArgs e ) : void
minewsnippet_Click ( object sender, EventArgs e ) : void
minewsyntax_Click ( object sender, EventArgs e ) : void
minewview_Click ( object sender, EventArgs e ) : void
miopenproject_Click ( object sender, EventArgs e ) : void
miprint_Click ( object sender, EventArgs e ) : void
miproject_Select ( object sender, EventArgs e ) : void
miprojpage_Click ( object sender, EventArgs e ) : void
miproperties_Click ( object sender, EventArgs e ) : void
miprotectfile_Click ( object sender, EventArgs e ) : void
mirefreshproj_Click ( object sender, EventArgs e ) : void
mireindentline_Click ( object sender, EventArgs e ) : void
mirestoredefault_Click ( object sender, EventArgs e ) : void
mirevert_Click ( object sender, EventArgs e ) : void
mirunscripts_Click ( object sender, EventArgs e ) : void
misaveall_Click ( object sender, EventArgs e ) : void
misaveas_Click ( object sender, EventArgs e ) : void
misavemacro_Click ( object sender, EventArgs e ) : void
misaveproj_Click ( object sender, EventArgs e ) : void
miscriptconsole_Click ( object sender, EventArgs e ) : void
miselectedfile_Click ( object sender, EventArgs e ) : void
miselectfindNext_Click ( object sender, EventArgs e ) : void
mishellcmd_Click ( object sender, EventArgs e ) : void
misnippets_Click ( object sender, EventArgs e ) : void
misortlength_Click ( object sender, EventArgs e ) : void
misplitbelow_Click ( object sender, EventArgs e ) : void
misplitbeside_Click ( object sender, EventArgs e ) : void
miswitchproj_Click ( object sender, EventArgs e ) : void
mitoolbar_Click ( object sender, EventArgs e ) : void
mitransparent_Click ( object sender, EventArgs e ) : void
mitrimpunctuation_Click ( object sender, EventArgs e ) : void
miupdates_Click ( object sender, EventArgs e ) : void
miuserkeys_Click ( object sender, EventArgs e ) : void
miwikimenu_Click ( object sender, EventArgs e ) : void
miwikipedia_Click ( object sender, EventArgs e ) : void
mizoomin_Click ( object sender, EventArgs e ) : void
mizoomout_Click ( object sender, EventArgs e ) : void
movelinedown_Click ( object sender, EventArgs e ) : void
movelineup_Click ( object sender, EventArgs e ) : void
navbackwardmenu_Click ( object sender, EventArgs e ) : void
navforwardmenu_Click ( object sender, EventArgs e ) : void
navigatethroughbookmarks_Click ( object sender, EventArgs e ) : void
openrecentproj_Click ( object sender, EventArgs e ) : void
pluginmanagermenu_Click ( object sender, EventArgs e ) : void
pngexport_Click ( object sender, EventArgs e ) : void
removebookmarkmenu_Click ( object sender, EventArgs e ) : void
removeemptylines_Click ( object sender, EventArgs e ) : void
removelinemenu_Click ( object sender, EventArgs e ) : void
reopenclosedtab_Click ( object sender, EventArgs e ) : void
replacemenu_Click ( object sender, EventArgs e ) : void
rtfExport_Click ( object sender, EventArgs e ) : void
savemenu_Click ( object sender, EventArgs e ) : void
scriptitem_clicked ( object sender, EventArgs e ) : void
selectallmenu_Click ( object sender, EventArgs e ) : void
splitlinemenu_Click ( object sender, EventArgs e ) : void
statusbarmenuitem_Click ( object sender, EventArgs e ) : void
swapcase_Click ( object sender, EventArgs e ) : void
unfoldmenu_Click ( object sender, EventArgs e ) : void
unfoldselected_Click ( object sender, EventArgs e ) : void
viewmenu_Select ( object sender, EventArgs e ) : void
wordwrapmenu_Click ( object sender, EventArgs e ) : void
zoom_DropDownItemClicked ( object sender, ToolStripItemClickedEventArgs e ) : void

Method Details

AskInput() public method

public AskInput ( string caption, InputWindow EnterInput ) : void
caption string
EnterInput InputWindow
return void

CreateNewDoc() public method

Create New Document
public CreateNewDoc ( ) : void
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

GetActiveProject() public method

Gets the Active Project
public GetActiveProject ( ) : YnoteProject
return YnoteProject

MainForm() public method

Default Constructor
public MainForm ( string file ) : System
file string
return System

OnClosing() protected method

protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e EventArgs
return void

OpenFile() public method

Opens a File
public OpenFile ( string file ) : void
file string
return void

SaveEditor() public method

SaveEditor without encoding
public SaveEditor ( SS.Ynote.Classic.Editor edit ) : void
edit SS.Ynote.Classic.Editor
return void

Trace() public method

public Trace ( string message, int timeout ) : void
message string
timeout int
return void