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))); } }
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; } } }
protected override void OnDetectMsiFeature(DetectMsiFeatureEventArgs e) { base.OnDetectMsiFeature(e); }
/// Fired when a feature in an MSI package has been detected. static void OnDetectMsiFeature(object sender, DetectMsiFeatureEventArgs e) { Logger.Instance.Trace(""); }
private void DetectMsiFeature(DetectMsiFeatureEventArgs eventArgs) { // IDK }