public static void LoadPic(int type, JObject elementData, PictureBox picture, TextBox box = null) { var url = BstManager.GetItemPicUrl(type, elementData); var path = BstManager.GetItemPicTmpPath(type, elementData); BstPicLoader.RunLoading(url, path, picture, box); }
public static void LoadPic(int type, string elementId, PictureBox picture, TextBox box = null) { var data = BstManager.Instance.GetAllDataByType(type); var elementData = (JObject)data[elementId]; BstPicLoader.LoadPic(type, elementData, picture, box); }