protected void OnStatusShowDocumentation(object sender, EventArgs e) { MenuCommand cmd = sender as MenuCommand; ShowDocumentationCommand command = new ShowDocumentationCommand(SingleSelection); cmd.Enabled = command.Enabled; cmd.Visible = command.Visible(); }
/// <summary> /// Handles the Click event of the showDocumentation control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void showDocumentation_Click(object sender, EventArgs e) { ComponentModelMetadata item = GetSelectedData(); ShowDocumentationCommand cmd = new ShowDocumentationCommand(item); if (cmd.Enabled) { cmd.Exec(); } }
protected void OnShowDocumentation(object sender, EventArgs e) { ShowDocumentationCommand cmd = new ShowDocumentationCommand(SingleSelection); cmd.Exec(); }