C# Class PSint.frMain

Inheritance: System.Windows.Forms.Form
Exibir arquivo Open project: LuckyGeck/PSint Class Usage Examples

Public Properties

Property Type Description
bStartBreaking bool

Public Methods

Method Description
Error ( string sParam ) : void

This method shows the Error message.

Error ( string sParam, int nLine ) : void

This method shows the Error message.

ParseLine ( string line ) : void

This method Highlights the current line in textbox

ParseLine ( string line, int nParam ) : void

This method highlights a line, that strts from particular symbol.

execCmd ( string cmd, string param, Func fFunc ) : string

This method executes one line of code.

extractCmdParam ( String sParams ) : String[]

This method extracts Params from one string to the array.

frMain ( ) : System
processBlanks ( string sParam, Func fFunc ) : string
processLogicalSeq ( string sParam, Func fFunc ) : bool

This method process some logical sequence and returns result - is it true or false.

processVars ( string sParam, Func fFunc ) : string

This method is processing vars.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
CountExpression ( string sParam ) : string

This method sets all brackets needed in this seq.

HideRun ( ) : void

THis method hides Run window.

InitializeComponent ( ) : void

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

LoadFile ( string sParam ) : void

Loads file with source to the textbox1.

SaveFile ( string sParam ) : void

Saves Source File, that is opened in textbox1.

SetCaption ( ) : void

This method updates Caption of the Main form.

ShowRun ( ) : void

This method shows the Run window.

copyToolStripMenuItem_Click ( object sender, EventArgs e ) : void
cutToolStripMenuItem_Click ( object sender, EventArgs e ) : void
dialOpen_FileOk ( object sender, CancelEventArgs e ) : void
dialSave_FileOk ( object sender, CancelEventArgs e ) : void
exitToolStripMenuItem_Click ( object sender, EventArgs e ) : void
inKbrd ( string s ) : void
isCmd ( string param ) : bool

Checks, if string contains commands at all.

newProjectToolStripMenuItem1_Click ( object sender, EventArgs e ) : void
onlineWikiToolStripMenuItem_Click ( object sender, EventArgs e ) : void
openToolStripMenuItem_Click ( object sender, EventArgs e ) : void
pairBrackets ( string sParam ) : bool

This method checks, if brackets are paired.

pasteToolStripMenuItem_Click ( object sender, EventArgs e ) : void
processComplicatedSeq ( string sParam ) : string

This method processes Complicated seq.

processSimpleSeq ( string sParam, Func fFunc ) : string

Method, processing simple sequence - A <+,-,*,/> B

reparseAll ( ) : void
runToolStripMenuItem1_Click ( object sender, EventArgs e ) : void

This method runs main source file.

saveAsToolStripMenuItem_Click ( object sender, EventArgs e ) : void
saveToolStripMenuItem_Click ( object sender, EventArgs e ) : void
selectAllToolStripMenuItem_Click ( object sender, EventArgs e ) : void
syntaxHToolStripMenuItem_Click ( object sender, EventArgs e ) : void
textBox1_KeyUp ( object sender, KeyEventArgs e ) : void
textBox1_TextChanged ( object sender, EventArgs e ) : void

Method Details

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

Error() public method

This method shows the Error message.
public Error ( string sParam ) : void
sParam string Error text.
return void

Error() public method

This method shows the Error message.
public Error ( string sParam, int nLine ) : void
sParam string Error text.
nLine int The number of the line, where the exception occured.
return void

ParseLine() public method

This method Highlights the current line in textbox
public ParseLine ( string line ) : void
line string Text of the line
return void

ParseLine() public method

This method highlights a line, that strts from particular symbol.
public ParseLine ( string line, int nParam ) : void
line string The text of the line.
nParam int The number of the first symbol in our line.
return void

execCmd() public method

This method executes one line of code.
public execCmd ( string cmd, string param, Func fFunc ) : string
cmd string The name of command to execute.
param string Parameters for this command
fFunc Func The instance of Func class, which is currently running.
return string

extractCmdParam() public method

This method extracts Params from one string to the array.
public extractCmdParam ( String sParams ) : String[]
sParams String
return String[]

frMain() public method

public frMain ( ) : System
return System

processBlanks() public method

public processBlanks ( string sParam, Func fFunc ) : string
sParam string
fFunc Func
return string

processLogicalSeq() public method

This method process some logical sequence and returns result - is it true or false.
public processLogicalSeq ( string sParam, Func fFunc ) : bool
sParam string Some sequence
fFunc Func Func class instance
return bool

processVars() public method

This method is processing vars.
public processVars ( string sParam, Func fFunc ) : string
sParam string String with @vars.
fFunc Func The instance of Func class, which is currently running.
return string

Property Details

bStartBreaking public_oe property

public bool bStartBreaking
return bool