コード例 #1
0
		public void ShowFullScreen()
		{
			if (CanStartFull()){
				m_ImageF  = new frmImage(0, 0, WinType.full, _il);
				m_ImageF.SelfChanged += new HandleSelfChange(HandleSelf);         // send event for full screen close
				m_ImageF.PicLoadPos(_currentPath, false);
				m_ImageF.Show();
				m_ImageF.BringToFront();
				//??SetCommand('y', _currentPath);
			}
			if (_wType == WinType.full) {
				Debug.WriteLine("close full " + _currentPath);
				SetSelf(_currentPath);     // handled by HandleSelf
				this.Close();
			}
		}
コード例 #2
0
		//------------------------------   2nd screen    ----------------------------------------------------------

		public void Start2ndScreen()
		{
			string prPath = _priorPath;
			if (prPath == ""){
				prPath = _currentPath;
			}

			if (CanStart2nd()){
				m_Image2  = new frmImage(0, 0, WinType.second, _il);
				m_Image2.PicLoadPos(prPath, false);
				m_Image2.Show();

			}
			else {    // img to foreground
				if (CanShow2nd()){
					m_Image2.BringToFront();
				}
			}
		}