protected void OnStatusPropagateOperations(object sender, EventArgs e) { MenuCommand cmd = sender as MenuCommand; PropagatesOperationsCommand command = new PropagatesOperationsCommand(SingleSelection); cmd.Enabled = command.Enabled; cmd.Visible = command.Visible(); }
protected void OnPropagateOperations(object sender, EventArgs e) { PropagatesOperationsCommand cmd = new PropagatesOperationsCommand(SingleSelection); cmd.Exec(); }