public override void Undo()
{
try
{
switch (this.commandType)
{
case ModuleCommandType.Add:
this.ExecuteRemove(this.service);
break;
case ModuleCommandType.Modify:
this.ExecuteModify(this.newServiceSettings, this.service);
break;
case ModuleCommandType.Remove:
this.ExecuteAdd(this.service);
break;
default:
throw ExceptionHelper.GetModuleException("ID400019", null, null);
}
}
catch (Exception e)
{
this.HandleException(e);
}
}