Exemple #1
0
        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;
        }
Exemple #2
0
        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();
        }