C# Class BitOrchestra.MainForm

The main form for the application.
Inheritance: System.Windows.Forms.Form, IDisposable
Show file Open project: dzamkov/Bit-Orchestra

Public Properties

Property Type Description
MessageBoxCaption string

Public Methods

Method Description
MainForm ( ) : System

Protected Methods

Method Description
OnClosing ( System e ) : void

Private Methods

Method Description
IDisposable ( ) : void
_CheckSaved ( ) : void

Checks if the work is saved and prompts the user to save it if not.

_CopyClick ( object sender, EventArgs e ) : void
_CutClick ( object sender, EventArgs e ) : void
_Export ( ) : void

Opens a save file dialog for exporting as a wave file.

_ExportClick ( object sender, EventArgs e ) : void
_Load ( ) : void

Opens an open file dialog for loading text.

_LoadClick ( object sender, EventArgs e ) : void
_Parse ( Expression &Expression, SoundOptions &Options ) : bool

Tries parsing the contents of this form, displaying the appropriate messages on failure.

_ParseSelected ( Expression &Expression, SoundOptions &Options ) : bool

Tries parsing the selected contents of this form, displaying the appropriate messages on failure.

_PasteClick ( object sender, EventArgs e ) : void
_Play ( ) : void

Plays the current contents of the form.

_Play ( Expression Expression, SoundOptions Options ) : void

Plays the given expression with the given options.

_PlayStopClick ( object sender, EventArgs e ) : void
_PlayThisClick ( object sender, EventArgs e ) : void
_Save ( ) : void

Opens a save file dialog for saving the current text.

_SaveClick ( object sender, EventArgs e ) : void
_TextChanged ( object sender, EventArgs e ) : void

Method Details

MainForm() public method

public MainForm ( ) : System
return System

OnClosing() protected method

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

Property Details

MessageBoxCaption public static property

The caption for message boxes created by this form.
public static string MessageBoxCaption
return string