private void fullScreenToolStripMenuItem_Click(object sender, EventArgs e) { if (_FullScreen == null) { _FullScreen = new FullScreen(ApWin.OnlineClientForm); } if (fullScreenToolStripMenuItem.Checked == false) { // show FullScreen DialogResult dr = MessageForm.Confirm(this, MsgE.ConfirmStoreNormalView); if (dr == DialogResult.Yes) { _FullScreen.ShowFullScreen(); tableLayoutPanel1.Visible = false; statusStrip1.Visible = false; fullScreenToolStripMenuItem.Checked = true; } } else { // Hide FullScreen _FullScreen.ShowFullScreen(); tableLayoutPanel1.Visible = true; statusStrip1.Visible = true; fullScreenToolStripMenuItem.Checked = false; } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); fullScreen = new FullScreen(this); this.controlCtrl.PictureBox = this.zwPictureBox; this.zwPictureBox.RegisterHandler(); this.zwPictureBox.LoadImage(); this.zwPictureBox.EscapeFullScreenHandler += EscapeFullScreenHandler; sysConfig.PropertyChanged += EntryForm_PropertyChanged; fullScreen.ShowFullScreen(); }
private void btnToggle_Click(object sender, EventArgs e) { if (!FullScreen) { if (Temp.IsDisposed) { Temp = new Form(); Temp.CreateControl(); Temp.WindowState = FormWindowState.Maximized; Temp.KeyUp += new KeyEventHandler(Form1_KeyUp); Temp.BackColor = Color.Black; g = Temp.CreateGraphics(); //g.DrawImage(PBDataShow.Image, new Point(0, 0)); //g.ScaleTransform(1.2f, 1.2f); FS = new FullScreen(Temp); } SSP.Fullscreen = true; FS.ShowFullScreen(); } }
private void EscapeFullScreenHandler() { fullScreen.ShowFullScreen(); }
/// <summary> /// @author : TrungMT /// @CreateDate:05/05/2008 /// @Description: show form and play default clip /// </summary> public FrmClipView() { InitializeComponent(); mTimer.Enabled = false; mFullScreen = new FullScreen(this); mFullScreen.ShowFullScreen(); PlayClipDefault(); }