コード例 #1
0
 public void ExitFullScreen()
 {
     this.IsFullScreen = false;
     if (this.FullWin != null)
     {
         this.FullWin.Controls.Remove(this.RDesk);
         this.Controls.Add(this.RDesk);
         this.FullWin.Dispose();
         this.Bar     = null;
         this.FullWin = null;
     }
 }
コード例 #2
0
        public void EnterFullScreen()
        {
            this.IsFullScreen = true;
            this.Controls.Remove(this.RDesk);

            this.Bar             = new VNCToolBar(this.RDesk.Hostname);
            this.Bar.CloseEvent += this.Bar_CloseEvent;
            this.Bar.BackEvent  += this.Bar_BackEvent;

            this.FullWin = new Form()
            {
                FormBorderStyle = FormBorderStyle.None,
                WindowState     = FormWindowState.Maximized,
                ShowInTaskbar   = false,
                TopMost         = true
            };
            this.FullWin.Controls.Add(Bar);
            this.FullWin.Controls.Add(this.RDesk);

            this.Bar.Location = new Point((int)((System.Windows.SystemParameters.PrimaryScreenWidth - this.Bar.Width) / 2), 0);
            this.FullWin.ShowDialog();
        }