protected void OnStatusPublishModel(object sender, EventArgs e) { MenuCommand cmd = sender as MenuCommand; PublishModelCommand command = SingleSelection == null || CurrentDocData == null ? new PublishModelCommand(this.ServiceProvider) : new PublishModelCommand(SingleSelection, CurrentDocData.FileName); cmd.Enabled = cmd.Visible = command.Visible(); }
protected void OnPublishModel(object sender, EventArgs e) { PublishModelCommand command = SingleSelection == null || CurrentDocData == null ? new PublishModelCommand(this.ServiceProvider) : new PublishModelCommand(SingleSelection, CurrentDocData.FileName); command.Exec(); }