internal static void ReportUsage(IVSSqmService sqmService, WorkflowDesignerFeatureId featureId)
 {
     if (sqmService != null)
     {
         uint[] data = new uint[1];
         data[0] = (uint)featureId;
         sqmService.AddArrayToStream((int)DataPointIds.FeatureUsageCount, data, data.Length);
     }
 }
 static internal void ReportUsage(IVSSqmService sqmService, Type activityType)
 {
     if (sqmService != null)
     {
         uint[] data = new uint[1];
         data[0] = (uint)MapTypeToId(activityType);
         sqmService.AddArrayToStream((int)DataPointIds.ActivityUsageCount, data, data.Length);
     }
 }
Ejemplo n.º 3
0
 internal static void ReportUsage(IVSSqmService sqmService, WorkflowDesignerFeatureId featureId)
 {
     if (sqmService != null)
     {
         uint[] data = new uint[1];
         data[0] = (uint)featureId;
         sqmService.AddArrayToStream((int)DataPointIds.FeatureUsageCount, data, data.Length);
     }
 }
 static internal void ReportUsage(IVSSqmService sqmService, Type activityType)
 {
     if (sqmService != null)
     {
         uint[] data = new uint[1];
         data[0] = (uint)MapTypeToId(activityType);
         sqmService.AddArrayToStream((int)DataPointIds.ActivityUsageCount, data, data.Length);
     }
 }
        internal DesignerView(EditingContext context)
        {
            this.proxy = new DesignerViewProxy(this);
            this.context = context;
            InitializeComponent();
            this.InitializeMenuActions();
            foreach (UIElement element in this.designerExtensionSurface.Children)
            {
                element.IsEnabled = false;
            }

            this.buttonArguments1.IsChecked = false;
            UpdateArgumentsButtonVisibility(false);

            this.zoomToTicksConverter = new ZoomToTicksConverter(this, this.zoomSlider, this.zoomPicker);
            this.zoomSlider.ValueChanged += new RoutedPropertyChangedEventHandler<double>(OnZoomSliderValueChanged);
            HideBottomPane();

            this.variables1.VariableCollectionChanged += this.OnVariablesCollectionChanged;
            this.arguments1.ArgumentCollectionChanged += this.OnArgumentsCollectionChanged;
            Dispatcher.UnhandledException += this.proxy.OnDispatcherUnhandledException;
            this.ShouldIgnoreDataGridAutoCommit = false;
            this.sqmService = this.Context.Services.GetService<IVSSqmService>();
            this.buttonPanMode.Visibility = this.IsPanModeEnabled ? Visibility.Visible : Visibility.Collapsed;
            this.rubberBandSelector = this.IsRubberBandSelectionEnabled ? new RubberBandSelector(this.context) : null;
        }