private bool ProcessMyDefaultFillings(DefaultFillings.RunWhen RunWhenParameter) { if (DataModell.DefaultFillingsCacheInstance.AvailableDefaultFillingsPerDataDependency .ContainsKey ((Guid) DataDependencyID)) { foreach (DefaultFillings Filling in DataModell.DefaultFillingsCacheInstance.AvailableDefaultFillingsPerDataDependency [(Guid) DataDependencyID]) { if ((Filling.FullDataDependencyID == DataDependencyID) && (Filling.DefaultRunWhenProperty == RunWhenParameter)) { if (Filling.TriggeredByFullDataDependencyID == DataDependencyID) return ProcessSingleEntryFilling (Filling, DataModell.ActiveInformationen, null); } } } return true; }
private bool ProcessSingleEntryFilling (DefaultFillings Filling, Informationen Info, InformationenAddOn SourceInfoAddOn) { switch (Filling.ContentTypProperty) { case DefaultFillings.ContentTyp.BannerConnector: DoConnectorDefaults("Banner", "BannerData", "WPMediaAddOnDataConnectionString"); break; case DefaultFillings.ContentTyp.StandBildConnector: DoConnectorDefaults("StandBild", "WohnParkInfo", "WPMediaAddOnDataConnectionString"); break; case DefaultFillings.ContentTyp.BerichtConnector: DoConnectorDefaults("StandBild", "LiesingInfo", "WPMediaAddOnDataConnectionString"); break; case DefaultFillings.ContentTyp.BannerTiming: DoTimingsDefault("BannerVonBis", -3, SourceInfoAddOn); break; case DefaultFillings.ContentTyp.StandBildTiming: DoTimingsDefault("AnzVonBis", -14, SourceInfoAddOn); break; case DefaultFillings.ContentTyp.BerichtStandBildTiming: DoTimingsDefault("AnzVonBis", -14, SourceInfoAddOn); break; case DefaultFillings.ContentTyp.EventTimings: DoEventTimingsDefault ("EventVonBis", 0); break; case DefaultFillings.ContentTyp.BerichtTimings: DoBerichtTimingsDefault ("AktivVonBis", 14); break; } return true; }
private bool ProcessMyTriggeredDefaultFillings(DefaultFillings.RunWhen RunWhenParameter) { foreach (Guid RunningDataDependencyID in DataModell.DefaultFillingsCacheInstance .AvailableDefaultFillingsPerDataDependency.Keys) { foreach (DefaultFillings Filling in DataModell.DefaultFillingsCacheInstance.AvailableDefaultFillingsPerDataDependency[RunningDataDependencyID]) { if ((Filling.TriggeredByFullDataDependencyID == DataDependencyID) && (Filling.TriggeredByFullDataDependencyID != Filling.FullDataDependencyID)) { foreach (InformationenAddOn TriggerEntry in DataModell.ActiveInformationen.ConnectedInformationenAddOn) { if (TriggerEntry.DataDependencyID == Filling.FullDataDependencyID) TriggerEntry.ProcessSingleEntryFilling(Filling, DataModell.ActiveInformationen, this); } } } } return true; }