Example #1
0
		bool RunWPMediaPublisher ()
			{
			PublishAltErlaaInfo WPMediaPublisher = new PublishAltErlaaInfo();

			WPMediaPublisher.CloseRequestedCall += new WMB.CloseRequested(Publisher_CloseRequestedCall);

			if (WMB.Basics.IsTestRun)
				WMB.Basics.ReportInformationToEventViewer("WPMediaGoogleCalendarUpdate.MainWindow",
					"Vor Read StartDateTime WordUp");

			int NumberOfProcessed = WPMediaPublisher.RunPublishAltErlaaInfo ();
			if (NumberOfProcessed < 0)
				return false;
			return true;
			}
Example #2
0
		private bool RunWPMediaCleanUp()
			{
			try
				{
				PublishAltErlaaInfo WPMediaCleanUp = new PublishAltErlaaInfo();
				if (WMB.Basics.IsTestRun)
					WMB.Basics.ReportInformationToEventViewer("WPMediaGoogleCalendarUpdate.MainWindow",
																"Vor WPMediaCleanUp");
				return WPMediaCleanUp.CleanupWPMediaCalendar();
				}
			catch (Exception Excp)
				{
				WMB.Basics.ReportErrorToEventViewer("WPMediaGoogleCalendarUpdate.MainWindow",
																"Fehler bei WPMediaCleanUp\r\n" + Excp.ToString ());
				}
			return false;
			}
Example #3
0
		void RunWordUpPublisher()
			{
			PublishAltErlaaInfo WordUpPublisher = new PublishAltErlaaInfo ();

			WordUpPublisher.CloseRequestedCall += new WMB.CloseRequested (Publisher_CloseRequestedCall);

			if (WMB.Basics.IsTestRun)
				WMB.Basics.ReportInformationToEventViewer ("WPMediaGoogleCalendarUpdate.MainWindow",
															"Vor Read StartDateTime WordUp");
			WordUpPublisher.RunPublishWordUpCalendar ();
			}