Exemple #1
0
        protected void OnStatusShowDataLayer(object sender, EventArgs e)
        {
            MenuCommand cmd = sender as MenuCommand;

            if (this.CurrentCandleDocView != null)
            {
                ShowDataLayerCommand command = new ShowDataLayerCommand(this.ServiceProvider, this.CurrentDocView.CurrentDiagram.ModelElement, this.CurrentDocView.CurrentDiagram);
                cmd.Enabled = cmd.Visible = command.Visible();
            }
            else
            {
                cmd.Enabled = cmd.Visible = false;
            }
        }
Exemple #2
0
        protected void OnShowDataLayer(object sender, EventArgs e)
        {
            ShowDataLayerCommand command = new ShowDataLayerCommand(this.ServiceProvider, this.CurrentDocView.CurrentDiagram.ModelElement, this.CurrentDocView.CurrentDiagram);

            command.Exec();
        }