Exemplo n.º 1
0
        /// <summary>
        /// Handles the Click event of the getLastVersionMenuItem 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 getLastVersionMenuItem_Click(object sender, EventArgs e)
        {
            TreeNode node = _treeCtrl.SelectedNode;
            ComponentModelMetadata metaData = GetSelectedData();
            GetLastVersionCommand  command  = new GetLastVersionCommand(metaData, true);

            command.Exec();
            if (node != null)
            {
                node.EnsureVisible();
            }
        }
Exemplo n.º 2
0
        protected void OnGetLastVersion(object sender, EventArgs e)
        {
            GetLastVersionCommand command = new GetLastVersionCommand(SingleSelection);

            command.Exec();
        }