function GetMainForm: TMainForm;
Returns the MainForm support object, or raises an internal error if the object has not yet been created.
MainForm