public ManagedProgrammData LoadProgrammData (String ProgrammDataSetFileName) { if (!File.Exists (ProgrammDataSetFileName)) return null; m_ProgrammData = WMB.Basics.DeSerializeObjectFromFile (ProgrammDataSetFileName) as ManagedProgrammData; if (m_ProgrammData == null) { WMB.Basics.ReportErrorToEventViewer ("ManagedProgrammManagement.LoadProgrammData", "Der ProgrammDataSetFileName\r\n\"" + ProgrammDataSetFileName + "\\r\nkann nicht geladen werden"); return null; } if (m_ProgrammData.IAmCorrect ()) return m_ProgrammData; WMB.Basics.ReportErrorToEventViewer ("ManagedProgrammManagement.LoadProgrammData", "Das ProgrammDataSet aus dem ProgrammDataSetFileName\r\n\"" + ProgrammDataSetFileName + "\\r\nist nicht korekt"); return null; }