コード例 #1
0
ファイル: CommandSet.cs プロジェクト: malain/candle
        protected void OnStatusShowProperties(object sender, EventArgs e)
        {
            MenuCommand cmd = sender as MenuCommand;

            if (this.SingleSelection != null)
            {
                ShowPropertiesCommand command = new ShowPropertiesCommand(SingleSelection);
                cmd.Visible = command.Visible();
                cmd.Enabled = command.Enabled;
                return;
            }
            cmd.Enabled = cmd.Visible = false;
        }
コード例 #2
0
ファイル: CommandSet.cs プロジェクト: malain/candle
        protected void OnShowProperties(object sender, EventArgs e)
        {
            ShowPropertiesCommand command = new ShowPropertiesCommand(SingleSelection);

            command.Exec();
        }