private void GID_Finished(object sender, EventArgs e) { YTDLInteract.GetID gid = (YTDLInteract.GetID)sender; gid.TrimmedOutputDataReceived -= GID_TrimmedOutputDataReceived; gid.TrimmedErrorDataReceived -= GID_TrimmedErrorDataReceived; gid.Finished -= GID_Finished; foreach (string elem in gid.IDList) { if ((!TBData.Text.Contains(elem)) || (FilterData.IsChecked == false)) { TBData.Text += elem + Environment.NewLine; } } }
public URLInList(string url) { URL = url; GID = new YTDLInteract.GetID(URL); GID.Finished += GID_Finished; }