protected void OnStatusShowProperties(object sender, EventArgs e) { MenuCommand cmd = sender as MenuCommand; if (this.SingleSelection != null) { ShowPropertiesCommand command = new ShowPropertiesCommand(SingleSelection); cmd.Visible = command.Visible(); cmd.Enabled = command.Enabled; return; } cmd.Enabled = cmd.Visible = false; }
protected void OnShowProperties(object sender, EventArgs e) { ShowPropertiesCommand command = new ShowPropertiesCommand(SingleSelection); command.Exec(); }