public AppInfoEventArgs(AppInfo info)
 {
     AppInfo = info;
 }
Exemple #2
0
        private static AppInfo JsonToAppInfo(dynamic json)
        {
            AppInfo newInfo = new AppInfo
            {
                ID = int.Parse((json.appid ?? json.appID ?? json.AppID).ToString()),
                Name = json.name ?? json.installdir,
                State = int.Parse(json.StateFlags.ToString())
            };

            return newInfo;
        }
 public AppInfoChangedEventArgs(AppInfo appInfo, int oldState) : base(appInfo)
 {
     PreviousState = oldState;
 }