///https://www.tinkoff.ru/api/trading/symbols/brands?brandId=%D0%A4%D0%BB%D0%B0%D0%B9%20%D0%9F%D0%BB%D1%8D%D0%BD%D0%B8%D0%BD%D0%B3 public void LoadImagePath() { xWebClient wx = new xWebClient(); wx.DownloadStringCompleted += Wx_DownloadStringCompleted; wx.DownloadStringAsync(new Uri($"https://www.tinkoff.ru/api/trading/bonds/get?ticker={Base.Ticker}")); }
private void DrawImg() { if (!string.IsNullOrEmpty(Img_path)) { xWebClient wx = new xWebClient(); wx.OpenReadCompleted += Wx_OpenReadCompleted; wx.OpenReadAsync(new Uri(Img_path)); } else { Img_exct = Program.DrawText(Base.Name.Substring(0, 1), new Font("Arial", 36), Text_color, Img_color); } }