Ejemplo n.º 1
0
 private void DetectMsiFeature(object sender, DetectMsiFeatureEventArgs e)
 {
     if (e.PackageId.Equals("Elysium.SDK." + (App.Current.Dispatcher.Thread.CurrentCulture.LCID == 1049 ? "ru" : "en"), StringComparison.Ordinal))
     {
         App.Current.Dispatcher.Invoke(
             DispatcherPriority.Render,
             (Action)(() => Features.Add(new Feature(e.FeatureId, !e.FeatureId.Equals("Elysium", StringComparison.Ordinal)),
                                         e.FeatureId.Equals("Elysium", StringComparison.Ordinal) || e.State == FeatureState.Local)));
     }
 }
Ejemplo n.º 2
0
        protected override void OnDetectMsiFeature(DetectMsiFeatureEventArgs args)
        {
            base.OnDetectMsiFeature(args);

            var package = Packages.FirstOrDefault(pkg => pkg.Id == args.PackageId);

            if (package != null)
            {
                var feature = package.Features.FirstOrDefault(f => f.Feature == args.FeatureId);
                if (feature != null)
                {
                    feature.CurrentState = args.State;
                }
            }
        }
Ejemplo n.º 3
0
 protected override void OnDetectMsiFeature(DetectMsiFeatureEventArgs e)
 {
     base.OnDetectMsiFeature(e);
 }
Ejemplo n.º 4
0
 /// Fired when a feature in an MSI package has been detected.
 static void OnDetectMsiFeature(object sender, DetectMsiFeatureEventArgs e)
 {
     Logger.Instance.Trace("");
 }
Ejemplo n.º 5
0
 private void DetectMsiFeature(DetectMsiFeatureEventArgs eventArgs)
 {
     // IDK
 }
 protected override void OnDetectMsiFeature(DetectMsiFeatureEventArgs e)
 {
     base.OnDetectMsiFeature(e);
 }