aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Formatting/packages.config
blob: 6844de8c23d91cbc8f7d9523b5f8365c1d85a402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<packages>
  <package id="ManagedEsent" version="1.9.4" targetFramework="net461" />
  <package id="Microsoft.CodeAnalysis.Analyzers" version="1.1.0" targetFramework="net461" />
  <package id="Microsoft.CodeAnalysis.Common" version="2.4.0" targetFramework="net461" />
  <package id="Microsoft.CodeAnalysis.CSharp" version="2.4.0" targetFramework="net461" />
  <package id="Microsoft.CodeAnalysis.CSharp.Scripting" version="2.4.0" targetFramework="net461" />
  <package id="Microsoft.CodeAnalysis.CSharp.Workspaces" version="2.4.0" targetFramework="net461" />
  <package id="Microsoft.CodeAnalysis.Scripting" version="2.4.0" targetFramework="net461" />
  <package id="Microsoft.CodeAnalysis.Scripting.Common" version="2.4.0" targetFramework="net461" />
  <package id="Microsoft.CodeAnalysis.Workspaces.Common" version="2.4.0" targetFramework="net461" />
  <package id="Newtonsoft.Json" version="9.0.1" targetFramework="net461" />
  <package id="System.AppContext" version="4.3.0" targetFramework="net461" />
  <package id="System.Collections" version="4.3.0" targetFramework="net461" />
  <package id="System.Collections.Concurrent" version="4.3.0" targetFramework="net461" />
  <package id="System.Collections.Immutable" version="1.3.1" targetFramework="net461" />
  <package id="System.Composition" version="1.0.31" targetFramework="net461" />
  <package id="System.Composition.AttributedModel" version="1.0.31" targetFramework="net461" />
  <package id="System.Composition.Convention" version="1.0.31" targetFramework="net461" />
  <package id="System.Composition.Hosting" version="1.0.31" targetFramework="net461" />
  <package id="System.Composition.Runtime" version="1.0.31" targetFramework="net461" />
  <package id="System.Composition.TypedParts" version="1.0.31" targetFramework="net461" />
  <package id="System.Console" version="4.3.0" targetFramework="net461" />
  <package id="System.Diagnostics.Debug" version="4.3.0" targetFramework="net461" />
  <package id="System.Diagnostics.FileVersionInfo" version="4.3.0" targetFramework="net461" />
  <package id="System.Diagnostics.StackTrace" version="4.3.0" targetFramework="net461" />
  <package id="System.Diagnostics.Tools" version="4.3.0" targetFramework="net461" />
  <package id="System.Dynamic.Runtime" version="4.3.0" targetFramework="net461" />
  <package id="System.Globalization" version="4.3.0" targetFramework="net461" />
  <package id="System.IO" version="4.3.0" targetFramework="net461" />
  <package id="System.IO.Compression" version="4.3.0" targetFramework="net461" />
  <package id="System.IO.FileSystem" version="4.3.0" targetFramework="net461" />
  <package id="System.IO.FileSystem.Primitives" version="4.3.0" targetFramework="net461" />
  <package id="System.Linq" version="4.3.0" targetFramework="net461" />
  <package id="System.Linq.Expressions" version="4.3.0" targetFramework="net461" />
  <package id="System.Reflection" version="4.3.0" targetFramework="net461" />
  <package id="System.Reflection.Extensions" version="4.3.0" targetFramework="net461" />
  <package id="System.Reflection.Metadata" version="1.4.2" targetFramework="net461" />
  <package id="System.Resources.ResourceManager" version="4.3.0" targetFramework="net461" />
  <package id="System.Runtime" version="4.3.0" targetFramework="net461" />
  <package id="System.Runtime.Extensions" version="4.3.0" targetFramework="net461" />
  <package id="System.Runtime.InteropServices" version="4.3.0" targetFramework="net461" />
  <package id="System.Runtime.Numerics" version="4.3.0" targetFramework="net461" />
  <package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net461" />
  <package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net461" />
  <package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net461" />
  <package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net461" />
  <package id="System.Text.Encoding" version="4.3.0" targetFramework="net461" />
  <package id="System.Text.Encoding.CodePages" version="4.3.0" targetFramework="net461" />
  <package id="System.Text.Encoding.Extensions" version="4.3.0" targetFramework="net461" />
  <package id="System.Threading" version="4.3.0" targetFramework="net461" />
  <package id="System.Threading.Tasks" version="4.3.0" targetFramework="net461" />
  <package id="System.Threading.Tasks.Parallel" version="4.3.0" targetFramework="net461" />
  <package id="System.Threading.Thread" version="4.3.0" targetFramework="net461" />
  <package id="System.ValueTuple" version="4.3.0" targetFramework="net461" />
  <package id="System.Xml.ReaderWriter" version="4.3.0" targetFramework="net461" />
  <package id="System.Xml.XDocument" version="4.3.0" targetFramework="net461" />
  <package id="System.Xml.XmlDocument" version="4.3.0" targetFramework="net461" />
  <package id="System.Xml.XPath" version="4.3.0" targetFramework="net461" />
  <package id="System.Xml.XPath.XDocument" version="4.3.0" targetFramework="net461" />
</packages>
an> _vm; private Rectangle _highlightRect; private bool _highlightShown; private DoubleAnimation _highlightAnimation; public ColumnDefinition PanelColumnDefinition { get; set; } public MainView() { InitializeComponent(); PanelColumnDefinition = panelColumnDefinition; DraggingSurface = dragSufrace; this.Loaded += (x, y) => { _vm = DataContext as MainViewVM; }; DragAndDropService.DragStarted += DragAndDropService_DragStarted; DragAndDropService.DragEnded += DragAndDropService_DragEnded; _highlightRect = new Rectangle(); _highlightRect.IsHitTestVisible = false; _highlightRect.Stroke = Application.Current.Resources["AccentColorBrush"] as Brush; _highlightRect.StrokeThickness = 2; _highlightRect.StrokeDashArray = new DoubleCollection(new double[] { 3, 3, 3, 3 }); } private void DragAndDropService_DragEnded(object sender, FrameworkElement e) { canvas.Children.Remove(_highlightRect); _highlightShown = false; _highlightRect.BeginAnimation(Rectangle.OpacityProperty, null); } private void DragAndDropService_DragStarted(object sender, FrameworkElement e) { if (e.DataContext is HardwareVersion) { SetHighlightRegion(hardwareGrid); } else if (e.DataContext is ApplicationOsVersion || e.DataContext is ApplicationDisplayPanelVersion || e.DataContext is ApplicationFirmwareVersion) { SetHighlightRegion(gridTablet); } else if (e.DataContext is EmbeddedFirmwareVersion) { SetHighlightRegion(gridEmbedded); } else if (e.DataContext is DispenserType || e.DataContext is CartridgeType || e.DataContext is LiquidType || e.DataContext is MidTankType || e.DataContext is IdsPackFormula) { SetHighlightRegion(gridIds); } } public DraggingSurface DraggingSurface { get { return (DraggingSurface)GetValue(DraggingSurfaceProperty); } set { SetValue(DraggingSurfaceProperty, value); } } public static readonly DependencyProperty DraggingSurfaceProperty = DependencyProperty.Register("DraggingSurface", typeof(DraggingSurface), typeof(MainView), new PropertyMetadata(null)); private void OnDropOnIdsPack(object sender, DropEventArgs e) { if (e.Draggable.DataContext is DispenserType) { _vm.DropDispenserType(e.Draggable.DataContext as DispenserType, e.Droppable.DataContext as IdsPack); } else if (e.Draggable.DataContext is LiquidType) { _vm.DropLiquidType(e.Draggable.DataContext as LiquidType, e.Droppable.DataContext as IdsPack); } else if (e.Draggable.DataContext is CartridgeType) { _vm.DropCartridgeType(e.Draggable.DataContext as CartridgeType, e.Droppable.DataContext as IdsPack); } else if (e.Draggable.DataContext is MidTankType) { _vm.DropMidTankType(e.Draggable.DataContext as MidTankType, e.Droppable.DataContext as IdsPack); } else if (e.Draggable.DataContext is IdsPackFormula) { _vm.DropIdsFormula(e.Draggable.DataContext as IdsPackFormula, e.Droppable.DataContext as IdsPack); } else if (e.Draggable.DataContext is IdsPack) { _vm.DropIdsPack(e.Draggable.DataContext as IdsPack, e.Droppable.DataContext as IdsPack); } } private void OnTabletDrop(object sender, DropEventArgs e) { if (e.Draggable.DataContext is ApplicationDisplayPanelVersion) { _vm.DropTouchPanel(e.Draggable.DataContext as ApplicationDisplayPanelVersion); } else if (e.Draggable.DataContext is ApplicationOsVersion) { _vm.DropApplicationOsVersion(e.Draggable.DataContext as ApplicationOsVersion); } else if (e.Draggable.DataContext is ApplicationFirmwareVersion) { _vm.DropApplicationFirmwareVersion(e.Draggable.DataContext as ApplicationFirmwareVersion); } } private void OnEmbeddedDrop(object sender, DropEventArgs e) { if (e.Draggable.DataContext is EmbeddedFirmwareVersion) { _vm.DropEmbeddedFirmware(e.Draggable.DataContext as EmbeddedFirmwareVersion); } } private void MachineDrop(object sender, DropEventArgs e) { if (e.Draggable.DataContext is HardwareVersion) { _vm.DropHardwareVersion(e.Draggable.DataContext as HardwareVersion); } } private void SetHighlightRegion(FrameworkElement element) { if (!_highlightShown) { _highlightRect.Width = element.Width; _highlightRect.Height = element.Height; Canvas.SetLeft(_highlightRect, Canvas.GetLeft(element)); Canvas.SetTop(_highlightRect, Canvas.GetTop(element)); canvas.Children.Add(_highlightRect); _highlightShown = true; _highlightAnimation = new DoubleAnimation(); _highlightAnimation.From = 0; _highlightAnimation.To = 1; _highlightAnimation.Duration = TimeSpan.FromSeconds(0.2); _highlightAnimation.AutoReverse = true; _highlightAnimation.RepeatBehavior = RepeatBehavior.Forever; _highlightRect.BeginAnimation(Rectangle.OpacityProperty, _highlightAnimation); } } } }