-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExport.xaml
70 lines (70 loc) · 8.26 KB
/
Export.xaml
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
62
63
64
65
66
67
68
69
70
<Window
x:Class="OvoData.Export"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:OvoData"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="Export to"
ResizeMode="NoResize"
ShowInTaskbar="False"
SizeToContent="WidthAndHeight"
WindowStyle="ToolWindow"
mc:Ignorable="d">
<Window.Resources>
<Path
x:Key="XlsxPath"
Margin="5"
Data="M 10.72 28.5 H 45.13 V 18.67 H 34.8 C 33.71 18.67 32.2 18.09 31.48 17.37 C 30.77 16.66 30.34 15.37 30.34 14.29 V 3.82 L 30.34 3.82 H 4.08 C 3.98 3.82 3.92 3.87 3.87 3.91 C 3.79 3.96 3.77 4.03 3.77 4.12 V 57.34 C 3.77 57.41 3.82 57.51 3.87 57.55 C 3.91 57.62 4 57.64 4.07 57.64 C 15.46 57.64 33.12 57.64 44.83 57.64 C 44.91 57.64 44.91 57.59 44.96 57.55 C 45.03 57.51 45.13 57.41 45.13 57.34 V 51.77 H 10.72 C 8.65 51.77 6.94 50.06 6.94 47.98 V 32.27 C 6.95 30.2 8.64 28.5 10.72 28.5 L 10.72 28.5 Z M 12.63 35.23 H 15.97 L 17.71 38.25 L 19.41 35.23 H 22.71 L 19.66 39.98 L 23 45.05 H 19.59 L 17.66 41.89 L 15.72 45.05 H 12.34 L 15.72 39.93 L 12.63 35.23 L 12.63 35.23 Z M 23.77 35.23 H 26.8 V 42.63 H 31.54 V 45.05 H 23.77 V 35.23 L 23.77 35.23 Z M 32.19 41.8 L 35.06 41.62 C 35.13 42.09 35.26 42.44 35.45 42.69 C 35.76 43.08 36.2 43.28 36.78 43.28 C 37.22 43.28 37.55 43.18 37.78 42.98 C 38.02 42.77 38.13 42.53 38.13 42.27 C 38.13 42.02 38.02 41.79 37.8 41.59 C 37.59 41.38 37.06 41.2 36.26 41.02 C 34.92 40.72 33.98 40.32 33.41 39.83 C 32.84 39.33 32.56 38.7 32.56 37.94 C 32.56 37.43 32.7 36.95 33 36.51 C 33.29 36.06 33.73 35.71 34.32 35.45 C 34.91 35.2 35.71 35.06 36.73 35.06 C 37.99 35.06 38.95 35.3 39.6 35.77 C 40.27 36.23 40.66 36.98 40.78 37.99 L 37.93 38.16 C 37.85 37.72 37.7 37.4 37.45 37.2 C 37.2 36.99 36.87 36.89 36.44 36.89 C 36.09 36.89 35.82 36.97 35.65 37.12 C 35.47 37.27 35.38 37.45 35.38 37.66 C 35.38 37.81 35.45 37.95 35.59 38.08 C 35.73 38.21 36.08 38.33 36.6 38.44 C 37.93 38.73 38.88 39.02 39.45 39.31 C 40.02 39.6 40.44 39.97 40.7 40.4 C 40.96 40.83 41.09 41.31 41.09 41.85 C 41.09 42.48 40.91 43.06 40.57 43.59 C 40.22 44.13 39.73 44.53 39.11 44.8 C 38.48 45.08 37.7 45.22 36.75 45.22 C 35.08 45.22 33.92 44.9 33.28 44.25 C 32.63 43.6 32.27 42.79 32.19 41.8 L 32.19 41.8 Z M 41.73 35.23 H 45.08 L 46.81 38.25 L 48.5 35.23 H 51.8 L 48.76 39.98 L 52.09 45.05 H 48.68 L 46.76 41.89 L 44.81 45.05 H 41.43 L 44.81 39.93 L 41.73 35.23 L 41.73 35.23 Z M 48.9 28.5 H 53.86 C 55.94 28.5 57.64 30.2 57.64 32.28 V 47.99 C 57.64 50.06 55.94 51.77 53.86 51.77 H 48.9 V 58.55 C 48.9 59.35 48.57 60.06 48.05 60.59 C 47.52 61.13 46.8 61.45 45.99 61.45 C 31.27 61.45 17.7 61.45 2.9 61.45 C 2.1 61.45 1.39 61.13 0.85 60.59 C 0.33 60.06 0.01 59.35 0.01 58.55 V 2.92 C 0.01 2.12 0.33 1.41 0.85 0.88 C 1.39 0.34 2.12 0.03 2.9 0.03 H 32.27 C 32.33 0 32.4 0 32.47 0 C 32.79 0 33.12 0.14 33.34 0.34 H 33.39 C 33.44 0.37 33.46 0.39 33.51 0.43 L 48.5 15.62 C 48.76 15.87 48.94 16.21 48.94 16.61 C 48.94 16.72 48.91 16.81 48.9 16.93 V 28.5 L 48.9 28.5 Z M 33.76 13.98 V 4.47 L 44.48 15.32 H 35.09 C 34.73 15.32 34.41 15.16 34.15 14.93 C 33.92 14.7 33.76 14.36 33.76 13.98 L 33.76 13.98 Z"
Fill="Green"
Stretch="Uniform" />
<Path
x:Key="CsvPath"
Margin="5"
Data="M 12.69 28.5 H 45.13 V 18.67 H 34.795 C 33.71 18.67 32.2 18.085 31.485 17.37 C 30.77 16.655 30.335 15.365 30.335 14.285 V 3.82 L 30.335 3.82 H 4.075 C 3.985 3.82 3.915 3.865 3.87 3.91 C 3.795 3.96 3.775 4.025 3.775 4.12 V 57.345 C 3.775 57.415 3.82 57.505 3.865 57.55 C 3.91 57.62 4.005 57.64 4.07 57.64 C 15.46 57.64 33.115 57.64 44.825 57.64 C 44.915 57.64 44.91 57.595 44.96 57.55 C 45.03 57.505 45.125 57.41 45.125 57.345 V 51.765 H 12.69 C 10.62 51.765 8.91 50.065 8.91 47.985 V 32.275 C 8.91 30.2 10.61 28.5 12.69 28.5 L 12.69 28.5 Z M 22.94 41.175 L 26.085 42.125 C 25.875 43.005 25.54 43.745 25.085 44.335 C 24.63 44.925 24.07 45.375 23.395 45.675 C 22.72 45.975 21.865 46.125 20.825 46.125 C 19.56 46.125 18.53 45.94 17.73 45.575 C 16.93 45.205 16.24 44.56 15.66 43.64 C 15.08 42.72 14.785 41.535 14.785 40.095 C 14.785 38.175 15.295 36.7 16.315 35.67 C 17.34 34.64 18.785 34.125 20.655 34.125 C 22.115 34.125 23.27 34.42 24.105 35.01 C 24.94 35.6 25.565 36.51 25.97 37.735 L 22.81 38.435 C 22.7 38.085 22.585 37.825 22.46 37.665 C 22.255 37.39 22.01 37.18 21.72 37.035 C 21.43 36.885 21.105 36.815 20.745 36.815 C 19.93 36.815 19.305 37.14 18.87 37.795 C 18.545 38.28 18.38 39.04 18.38 40.075 C 18.38 41.36 18.575 42.24 18.965 42.72 C 19.355 43.195 19.905 43.435 20.615 43.435 C 21.3 43.435 21.82 43.245 22.17 42.855 C 22.53 42.465 22.78 41.91 22.94 41.175 L 22.94 41.175 Z M 27.235 42.085 L 30.64 41.87 C 30.715 42.42 30.865 42.845 31.09 43.13 C 31.46 43.6 31.985 43.835 32.675 43.835 C 33.185 43.835 33.58 43.715 33.855 43.475 C 34.135 43.235 34.27 42.955 34.27 42.64 C 34.27 42.34 34.14 42.07 33.88 41.83 C 33.62 41.59 33.005 41.37 32.05 41.155 C 30.475 40.805 29.36 40.335 28.69 39.745 C 28.015 39.16 27.675 38.415 27.675 37.505 C 27.675 36.91 27.85 36.35 28.195 35.82 C 28.54 35.29 29.06 34.87 29.755 34.57 C 30.45 34.265 31.4 34.115 32.61 34.115 C 34.095 34.115 35.225 34.39 36 34.945 C 36.78 35.495 37.24 36.375 37.39 37.58 L 34.015 37.78 C 33.925 37.255 33.735 36.87 33.45 36.63 C 33.16 36.39 32.765 36.27 32.26 36.27 C 31.845 36.27 31.53 36.36 31.315 36.535 C 31.105 36.71 31 36.925 31 37.18 C 31 37.365 31.085 37.53 31.255 37.675 C 31.42 37.83 31.82 37.97 32.45 38.1 C 34.02 38.44 35.14 38.78 35.815 39.125 C 36.495 39.47 36.99 39.9 37.295 40.41 C 37.605 40.92 37.755 41.495 37.755 42.13 C 37.755 42.875 37.55 43.56 37.14 44.19 C 36.725 44.815 36.155 45.295 35.415 45.62 C 34.675 45.945 33.745 46.105 32.625 46.105 C 30.65 46.105 29.285 45.725 28.525 44.965 C 27.765 44.22 27.335 43.255 27.235 42.085 L 27.235 42.085 Z M 38.455 34.315 H 42.205 L 44.82 42.67 L 47.4 34.315 H 51.04 L 46.73 45.925 H 42.845 L 38.455 34.315 L 38.455 34.315 Z M 48.895 28.5 H 53.86 C 55.94 28.5 57.64 30.205 57.64 32.28 V 47.99 C 57.64 50.065 55.935 51.77 53.86 51.77 H 48.895 V 58.545 C 48.895 59.35 48.57 60.065 48.045 60.595 C 47.515 61.125 46.8 61.445 45.995 61.445 C 31.275 61.445 17.7 61.445 2.905 61.445 C 2.1 61.445 1.385 61.125 0.855 60.595 C 0.325 60.065 0.005 59.35 0.005 58.545 V 2.925 C 0.005 2.12 0.33 1.405 0.855 0.875 C 1.385 0.345 2.12 0.025 2.905 0.025 H 32.265 C 32.33 0 32.4 0 32.47 0 C 32.79 0 33.115 0.14 33.345 0.345 H 33.39 C 33.435 0.37 33.46 0.39 33.505 0.435 L 48.5 15.615 C 48.755 15.87 48.94 16.215 48.94 16.605 C 48.94 16.72 48.915 16.81 48.895 16.93 V 28.5 L 48.895 28.5 Z M 33.76 13.985 V 4.47 L 44.475 15.32 H 35.095 C 34.725 15.32 34.405 15.16 34.15 14.93 C 33.92 14.7 33.76 14.355 33.76 13.985 L 33.76 13.985 Z"
Fill="Blue"
Stretch="Uniform" />
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="18*" />
<ColumnDefinition Width="23*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Button
x:Name="Excel"
Grid.Row="0"
Grid.Column="0"
Grid.ColumnSpan="2"
Margin="5,5,5,5"
HorizontalContentAlignment="Left"
Click="OnClick_Export"
Tag="Excel">
<StackPanel Orientation="Horizontal">
<Viewbox Width="32" Height="32">
<StaticResource ResourceKey="XlsxPath" />
</Viewbox>
<TextBlock Margin="5" VerticalAlignment="Center">Excel</TextBlock>
</StackPanel>
</Button>
<Button
x:Name="Csv"
Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="2"
Margin="5,5,5,5"
HorizontalContentAlignment="Left"
Click="OnClick_Export"
Tag="CSV">
<StackPanel Orientation="Horizontal">
<Viewbox Width="32" Height="32">
<StaticResource ResourceKey="CsvPath" />
</Viewbox>
<TextBlock Margin="5" VerticalAlignment="Center">CSV</TextBlock>
</StackPanel>
</Button>
</Grid>
</Window>