예제 #1
0
파일: App.xaml.cs 프로젝트: heinzsack/DEV
		private void Application_Startup (object sender, StartupEventArgs e)
			{
			m_CVM = new CVM.CommonValues ();
			m_Arguments = new String [e.Args.Length];
			for (int i = 0; i != e.Args.Length; ++i)
				{
				m_Arguments [i] = e.Args [i];
				}
			m_CVM.SetVideoSize (m_Arguments);
			Rectangle [] PhysicalDimensions = CVM.CommonValues.GetPhysicalScreenBounds ();
			Rectangle [] LogicalDimensions = CVM.CommonValues.ConvertPhysicalScreenBounds (PhysicalDimensions);
			System.Drawing.Rectangle VideoRect = m_CVM.GetVideoWindowGeometry ();
			int VideoWidth = VideoRect.Width;
			int VideoHeight = VideoRect.Height;
			int XPosition = VideoRect.X;
			int YPosition = VideoRect.Y;
			this.MainWindow = new Window1 ();


			((Window1)this.MainWindow).SetParameter (m_CVM, m_Arguments, VideoWidth, VideoHeight);

			this.MainWindow.Left = XPosition;
			this.MainWindow.Top = YPosition;
			this.MainWindow.Width = VideoWidth;
			this.MainWindow.Height = VideoHeight;
			this.MainWindow.Show ();

			}
예제 #2
0
파일: App.xaml.cs 프로젝트: heinzsack/DEV
		private void Application_Startup(object sender, StartupEventArgs e)
			{
			m_Arguments = new String [e.Args.Length];
			for (int i = 0; i != e.Args.Length; ++i)
				{
				m_Arguments [i] = e.Args [i];
				}
			m_CVM = new CVM.CommonValues ();
			m_CVM.SetVideoSize (m_Arguments);

			this.MainWindow = new TaskBarHiding ();
			this.MainWindow.Width = CVM.CommonValues.NavigationWindowGeometry.Width;
			this.MainWindow.MinWidth = CVM.CommonValues.NavigationWindowGeometry.Width;
			this.MainWindow.MaxWidth = CVM.CommonValues.NavigationWindowGeometry.Width;
			this.MainWindow.Left = CVM.CommonValues.NavigationWindowGeometry.X;
			this.MainWindow.Height = (int) CVM.CommonValues.TaskBarHeight;
			this.MainWindow.MinHeight = (int) CVM.CommonValues.TaskBarHeight;
			this.MainWindow.MaxHeight = (int) CVM.CommonValues.TaskBarHeight;

			this.MainWindow.Top = CVM.CommonValues.NavigationWindowGeometry.Height;
			this.MainWindow.LocationChanged += new EventHandler (MainWindow_LocationChanged);
			this.MainWindow.Topmost = true;
			((TaskBarHiding)this.MainWindow).SetParameter (m_CVM, m_Arguments);

			this.MainWindow.Show ();
			}