Maxima Plugin
A SMath Plugin
Loading...
Searching...
No Matches
MaximaPlugin.MForms.SettingsForm Class Reference

Protected Member Functions

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

Private Member Functions

void SettingsForm_Load (object sender, EventArgs e)
 Create maxima session if not available and set the PathTB to the path of the maxima if available More...
 
void SettingsForm_Close (object sender, FormClosingEventArgs e)
 When form is closed, reset the variable More...
 
void SaveButton_Click (object sender, EventArgs e)
 Check if the path given by user contain a valid maxima.bat file. More...
 
void SearchButton_Click (object sender, EventArgs e)
 Open a folder browser dialog to search for maxima.bat path More...
 
void InstallButton_Click (object sender, EventArgs e)
 Opens installer form More...
 
void CancelButton_Click (object sender, EventArgs e)
 Close the form More...
 
async void SetMaximaVersionInformation ()
 Set the Maxima version information from the label Get the latest Maxima version from internet Find the current version installed - if not in C then find the xml file. If no XML file then None
 
void InitializeComponent ()
 Required method for Designer support - do not modify the contents of this method with the code editor.
 

Static Private Member Functions

static string CheckMaximaAvailable ()
 check for maxima in C drive More...
 
static string ExtractMaximaVersion (string input)
 Extract Maxima version from input string More...
 
static string FindPathToMaximaInXML (string filePath)
 Check for Maxima path in config file More...
 

Private Attributes

System.ComponentModel.IContainer components = null
 Required designer variable.
 
System.Windows.Forms.GroupBox groupBox1
 
System.Windows.Forms.Label label1
 
System.Windows.Forms.CheckedListBox checkedListBox1
 
System.Windows.Forms.TextBox textBox1
 
System.Windows.Forms.TextBox PathTB
 
System.Windows.Forms.GroupBox groupBox2
 
System.Windows.Forms.Button SaveButton
 
System.Windows.Forms.Label label2
 
System.Windows.Forms.Button SearchButton
 
System.Windows.Forms.Button CancelButton
 
System.Windows.Forms.GroupBox InstallGroupBox
 
System.Windows.Forms.Button InstallButton
 
System.Windows.Forms.Label label5
 
System.Windows.Forms.Label LocVerLabel
 
System.Windows.Forms.Label InstVerLabel
 
System.Windows.Forms.Label label4
 
System.Windows.Forms.Label label3
 

Member Function Documentation

◆ CancelButton_Click()

void MaximaPlugin.MForms.SettingsForm.CancelButton_Click ( object  sender,
EventArgs  e 
)
private

Close the form

Parameters
sender
e

◆ CheckMaximaAvailable()

static string MaximaPlugin.MForms.SettingsForm.CheckMaximaAvailable ( )
staticprivate

check for maxima in C drive

Returns

◆ Dispose()

override void MaximaPlugin.MForms.SettingsForm.Dispose ( bool  disposing)
protected

Clean up any resources being used.

Parameters
disposingtrue if managed resources should be disposed; otherwise, false.

◆ ExtractMaximaVersion()

static string MaximaPlugin.MForms.SettingsForm.ExtractMaximaVersion ( string  input)
staticprivate

Extract Maxima version from input string

Parameters
input
Returns

◆ FindPathToMaximaInXML()

static string MaximaPlugin.MForms.SettingsForm.FindPathToMaximaInXML ( string  filePath)
staticprivate

Check for Maxima path in config file

Parameters
filePath
Returns

◆ InstallButton_Click()

void MaximaPlugin.MForms.SettingsForm.InstallButton_Click ( object  sender,
EventArgs  e 
)
private

Opens installer form

Parameters
sender
e

◆ SaveButton_Click()

void MaximaPlugin.MForms.SettingsForm.SaveButton_Click ( object  sender,
EventArgs  e 
)
private

Check if the path given by user contain a valid maxima.bat file.

Parameters
sender
e

◆ SearchButton_Click()

void MaximaPlugin.MForms.SettingsForm.SearchButton_Click ( object  sender,
EventArgs  e 
)
private

Open a folder browser dialog to search for maxima.bat path

Parameters
sender
e

◆ SettingsForm_Close()

void MaximaPlugin.MForms.SettingsForm.SettingsForm_Close ( object  sender,
FormClosingEventArgs  e 
)
private

When form is closed, reset the variable

Parameters
sender
e

◆ SettingsForm_Load()

void MaximaPlugin.MForms.SettingsForm.SettingsForm_Load ( object  sender,
EventArgs  e 
)
private

Create maxima session if not available and set the PathTB to the path of the maxima if available

Parameters
sender
e

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