Пример #1
0
		private bool StartPlayableEntry (ManagedProgrammData ProgrammData, DataRow ActuallRowToStart)
			{
			NameValueCollection ControlInformations = ProgrammData.GetPlayableControlInformations (ActuallRowToStart);
			if (ControlInformations == null)
				{
				WMB.Basics.ReportErrorToEventViewer ("PlayingDataPlayer.StartPlayableEntry",
					"Der Beitrag \"" + ActuallRowToStart ["Name"].ToString () + "\" mit der ID \""
					+ ActuallRowToStart ["ConnectedID"].ToString () + "\" und dem Typ \""
					+ ActuallRowToStart ["ConnectedIDTyp"].ToString () + "\" konnte nicht gestared werden");
				return false;
				
				}
			String ProcessorName = ControlInformations [ManagedProgrammData.Param_ProcessorFileName];
			ControlInformations.Add (CVM.CommonValues.WPMEDIA_STOP_TIME_PARAMETER.Replace ("/", "").Replace ("=", ""),
								ActuallRowToStart ["BisTime"].ToString ());
			ControlInformations.Add (ManagedProgrammData.Param_OrderNumber, ActuallRowToStart ["OrderNumber"].ToString ());
			if (m_CVM.UseTestTime == true)
				{
				m_CVM.AddTestTimeControlInformations (ControlInformations);
				
				}
			List<String> ParameterEntries = ProgrammData.CreateParameterList (ControlInformations);

			String Parameter = String.Join (" ", ParameterEntries.ToArray ());


			try
				{
				StartPlayerProgramm (ProcessorName, Parameter);
				}
			catch (Exception Excp)
				{
				WMB.Basics.ReportErrorToEventViewer ("PlayingDataPlayer.StartPlayableEntry",
					"Der Beitrag \"" + ActuallRowToStart ["Name"].ToString () + "\" mit der ID \""
					+ ActuallRowToStart ["ConnectedID"].ToString () + "\" und dem Typ \""
					+ ActuallRowToStart ["ConnectedIDTyp"].ToString () + "\" brachte folgene Exception:\r\n"
					+ Excp.ToString());
				} 
			return true;
			}