C# Class UICommons.AddinSettingsForm

显示文件 Open project: xwiki-contrib/xwiki-office Class Usage Examples

Public Properties

Property Type Description
IsShown bool
OnApply EventHandler
OnCancel EventHandler
OnFormLoad EventHandler
OnOK EventHandler
OnProtocolChange EventHandler
txtPrefetchInterval System.Windows.Forms.TextBox
txtPrefetchPagesSetSize System.Windows.Forms.TextBox

Public Methods

Method Description
AddinSettingsForm ( ) : System

Default constructor. Initializes all components.

ValidatePath ( String path ) : bool

Checks if a path is valid

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddinSettingsForm_FormClosed ( object sender, FormClosedEventArgs e ) : void
AddinSettingsForm_Shown ( object sender, EventArgs e ) : void
ConnectionSettingsForm_Load ( object sender, EventArgs e ) : void

Event that is automatically triggered the Form is loading.

InitializeComponent ( ) : void

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

PrefechSettingChanged ( object sender, EventArgs e ) : void
ValidateURL ( String url ) : bool

Checks if a url is valid.

anyRepoSettingChanged_TextChanged ( object sender, EventArgs e ) : void

Event triggered when a repository setting is changed.

btnApply_Click ( object sender, EventArgs e ) : void

Event triggered when the "Apply" button is clicked.

btnAttachmentsRepo_Click ( object sender, EventArgs e ) : void

Event triggered when the select downloaded attachments repository is clicked.

btnCancel_Click ( object sender, EventArgs e ) : void

Event triggered when the "Cancel button is pressed.

btnOK_Click ( object sender, EventArgs e ) : void

Event triggered when the OK button is pressed.

btnPagesRepo_Click ( object sender, EventArgs e ) : void

Event triggered when the select pages repository is clicked.

comboProtocol_SelectedIndexChanged ( object sender, EventArgs e ) : void
linkConnectDoc_LinkClicked ( object sender, LinkLabelLinkClickedEventArgs e ) : void
txtAnyConnectionSetting_TextChanged ( object sender, EventArgs e ) : void

Event triggered when a connection setting is changed.

txtAttachmentsRepo_Leave ( object sender, EventArgs e ) : void

Event triggered when the textbox loses the focus.

txtPagesRepo_Leave ( object sender, EventArgs e ) : void

Event triggered when the textbox loses the focus.

Method Details

AddinSettingsForm() public method

Default constructor. Initializes all components.
public AddinSettingsForm ( ) : System
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

ValidatePath() public method

Checks if a path is valid
public ValidatePath ( String path ) : bool
path String The value of the path.
return bool

Property Details

IsShown public_oe static_oe property

Specifies if at least an instance of the form is visible.
public static bool IsShown
return bool

OnApply public_oe property

Actions to perform when applying settings.
public EventHandler OnApply
return EventHandler

OnCancel public_oe property

Actions to perform on canceling settings.
public EventHandler OnCancel
return EventHandler

OnFormLoad public_oe property

Actions to perform when on form load.
public EventHandler OnFormLoad
return EventHandler

OnOK public_oe property

Actions to perform when OK button was pressed.
public EventHandler OnOK
return EventHandler

OnProtocolChange public_oe property

Actions to perform when user changes the protocol.
public EventHandler OnProtocolChange
return EventHandler

txtPrefetchInterval public_oe property

public System.Windows.Forms.TextBox txtPrefetchInterval
return System.Windows.Forms.TextBox

txtPrefetchPagesSetSize public_oe property

public System.Windows.Forms.TextBox txtPrefetchPagesSetSize
return System.Windows.Forms.TextBox