Example #1
0
 public void AfterClick()
 {
     this.Controls.Remove(sp_Select);
     sp_Select = null;
     listView_myvideo.Items.Clear();
     ShowListVid();
 }
Example #2
0
 public void SelectVideo(object sender, MouseEventArgs e)
 {
     if ((sp_Select == null) && (e.Button == MouseButtons.Left))
     {
         //this.parent.Is_Playing = false;
         //this.parent.SetActive_PanelPlayer();
         sp_Select = new SubPanelSelectVideo(this);
         this.Controls.Add(sp_Select);
         sp_Select.Dock = DockStyle.Bottom;
         sp_Select.BringToFront();
     }
     else
     {
         if (ListVideoLiked.Instance.IsExist(new VideoInfo(listView_myvideo.SelectedItems[0].SubItems[5].Text)))
         {
             MenuStrip.Items[0].Enabled = false;
             MenuStrip.Items[1].Enabled = true;
         }
         else
         {
             MenuStrip.Items[0].Enabled = true;
             MenuStrip.Items[1].Enabled = false;
         }
     }
 }