예제 #1
0
        private void Execute(string parameter, EditButton editbtn)
        {
            OnBeforeExecute();

            if (commandName != null && !commandName.StartsWith("EditButton"))
            {
                frmBase form = (frmBase)this.FindForm();
                form.ExecuteCommand(commandName);
            }
            else
            if (Utility.EditButtonCommands != null && Utility.EditButtonCommands.Count > 0)
            {
                Utility.EditButtonCommands[commandName].Execute(this);
            }
            OnAfterExecute();
        }
예제 #2
0
        private void Execute(string parameter, EditButton editbtn)
        {
            OnBeforeExecute();

            if (commandName!=null &&!commandName.StartsWith("EditButton"))
            {
                frmBase form = (frmBase)this.FindForm();
                form.ExecuteCommand(commandName);
            }
            else
                if (Utility.EditButtonCommands != null && Utility.EditButtonCommands.Count>0)
                    Utility.EditButtonCommands[commandName].Execute(this);
            OnAfterExecute();
        }