Esempio n. 1
0
 /// <summary>
 /// 全屏
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button1_Click(object sender, EventArgs e)
 {
     this.panel2.Visible  = false;
     this.WindowState     = FormWindowState.Maximized;
     this.panel1.Dock     = DockStyle.Fill;
     this.FormBorderStyle = FormBorderStyle.None;
     WIN32api.SetTaskbarState(WIN32api.AppBarStates.AutoHide);
 }
Esempio n. 2
0
 private void PlayerWindow_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Escape)
     {
         this.FormBorderStyle = FormBorderStyle.Sizable;
         this.panel2.Visible  = true;
         WIN32api.SetTaskbarState(WIN32api.AppBarStates.AlwaysOnTop);
     }
 }
Esempio n. 3
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (is_playinig_)
     {
         if (trackBar1.Value == trackBar1.Maximum)
         {
             vlc_player_.Stop();
             timer1.Stop();
             WIN32api.SetTaskbarState(WIN32api.AppBarStates.AlwaysOnTop);
         }
         else
         {
             trackBar1.Value  = trackBar1.Value + 1;
             tbVideoTime.Text = string.Format("{0}/{1}",
                                              GetTimeString(trackBar1.Value),
                                              GetTimeString(trackBar1.Maximum));
         }
     }
 }
Esempio n. 4
0
 private void PlayerWindow_FormClosed(object sender, FormClosedEventArgs e)
 {
     WIN32api.SetTaskbarState(WIN32api.AppBarStates.AlwaysOnTop);
 }