public void Init(string Token, VersionAPI version) { if (string.IsNullOrWhiteSpace(Token)) { throw new ClashRoyaleAPIException("Token is not specified"); } string tmpVersion = string.Empty; this.Token = Token; switch (version) { case VersionAPI.v1: tmpVersion = "v1/"; break; default: tmpVersion = "v1/"; break; } CurrentURL = Path.Combine(BaseURL, tmpVersion); }
public frmHome() { InitializeComponent(); this.lblRandomInt.Text = "Random: " + VersionAPI.getRandomInteger(); }
private void btnRefresh_Click(object sender, EventArgs e) { this.lblRandomInt.Text = "Random: " + VersionAPI.getRandomInteger(); }