public Login() { this.InitializeComponent(); //checkLogin(); this.currentDN = new DangNhap(); this.link = new API_URL(); }
public string GetApiVersion() { if (API_URL.IndexOf("api-version") == -1) { return(""); } return(API_URL.Substring(API_URL.IndexOf("api-version"))); }
public AccountInformation() { this.InitializeComponent(); GetLocalData(); GetData(); this.currentSV = new SinhVien(); this.link = new API_URL(); this.currentInfo = new AccessInfo(); }
// =================================================================================== // 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(""); } }