Пример #1
0
 public AppInfoEventArgs(AppInfo info)
 {
     AppInfo = info;
 }
Пример #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;
        }
Пример #3
0
 public AppInfoChangedEventArgs(AppInfo appInfo, int oldState) : base(appInfo)
 {
     PreviousState = oldState;
 }