Esempio n. 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();
        }
Esempio n. 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();
        }