コード例 #1
0
ファイル: frmMain.cs プロジェクト: MIAhmed/YOY-Player
 public frmMain()
 {
     InitializeComponent();
     CustomFonts.LoadFonts();
     txt_first.Font  = CustomFonts.GetMontserrat_Bold(txt_first.Font.Size);
     txt_second.Font = CustomFonts.GetMontserrat_Bold(txt_second.Font.Size);
     txt_third.Font  = CustomFonts.GetMontserrat_Bold(txt_third.Font.Size);
     label1.Font     = new Font(CustomFonts.GetMontserrat_Medium(label1.Font.Size), label1.Font.Style);
     label2.Font     = new Font(CustomFonts.GetMontserrat_Medium(label2.Font.Size), label2.Font.Style);
     label3.Font     = new Font(CustomFonts.GetMontserrat_Medium(label3.Font.Size), label3.Font.Style);
 }
コード例 #2
0
 // MediaPly _mp = null;
 public FileSelection()
 {
     InitializeComponent();
     this.Player.LoadCompleted += new AsyncCompletedEventHandler(Player_LoadCompleted);
     comboBox1.BringToFront();
     comboBox2.BringToFront();
     comboBox3.BringToFront();
     CustomFonts.LoadFonts();
     btnSubmit.Font = CustomFonts.GetMontserrat_Bold(btnSubmit.Font.Size);
     comboBox1.Font = CustomFonts.GetMontserrat_Regular(comboBox1.Font.Size);
     comboBox2.Font = CustomFonts.GetMontserrat_Regular(comboBox2.Font.Size);
     comboBox3.Font = CustomFonts.GetMontserrat_Regular(comboBox3.Font.Size);
 }
コード例 #3
0
        //internal static readonly HttpClient client = new HttpClient();
        //internal static string UserName = "";
        //internal static string Password = "";
        //internal static string token = "";

        public YOY_Player(bool IsCloseRequest, bool IsChangeUserRequest)
        {
            InitializeComponent();
            CustomFonts.LoadFonts();

            btnSubmit.Font             = CustomFonts.GetMontserrat_Bold(btnSubmit.Font.Size);
            txtEmail.Text              = strEmailCaption;
            txtPassword.Text           = strPasswordCaption;
            this.Player.LoadCompleted += new AsyncCompletedEventHandler(Player_LoadCompleted);
            txtEmail.Font              = CustomFonts.GetMontserrat_Regular(txtEmail.Font.Size);
            txtPassword.Font           = CustomFonts.GetMontserrat_Regular(txtPassword.Font.Size);
            lbl_help.Font              = new Font(CustomFonts.GetMontserrat_Medium(lbl_help.Font.Size), lbl_help.Font.Style);

            if (IsCloseRequest)
            {
                ClosedRequest = IsCloseRequest;
            }

            if (IsChangeUserRequest)
            {
                ChangeUserRequest = IsChangeUserRequest;
            }
        }