public static bool Push( this evolib.Databases.common1.OpsNotice rec, PopupDesc popupDesc ) { var edited = rec.Push((CommonDesc)popupDesc) || (rec.enabledEnglish && rec.titleEnglish != popupDesc.titleEnglish) || (rec.enabledFrench && rec.titleFrench != popupDesc.titleFrench) || (rec.enabledGerman && rec.titleGerman != popupDesc.titleGerman) || (rec.enabledJapanese && rec.titleJapanese != popupDesc.titleJapanese); rec.optNoticeType = evolib.OptNoticeType.Popup; rec.titleEnglish = popupDesc.titleEnglish; rec.titleFrench = popupDesc.titleFrench; rec.titleGerman = popupDesc.titleGerman; rec.titleJapanese = popupDesc.titleJapanese; if (edited) { rec.version++; } return(edited); }
public static PopupDesc Pop( this evolib.Databases.common1.OpsNotice rec, PopupDesc popupDesc ) { rec.Pop((CommonDesc)popupDesc); popupDesc.titleEnglish = rec.titleEnglish; popupDesc.titleFrench = rec.titleFrench; popupDesc.titleGerman = rec.titleGerman; popupDesc.titleJapanese = rec.titleJapanese; return(popupDesc); }