C# Класс PSint.frMain

Наследование: System.Windows.Forms.Form
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
bStartBreaking bool

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Clean up any resources being used.

Приватные методы

Метод Описание
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

Описание методов

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

Error() публичный Метод

This method shows the Error message.
public Error ( string sParam ) : void
sParam string Error text.
Результат void

Error() публичный Метод

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.
Результат void

ParseLine() публичный Метод

This method Highlights the current line in textbox
public ParseLine ( string line ) : void
line string Text of the line
Результат void

ParseLine() публичный Метод

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.
Результат void

execCmd() публичный Метод

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.
Результат string

extractCmdParam() публичный Метод

This method extracts Params from one string to the array.
public extractCmdParam ( String sParams ) : String[]
sParams String
Результат String[]

frMain() публичный Метод

public frMain ( ) : System
Результат System

processBlanks() публичный Метод

public processBlanks ( string sParam, Func fFunc ) : string
sParam string
fFunc Func
Результат string

processLogicalSeq() публичный Метод

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
Результат bool

processVars() публичный Метод

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.
Результат string

Описание свойств

bStartBreaking публичное свойство

public bool bStartBreaking
Результат bool