Beispiel #1
0
		/////////////////////////////////////////////////////////////////////////////
		private void Page_Loaded(object sender, EventArgs args)
		{
//j			WebResources.DownloadUsers();
//j			WebResources.DownloadAccounts();
			WebResources.DownloadLayouts();
			WebResources.DownloadCovers();
			WebResources.DownloadBackgrounds();
			WebResources.DownloadCorners();
			WebResources.DownloadPhotos();
			MouseMove += WebResourcesCheck;

			m_DocumentHolder = new DocumentHolder();
//j			x_AccountsPanel.InitDocumentListener(m_DocumentHolder);
//j			x_ToolsPanel.InitDocumentListener(m_DocumentHolder);
			x_LayoutsPanel.InitDocumentListener(m_DocumentHolder);
			x_CoversPanel.InitDocumentListener(m_DocumentHolder);
			x_BackgroundsPanel.InitDocumentListener(m_DocumentHolder);
			x_CornersPanel.InitDocumentListener(m_DocumentHolder);
			x_PhotosPanel.InitDocumentListener(m_DocumentHolder);
//j			x_AdsPanel.InitDocumentListener(m_DocumentHolder);
//j			x_MainPanel.InitDocumentListener(m_DocumentHolder);
//j			x_PropertiesPanel.InitDocumentListener(m_DocumentHolder);

			// Initialize drag and drop
			m_DragDrop = new DragDrop();
			m_DragDrop.Init();
//j			m_DragDrop.AddTarget(x_MainPanel);
//j			m_DragDrop.DropTargetListeners += x_MainPanel.DropTarget;

			// Handle resizing
			Application.Current.Host.Content.Resized += BrowserHost_Resized;
			Resize();
			
			// Initialize the static scroll viewer mouse wheel support class
			ScrollViewerMouseWheelSupport.Initialize(App.PageProp, MouseWheelAssociationMode.OnHover);
			SliderMouseWheelSupport.Initialize(App.PageProp, MouseWheelAssociationMode.OnHover);

			// Register a single scroll viewer
			x_LayoutsScrollViewer.AddMouseWheelSupport();
		}
Beispiel #2
0
		/////////////////////////////////////////////////////////////////////////////
		public virtual void InitDocumentListener(DocumentHolder documentHolder)
		{
			// Set the view event listeners
			documentHolder.CloseListeners += DocumentClose;
			documentHolder.ChangeListeners += DocumentChange;
		}
Beispiel #3
0
		/////////////////////////////////////////////////////////////////////////////
		public Document(DocumentHolder documentHolder)
		{
			m_DocumentHolder = documentHolder;
			m_DocType = DOCTYPE_FF;
			m_DocVersion = DOC_VERSION;
			m_strFullDocPath = null;
			m_Accounts = new List<Account>();
			m_TransactionLogAccounts = new List<Account>();
			m_TransactionEvents = new List<TransactionOccurs>();
			m_lStartDate = DateTime.Today.ToJulian();
			m_lEndDate = DateTime.Today.ToJulian();
			m_bModified = false;
			m_lCurrentDate = 0;
		}
Beispiel #4
0
		public override void InitDocumentListener(DocumentHolder documentHolder)
		{
			base.InitDocumentListener(documentHolder);
		}
Beispiel #5
0
		public override void InitDocumentListener(DocumentHolder documentHolder)
		{
			base.InitDocumentListener(documentHolder);
			m_PhotosIconPanel = App.PageProp.FindName("x_PhotosIconPanel") as Panel;
		}
Beispiel #6
0
		/////////////////////////////////////////////////////////////////////////////
		public override void InitDocumentListener(DocumentHolder documentHolder)
		{
			base.InitDocumentListener(documentHolder);
//j			m_AccountsTextBlock = FindName("x_AccountsTextBlock") as TextBlock;
		}