Example #1
0
        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();
        }
Example #2
0
        protected void OnPublishModel(object sender, EventArgs e)
        {
            PublishModelCommand command = SingleSelection == null || CurrentDocData == null ? new PublishModelCommand(this.ServiceProvider) : new PublishModelCommand(SingleSelection, CurrentDocData.FileName);

            command.Exec();
        }