コード例 #1
0
ファイル: DownCodecs.cs プロジェクト: Haku-Men/TPlayer
 public DownCodecs()
 {
     InitializeComponent();
     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);
 }
コード例 #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);
        }
コード例 #3
0
ファイル: BugReport.cs プロジェクト: Haku-Men/TPlayer
 public BugReport(Exception _bugInfo)
 {
     this._bugInfo = _bugInfo;
     InitializeComponent();
     this.label4.Text += $"  ({_bugInfo.GetType().Name})";
     this.label5.Text  = _bugInfo.Message;
     btn_close.Image   = FontAwesome.GetImage("4FA4", 30, Color.White);
     //sb.Append("【异常类型】:" + ex.GetType().Name + "<br>");
     //sb.Append("【异常信息】:" + ex.Message + "<br>");
     //sb.Append("【异常方法】:" + ex.TargetSite + "<br>");
     //sb.Append("【堆栈调用】:" + ex.StackTrace + "<br>");
 }
コード例 #4
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 + ")";
            }
        }