コード例 #1
0
ファイル: RunPowerPoint.xaml.cs プロジェクト: heinzsack/DEV
		private int SetParameterForActuallProgrammUnit (WPMediaStandbildPlayingData StandBildPlayingData)
			{
			WPMediaRandomController RandomController = CommonDataBase.CommonBasics.GetWPMediaObject
									(StandBildPlayingData.TableName + "_Randomizer") as
													   WPMediaRandomController;
			if (RandomController == null)
				{
				RandomController = new WPMediaRandomController ();
				CommonDataBase.CommonBasics.SetWPMediaObject (StandBildPlayingData.TableName + "_Randomizer", RandomController);
				}
//			RandomController.FillIndexIndizess (StandBildPlayingData);
			PresentationsToPlayFromNow = StandBildPlayingData.GetNumberOfPagesOfIndexedEntries ();
			StandBildPlayingData.IndexToFileIndexToPlay = 0;
			m_SetupThePlayablePresentationsReturn = SetUpThePlayableFile ();
			if (!m_SetupThePlayablePresentationsReturn)
				{
				StandBildPlayingData.OutputDiagnostics ("SetParameterForActuallProgrammUnit (PowerPoint)");
				}
			return PresentationsToPlayFromNow;
			}
コード例 #2
0
ファイル: StandBildTV.xaml.cs プロジェクト: heinzsack/DEV
		private void SetParameterForFirstPlayableFile (WPMediaStandbildPlayingData StandBildPlayingData)
			{
			if (StandBildPlayingData.TableName != WMB.Basics.Type_MultipleTable)
				{
				if (m_StandBildPlayingData.TableDefinitionTable != null)
					{
					LoadFadingParameter (m_StandBildPlayingData.TableDefinitionTable.Rows [0] ["SerienWechselFadings"].ToString (),
										 m_StandBildPlayingData.TableDefinitionTable.Rows [0] ["BildWechselFadings"].ToString ());
					TimingTypeForAllEntries = m_StandBildPlayingData.TableDefinitionTable.Rows[0]["EntryTimingType"].ToString();
					PlayingOrderForAllEntries = m_StandBildPlayingData.TableDefinitionTable.Rows[0]["PlayingOrder"].ToString();
					}
				WPMediaRandomController RandomController = CommonDataBase.CommonBasics.GetWPMediaObject
															   (StandBildPlayingData.TableName + "_Randomizer") as
														   WPMediaRandomController;
				if (RandomController == null)
					{
					RandomController = new WPMediaRandomController ();
					CommonDataBase.CommonBasics.SetWPMediaObject (StandBildPlayingData.TableName + "_Randomizer", RandomController);
					}
//				RandomController.FillIndexIndizess (StandBildPlayingData);
				RandomController.ShowNamesOfSortedActiveDescriptions(StandBildPlayingData, "SetParameterForFirstPlayableFile");
				}
			else
				{
				StandBildPlayingData.CorrectPagePlayingDurations (SchedulingDefinedOverallTimeSpan);
				}
			PicturesToPlayFromNow = StandBildPlayingData.GetNumberOfPagesOfIndexedEntries ();
			StandBildPlayingData.IndexToFileIndexToPlay = 0;
			if (GetLastProgressInfoCall != null)
				{
				List<String> Rememberables = GetLastProgressInfoCall (this);
				if (StandBildPlayingData.TableDefinitionTable != null)
					{
					if (StandBildPlayingData.TableDefinitionTable == null)
						{
						WMB.Basics.ReportErrorToEventViewer ("StandBildPlayingData.TableDefinitionTable == null");
						throw new Exception ("StandBildPlayingData.TableDefinitionTable == null");
						}
					if ((StandBildPlayingData.TableDefinitionTable.Rows [0] ["EntryTimingType"].ToString () != "Fix")
					    &&
					    (StandBildPlayingData.TableDefinitionTable.Rows [0] ["EntryTimingType"].ToString () !=
					     "MeaningOfOutsideSetDuration"))
						{
						if (!String.IsNullOrEmpty (Rememberables [0]))
							StandBildPlayingData.IndexToFileIndexToPlay = Convert.ToInt32 (Rememberables [0]);
						if ((Rememberables.Count > 1)
						    && (!String.IsNullOrEmpty (Rememberables [1])))
							PageIndexToProcessAfterRestart = Convert.ToInt32 (Rememberables [1]);
						else
							PageIndexToProcessAfterRestart = -1;
						}
					}
				}

			List<String> NewStartupEntries = new List<string>();
			NewStartupEntries.Add("-1");
			NewStartupEntries.Add("-1");
			NewStartupEntries.Add("-1");
			if (SetProgressInfoCall != null)
				SetProgressInfoCall(this, NewStartupEntries);

			
			m_ReturnOfTheLastSetUpThePlayablePackage = SetUpOnePlayablePackageFile ();
			while (!m_ReturnOfTheLastSetUpThePlayablePackage)
				{
				ActuallyNotAvailableFiles.Add(StandBildPlayingData.IndexToFileIndexToPlay);
				StandBildPlayingData.OutputDiagnostics ("SetParameterForFirstPlayableFile");
				ShowErrornousCallingParameter ("SetParameterForFirstPlayableFile");
				StandBildPlayingData.IndexToFileIndexToPlay++;
				PageIndexToProcessAfterRestart = -1;
				if (StandBildPlayingData.IsFileIndexToPlayCorrect(SchedulingDefinedStopDateTime))
					m_ReturnOfTheLastSetUpThePlayablePackage = SetUpOnePlayablePackageFile ();
				else
					break;
				}
			}