protected void OnStatusImplementAll(object sender, EventArgs e) { MenuCommand cmd = sender as MenuCommand; GenerateAllCommand command = new GenerateAllCommand(this.ServiceProvider, CurrentDocData != null ? CurrentDocData.FileName : null); cmd.Enabled = cmd.Visible = command.Visible(); }
protected void OnImplementAll(object sender, EventArgs e) { GenerateAllCommand command = new GenerateAllCommand(this.ServiceProvider, CurrentDocData != null ? CurrentDocData.FileName : null); command.Exec(); }