private static void Fsw_Deleted(object sender, FileSystemEventArgs e) { int id = IdFromAcfFilename(e.FullPath); AppInfo info = Apps.FirstOrDefault(x => x.ID == id); if (info == null) { return; } var eventArgs = new AppInfoEventArgs(info); OnAppInfoDeleted(eventArgs); }
private void Steam_AppInfoDeleted(AppInfoEventArgs e) { if (InvokeRequired) { Invoke(new MethodInvoker(() => { Steam_AppInfoDeleted(e); })); return; } if (lbUnwatched.Items.Contains(e.AppInfo)) { lbUnwatched.Items.Remove(e.AppInfo); } else if (lbWatching.Items.Contains(e.AppInfo)) { lbWatching.Items.Remove(e.AppInfo); } }
private void Steam_AppInfoDeleted(object sender, AppInfoEventArgs e) { StateMachine.WatchedGames.Remove(e.AppInfo); }
static void OnAppInfoDeleted(AppInfoEventArgs e) { AppInfoDeleted?.Invoke(e); }
static void OnAppInfoDeleted(object sender, AppInfoEventArgs e) { AppInfoDeleted?.Invoke(sender, e); }