private void FixupAPP_MENU(APP_MENU previousValue) { if (previousValue != null && previousValue.APP_ROL_MENU.Contains(this)) { previousValue.APP_ROL_MENU.Remove(this); } if (APP_MENU != null) { if (!APP_MENU.APP_ROL_MENU.Contains(this)) { APP_MENU.APP_ROL_MENU.Add(this); } if (IdMenu != APP_MENU.IdMenu) { IdMenu = APP_MENU.IdMenu; } } }
private void FixupAPP_MENU2(APP_MENU previousValue) { if (previousValue != null && previousValue.APP_MENU1.Contains(this)) { previousValue.APP_MENU1.Remove(this); } if (APP_MENU2 != null) { if (!APP_MENU2.APP_MENU1.Contains(this)) { APP_MENU2.APP_MENU1.Add(this); } if (IdMenuParent != APP_MENU2.IdMenu) { IdMenuParent = APP_MENU2.IdMenu; } } else if (!_settingFK) { IdMenuParent = null; } }