C# Class UICommons.AddPageForm

Show file Open project: xwiki-contrib/xwiki-office Class Usage Examples

Public Properties

Property Type Description
OnAdd EventHandler

Public Methods

Method Description
AddPageForm ( Wiki &_wiki ) : System
AddPageForm ( Wiki &_wiki, String _spaceName ) : System
AddPageForm ( Wiki &_wiki, bool newSpace, bool _exportMode ) : System
comboBox1_SelectedIndexChanged ( object sender, EventArgs e ) : void

Sets the instance of the selected space when the combo box selection is changed

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddPageForm_Load ( object sender, EventArgs e ) : void

Event triggered when the form is loading.

InitializeComponent ( ) : void

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

LoadSpaces ( ) : void

Loads the spaces into the combo.

ValidateFormData ( ) : bool

Validates the data.

btnAddPage_Click ( object sender, EventArgs e ) : void

Event triggered when the "Add page" button is pressed.

btnCancel_Click ( object sender, EventArgs e ) : void

Closes the form.

radioButton1_CheckedChanged ( object sender, EventArgs e ) : void

Refreshes the UI to the coresponding option regarding the space.

Method Details

AddPageForm() public method

public AddPageForm ( Wiki &_wiki ) : System
_wiki Wiki A reference to the currently loaded wiki structure.
return System

AddPageForm() public method

public AddPageForm ( Wiki &_wiki, String _spaceName ) : System
_wiki Wiki A reference to the currently loaded wiki structure.
_spaceName String /// The default space name in which the new page will be created ///
return System

AddPageForm() public method

public AddPageForm ( Wiki &_wiki, bool newSpace, bool _exportMode ) : System
_wiki Wiki A reference to the currently loaded wiki structure.
newSpace bool Specifies if a new space will be created.
_exportMode bool /// Specifies if the form is used to assign an export destination /// for a document ///
return System

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

comboBox1_SelectedIndexChanged() public method

Sets the instance of the selected space when the combo box selection is changed
public comboBox1_SelectedIndexChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void

Property Details

OnAdd public property

public EventHandler OnAdd
return EventHandler