protected void OnStatusShowStrategies(object sender, EventArgs e) { MenuCommand cmd = sender as MenuCommand; if (this.CurrentDocView.PrimarySelection != null) { ShowStrategiesCommand command = new ShowStrategiesCommand(CandleModel.GetInstance(this.CurrentCandleDocData.Store).SoftwareComponent, this.CurrentDocView.PrimarySelection, this.CurrentDocData.FileName); cmd.Visible = command.Visible(); cmd.Enabled = command.Enabled; return; } cmd.Enabled = cmd.Visible = false; }
protected void OnShowStrategies(object sender, EventArgs e) { ShowStrategiesCommand command = new ShowStrategiesCommand(CandleModel.GetInstance(this.CurrentCandleDocData.Store).SoftwareComponent, this.CurrentDocView.PrimarySelection, this.CurrentDocData.FileName); command.Exec(); }