示例#1
0
        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);
        }
示例#2
0
        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);
 }
示例#4
0
 static void OnAppInfoDeleted(AppInfoEventArgs e)
 {
     AppInfoDeleted?.Invoke(e);
 }
示例#5
0
 static void OnAppInfoDeleted(object sender, AppInfoEventArgs e)
 {
     AppInfoDeleted?.Invoke(sender, e);
 }