コード例 #1
0
ファイル: ButtonWindow.xaml.cs プロジェクト: heinzsack/DEV
		void CreateNavigationWindow (NavigationWindowType NavigationType, String LinkData, double SecondsToBeAlive)
			{
			m_OverlayWindow = new FullNavigationWindow ();
			System.Drawing.Rectangle NavigationRectangle = CVM.CommonValues.NavigationWindowGeometry;
			m_OverlayWindow.Left = NavigationRectangle.Left;
			m_OverlayWindow.Top = NavigationRectangle.Top;
			m_OverlayWindow.Width = NavigationRectangle.Width;
			m_OverlayWindow.Height = NavigationRectangle.Height;
			m_OverlayWindow.Closed += new EventHandler (m_OverlayWindow_Closed);
			m_OverlayWindow.NavigationActivationEventHandler
				+= new FullNavigationWindow.NavigationActivationEvent (OverlayWindow_NavigationActivationEventHandler);
			m_OverlayWindow.ProlongateTheLifeTimeCall += new ProlongateTheLifeTime (m_OverlayWindow_ProlongateTheLifeTimeCall);
			m_OverlayWindow.SetParameter (m_CVM, m_Arguments, NavigationType, LinkData, SecondsToBeAlive, m_PrintQueueName);
			m_OverlayWindow.Show ();

			}
コード例 #2
0
ファイル: ButtonWindow.xaml.cs プロジェクト: heinzsack/DEV
		void m_ResetToProgrammLoopTimer_Tick (object sender, EventArgs e)
			{
			m_ResetToProgrammLoopTimer.Stop ();
			m_ResetToProgrammLoopTimer = null;
			if (m_CheckForChangedRootPageTimer != null)
				m_CheckForChangedRootPageTimer.Stop ();
			m_OverlayWindow.Hide ();
			m_OverlayWindow.Close ();
			m_OverlayWindow = null;
			}
コード例 #3
0
ファイル: ButtonWindow.xaml.cs プロジェクト: heinzsack/DEV
		private bool HandleWindowsTimingConsiderations (ButtonPageData ActiveButtonPage,
					XmlNode ButtonEntry, String LinkData, bool IsTheSameButton)
			{
			double Duration = GetPlayingDuration (ActiveButtonPage, ButtonEntry);
			if (IsTheSameButton)
				{
				if (m_ResetToProgrammLoopTimer != null)
					{
					m_ResetToProgrammLoopTimer.Stop ();
					m_ResetToProgrammLoopTimer.Interval = TimeSpan.FromSeconds (Duration);
					m_ResetToProgrammLoopTimer.Start ();
					m_OverlayWindow.Show ();
					return false;
					}
				}
			else
				{
				if (m_ResetToProgrammLoopTimer != null)
					{
					m_ResetToProgrammLoopTimer.Stop ();
					m_ResetToProgrammLoopTimer = null;
					}
				if (m_OverlayWindow != null)
					{
					m_OverlayWindow.Hide ();
					m_OverlayWindow.Close ();
					m_OverlayWindow = null;
					}
				}
			m_ResetToProgrammLoopTimer = new System.Windows.Threading.DispatcherTimer ();
			m_ResetToProgrammLoopTimer.Interval = TimeSpan.FromSeconds (Duration);
			m_ResetToProgrammLoopTimer.Tick += new EventHandler (m_ResetToProgrammLoopTimer_Tick);
			m_ResetToProgrammLoopTimer.Tag = ButtonEntry;
			return true;
			}