Esempio n. 1
0
		//private bool CheckAndInformForIncompleteEntry (DataRow ActuallRow)
		//    {
		//    if (!GraphicsSingleton.Instance.GraphicsHandler.CheckForIncompleteEntry (ActuallRow))
		//        {
		//        MessageBox.Show ("Achtung, der zuletzt aktive Karteieintrag ist evt. nicht\r\n"
		//                        + "fertig bearbeitet. Sie haben möglicherweise einen\r\n"
		//                         + "neuen Eintrag angelegt, und diesen nicht ausgefüllt. Es kann\r\n"
		//                         + "auch sein, daß Sie gewünschte Änderungen nicht gespeichert\r\n"
		//                         + "haben (= nicht die \"Speichern\" - Taste gedrückt??).\r\n"
		//                         + "Bitte korrigieren Sie ggf. den Eintrag indem Sie mit der\r\n"
		//                        + "rechten Maustaste auf den zu ändenden Eintrag drücken.\r\n"
		//                        + "Wenn Sie eben das Programm schließen, oder die\r\n"
		//                        + "Kartei wechseln, sollten Sie nochmals einsteigen.");
		//        return false;
		//        }
		//    return true;
		//    }



		private void ProcessChangedEntry (String SelectedID)
			{
			PicturesTabControl.IsEnabled = false;
			if (m_ManagedTimingsControl != null)
				{
				m_ManagedTimingsControl.DoUpdateIfNeccessary ();
				m_ManagedTimingsControl.ConnectedID = SelectedID;
				}
			AvailableEntriesListBox.IsEnabled = false;
			GraphicsSingleton.Instance.CheckAndProcessPossibleChanges (DoCentralFileUpdateCall);
			if (String.IsNullOrEmpty (SelectedID))
				{
				PicturesTabControl.IsEnabled = true;
				AvailableEntriesListBox.IsEnabled = true;
				InsertFromTemplateButton.IsEnabled = true;
				GraphicsSingleton.Instance.RemoveAllGraphics ();
				return;
				}
			GraphicsSingleton.Instance.RemoveAllGraphics ();
			AvailableEntriesListBox.IsEnabled = false;
			GraphicsHandling LocalGraphicsHandling = new GraphicsHandling (WMB.Basics.GetLocalWPMediaRoot ());
			LocalGraphicsHandling.DoCentralStreamDownloadCall += new DoCentralStreamDownloadEvent
				(LocalGraphicsHandling_DoCentralStreamDownloadCall);
			LocalGraphicsHandling.DoSQLBatchCall += new DoSQLBatchEvent (LocalGraphicsHandling_DoSQLBatchCall);
			LocalGraphicsHandling.RemoteWPMediaRoot = WMB.Basics.GetRemoteWPMediaRoot();
			LocalGraphicsHandling.DoCentralFileDownloadCall += new DoCentralFileDownloadEvent
				(LocalGraphicsHandling_DoCentralFileDownloadCall);
			LocalGraphicsHandling.GetLastWriteTimeForServerFileCall += new WMB.GetLastWriteTimeForServerFileEvent
				(LocalGraphicsHandling_GetLastWriteTimeForServerFileCall);
			LocalGraphicsHandling.GetCroppedBitmapSourceCall += new GetCroppedBitmapSourceEvent (LocalGraphicsHandling_GetCroppedBitmapSourceCall);
			m_Pkg = LocalGraphicsHandling.CheckAndGetInstatiatedPackage (m_DataBase, TableToProcess, SelectedID) as PackagingHandler;
			if (m_Pkg == null)
				{
				AvailableEntriesListBox.IsEnabled = true;
				MessageBox.Show ("Fehler in der Definition der Tabelle\r\n\""
								 + TableToProcess + "\"\r\nes konnte kein Package erzeugt werden - Abbruch");
				LastSelectedTableRows = null;
				CloseRequestedCall (this, "FormatierDataSet Fehler bei \"" + TableToProcess + "\"");
				return ;
				}



			FillFinalPages (LocalGraphicsHandling);
			PicturesTabControl.IsEnabled = true;
			AvailableEntriesListBox.IsEnabled = true;
			InsertFromTemplateButton.IsEnabled = true;


			ShowFrameGeometryButton.IsEnabled = true;
			ShowFrameGeometryButton.Content = "Layout/Geometrie";
			FormatModified = true;
			}
Esempio n. 2
0
		private static String CheckLoadAndGetFileNameOfTemplate (String TableName, String TemplateID)
			{
			WCFStandards m_DataBase = new WCFStandards();
			m_DataBase.DefaultConnectionStringName = "WPMediaAddOnDataConnectionString";
			CVM.GraphicsHandling TemplateHelperGraphicsHandler = new GraphicsHandling (Basics.GetLocalWPMediaRoot ());
			TemplateHelperGraphicsHandler.RemoteWPMediaRoot = Basics.GetRemoteWPMediaRoot ();
			TemplateHelperGraphicsHandler.GetLastWriteTimeForServerFileCall +=
				new WMB.GetLastWriteTimeForServerFileEvent (GraphicsHandler_GetLastWriteTimeForServerFileCall);
			TemplateHelperGraphicsHandler.DoCentralFileDownloadCall += new WMB.DoCentralFileDownloadEvent (GraphicsHandler_DoCentralFileDownloadCall);
			TemplateHelperGraphicsHandler.DoCentralStreamDownloadCall +=new WMB.DoCentralStreamDownloadEvent(GraphicsHandler_DoCentralStreamDownloadCall);
			TemplateHelperGraphicsHandler.DoSQLBatchCall +=new DoSQLBatchEvent(GraphicsHandler_DoSQLBatchCall);
			TemplateHelperGraphicsHandler.CheckAndGetInstatiatedPackage (m_DataBase, TableName, TemplateID);
			return TemplateHelperGraphicsHandler.Close ();
			}