Exemple #1
0
        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();
            }
        }
Exemple #3
0
        protected void OnShowDocumentation(object sender, EventArgs e)
        {
            ShowDocumentationCommand cmd = new ShowDocumentationCommand(SingleSelection);

            cmd.Exec();
        }