IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Forms.CompilerForm Class Reference
+ Inheritance diagram for IG.Forms.CompilerForm:
+ Collaboration diagram for IG.Forms.CompilerForm:

Public Member Functions

 CompilerForm ()
 Initializes form components and internal variables. More...
 

Public Attributes

ReporterConsoleMsgbox Reporter = new ReporterConsoleMsgbox()
 

Protected Member Functions

void ReportError (string message, Exception ex)
 Launches error report. More...
 
void CheckReadyToRun ()
 Checks whether the compiled code is ready to run, and enables the Run button accordingly. More...
 
override void Dispose (bool disposing)
 Clean up any resources being used. More...
 

Protected Attributes

RuntimeCompiler Compiler = new RuntimeCompiler()
 

Properties

Logger Logger [get]
 Gets compiler's logger. More...
 

Private Member Functions

void btnLoad_Click (object sender, System.EventArgs e)
 Loads code template into the rich textbox. More...
 
void ChooseFile ()
 
void btnLoadFromFile_Click (object sender, EventArgs e)
 
void btnCompile_Click (object sender, System.EventArgs e)
 Compilation of code. More...
 
void btnExecute_Click (object sender, System.EventArgs e)
 
void btnQuit_Click (object sender, System.EventArgs e)
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor. More...
 

Private Attributes

Logger _logger = null
 
string _filePath = "../../testdata/"
 
bool _fileChosen = false
 
System.ComponentModel.IContainer components = null
 Required designer variable. More...
 
System.Windows.Forms.RichTextBox rtfCode
 
System.Windows.Forms.Button btnLoad
 
System.Windows.Forms.Button btnCompile
 
System.Windows.Forms.Button btnExecute
 
System.Windows.Forms.Button btnQuit
 
System.Windows.Forms.Button btnLoadFromFile
 

Constructor & Destructor Documentation

IG.Forms.CompilerForm.CompilerForm ( )
inline

Initializes form components and internal variables.

Member Function Documentation

void IG.Forms.CompilerForm.ReportError ( string  message,
Exception  ex 
)
inlineprotected

Launches error report.

Parameters
messageCustom part of the message shown in report.
exException that was thrown.
void IG.Forms.CompilerForm.CheckReadyToRun ( )
inlineprotected

Checks whether the compiled code is ready to run, and enables the Run button accordingly.

References IG.Lib.RuntimeCompiler.ReadyToRun.

void IG.Forms.CompilerForm.btnLoad_Click ( object  sender,
System.EventArgs  e 
)
inlineprivate

Loads code template into the rich textbox.

References IG.Lib.RuntimeCompiler.CodeBase.

void IG.Forms.CompilerForm.ChooseFile ( )
inlineprivate
void IG.Forms.CompilerForm.btnLoadFromFile_Click ( object  sender,
EventArgs  e 
)
inlineprivate
void IG.Forms.CompilerForm.btnExecute_Click ( object  sender,
System.EventArgs  e 
)
inlineprivate
void IG.Forms.CompilerForm.btnQuit_Click ( object  sender,
System.EventArgs  e 
)
inlineprivate
override void IG.Forms.CompilerForm.Dispose ( bool  disposing)
inlineprotected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.
void IG.Forms.CompilerForm.InitializeComponent ( )
inlineprivate

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

Member Data Documentation

RuntimeCompiler IG.Forms.CompilerForm.Compiler = new RuntimeCompiler()
protected
ReporterConsoleMsgbox IG.Forms.CompilerForm.Reporter = new ReporterConsoleMsgbox()
Logger IG.Forms.CompilerForm._logger = null
private
string IG.Forms.CompilerForm._filePath = "../../testdata/"
private
bool IG.Forms.CompilerForm._fileChosen = false
private
System.ComponentModel.IContainer IG.Forms.CompilerForm.components = null
private

Required designer variable.

System.Windows.Forms.RichTextBox IG.Forms.CompilerForm.rtfCode
private
System.Windows.Forms.Button IG.Forms.CompilerForm.btnLoad
private
System.Windows.Forms.Button IG.Forms.CompilerForm.btnCompile
private
System.Windows.Forms.Button IG.Forms.CompilerForm.btnExecute
private
System.Windows.Forms.Button IG.Forms.CompilerForm.btnQuit
private
System.Windows.Forms.Button IG.Forms.CompilerForm.btnLoadFromFile
private

Property Documentation

Logger IG.Forms.CompilerForm.Logger
getprotected

Gets compiler's logger.


The documentation for this class was generated from the following files: