Exemplo n.º 1
0
 public ControllerMini(TPlayer player)
 {
     this.player = player;
     InitializeComponent();
     if (player.isMusic)
     {
         btn_exit.Visible = btn_tv.Visible = false;
     }
     this.Text = label1.Text = player.Text;
 }
Exemplo n.º 2
0
        public DLNA(TPlayer player)
        {
            this.player = player;
            InitializeComponent();

            btn_refresh.Image   = FontAwesome.GetImage("4FA6", 30, Color.Black);
            btn_min.Image       = FontAwesome.GetImage("4FA9", 30, Color.Black);
            btn_close.Image     = FontAwesome.GetImage("4FA3", 30, Color.Black);
            btn_close.ImageHove = FontAwesome.GetImage("4FA3", 30, Color.White);
        }
Exemplo n.º 3
0
        static void StartApp(int ind, List <string> files)
        {
#if DEBUG
#else
            Application.ThreadException += Application_ThreadException;                     //UI线程异常
            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
            AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException; //多线程异常
#endif
            _Main = new TPlayer(ind, files);
            Application.Run(_Main);
        }
Exemplo n.º 4
0
 public EffectSetting(TPlayer player)
 {
     this.player = player;
     InitializeComponent();
     if (player.player.GetConfig(309) == "1")
     {
         b5.Visible = true;
     }
     if (player.player.GetConfig(2401) == "1")
     {
         b6.Visible = true;
     }
 }
Exemplo n.º 5
0
        public DownList(TPlayer player)
        {
            this.player = player;
            InitializeComponent();
            btn_play.Image      = FontAwesome.GetImage("4FF9", 30, Color.FromArgb(80, 227, 194));
            btn_pause.Image     = FontAwesome.GetImage("4FF8", 30, Color.OrangeRed);
            btn_min.Image       = FontAwesome.GetImage("4FA9", 30, Color.Black);
            btn_close.Image     = FontAwesome.GetImage("4FA3", 30, Color.Black);
            btn_close.ImageHove = FontAwesome.GetImage("4FA3", 30, Color.White);

            if (player.DowningCount > 0)
            {
                label2.Text = "(" + player.DowningCount + ")";
            }
        }
Exemplo n.º 6
0
 public Loading(TPlayer player)
 {
     this.player = player;
     InitializeComponent();
     SetStyle(ControlStyles.Selectable, false);
     SetStyle(
         ControlStyles.UserPaint |
         ControlStyles.AllPaintingInWmPaint |
         ControlStyles.OptimizedDoubleBuffer |
         ControlStyles.ResizeRedraw |
         ControlStyles.DoubleBuffer, true);
     //强制分配样式重新应用到控件上
     //s.BringToFront();
     CanPenetrate();
     player.LocationChanged += Main;
     player.SizeChanged     += Main;
 }
Exemplo n.º 7
0
 public PlayErr(TPlayer player, string e)
 {
     this.player = player;
     Err         = e;
     InitializeComponent();
 }