public static Image UpdateEzdApi(CompetitorData competitor, int width, int height) { if (!string.IsNullOrEmpty(competitor.FirstName)) { JczLmc.ChangeTextByName(JczLmc.GetEntityNameByIndex(0), competitor.FirstName); } if (!string.IsNullOrEmpty(competitor.LastName)) { JczLmc.ChangeTextByName(JczLmc.GetEntityNameByIndex(1), competitor.LastName); } if (!string.IsNullOrEmpty(competitor.TimeOfDistance)) { JczLmc.ChangeTextByName(JczLmc.GetEntityNameByIndex(2), competitor.TimeOfDistance); } if (!string.IsNullOrEmpty(competitor.Distance)) { JczLmc.ChangeTextByName(JczLmc.GetEntityNameByIndex(3), competitor.Distance); } var img = JczLmc.GetCurPreviewImage(width, height); img = Images.SetImageTransparent(img); return(img); }
public static Image UpdateCustomEzd(Tuple <string, string> ezdObj, int width, int height) { JczLmc.ChangeTextByName(ezdObj.Item1, ezdObj.Item2); var img = JczLmc.GetCurPreviewImage(width, height); img = PictureControl.Images.SetImageTransparent(img); return(img); }