public ControllerMini(TPlayer player) { this.player = player; InitializeComponent(); if (player.isMusic) { btn_exit.Visible = btn_tv.Visible = false; } this.Text = label1.Text = player.Text; }
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); }
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); }
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; } }
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 + ")"; } }
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; }
public PlayErr(TPlayer player, string e) { this.player = player; Err = e; InitializeComponent(); }