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