public Login()
 {
     this.InitializeComponent();
     //checkLogin();
     this.currentDN = new DangNhap();
     this.link      = new API_URL();
 }
Exemple #2
0
 public string GetApiVersion()
 {
     if (API_URL.IndexOf("api-version") == -1)
     {
         return("");
     }
     return(API_URL.Substring(API_URL.IndexOf("api-version")));
 }
Exemple #3
0
 public AccountInformation()
 {
     this.InitializeComponent();
     GetLocalData();
     GetData();
     this.currentSV   = new SinhVien();
     this.link        = new API_URL();
     this.currentInfo = new AccessInfo();
 }
Exemple #4
0
    // ===================================================================================
    //   URL functions
    // ===================================================================================
    // ----------------------------------------------------------------
    private string GetApiUrl(API_URL url_type)
    {
        switch (url_type)
        {
        case API_URL.CREATE:
            return(settingMgr.apiBaseUrl + "create");

        case API_URL.SELECT_QR:
            return(settingMgr.apiBaseUrl + playerId + "/qr");

        case API_URL.QR_UPLOADED:
            return(settingMgr.apiBaseUrl + playerId + "/qrupload");

        case API_URL.SELECT_EMAIL:
            return(settingMgr.apiBaseUrl + playerId + "/email");

        case API_URL.SEND_EMAIL:
            return(settingMgr.apiBaseUrl + playerId + "/sendmail");

        default:
            return("");
        }
    }