public bool Remove(T item) { if (((IList <T>)list).Remove(item)) { OnRemoved.Invoke(item); return(true); } return(false); }
public void ShowProgress(float progress) { if (!IsDownloading) { if (IfDownloading != null) { IfDownloading.Invoke(false); } return; } var rProgress = progress / 100; //relative progress if (LoaderImage) { if (!LoaderImage.IsActive()) { LoaderImage.Activate(); DownloadIcon.Deactivate(); if (OnDownloadStarts != null) { OnDownloadStarts.Invoke(); } if (IfDownloading != null) { IfDownloading.Invoke(true); } } LoaderImage.fillAmount = rProgress; if (Downloading != null) { Downloading.Invoke(rProgress); } } _alreadyClicked = true; }
public void Add(T item) { ((IList <T>)list).Add(item); OnAdded.Invoke(item); }