-
Notifications
You must be signed in to change notification settings - Fork 50
/
MainWindow.xaml
389 lines (381 loc) · 34.7 KB
/
MainWindow.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
<Controls:MetroWindow x:Class="LeagueSharp.Loader.Views.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns:tb="http://www.hardcodet.net/taskbar"
Title="LeagueSharp"
Height="384"
Width="605"
MinHeight="240"
MinWidth="400"
WindowStartupLocation="CenterScreen"
Loaded="MainWindow_OnLoaded"
Activated="MainWindow_OnActivated"
Closing="MainWindow_OnClosing"
Icon="../Resources/icon_64x64.ico"
ShowIconOnTitleBar="False"
BorderThickness="0.5"
GlowBrush="{DynamicResource AccentColorBrush}"
SaveWindowPosition="True">
<Controls:MetroWindow.RightWindowCommands>
<Controls:WindowCommands>
<Button Cursor="Hand" x:Name="NewsButton" Click="NewsButton_OnClick">
<StackPanel Orientation="Horizontal" >
<Rectangle Width="14"
Height="14"
Fill="{Binding RelativeSource={RelativeSource AncestorType=Button},
Path=Foreground}">
<Rectangle.OpacityMask >
<VisualBrush Stretch="Fill" Visual="{StaticResource appbar_page_text}" />
</Rectangle.OpacityMask>
</Rectangle>
<TextBlock Margin="4 0 0 0"
VerticalAlignment="Center"
Text="{DynamicResource News}"/>
</StackPanel>
</Button>
<Button Cursor="Hand" x:Name="AssemblyButton" Click="AssemblyButton_OnClick">
<StackPanel Orientation="Horizontal" >
<Rectangle Width="14"
Height="14"
Fill="{Binding RelativeSource={RelativeSource AncestorType=Button},
Path=Foreground}">
<Rectangle.OpacityMask >
<VisualBrush Stretch="Fill" Visual="{StaticResource appbar_layer}" />
</Rectangle.OpacityMask>
</Rectangle>
<TextBlock Margin="4 0 0 0"
VerticalAlignment="Center"
Text="{DynamicResource Assemblies}"/>
</StackPanel>
</Button>
<Button Cursor="Hand" x:Name="StatusButton" Click="StatusButton_OnClick">
<StackPanel Orientation="Horizontal" >
<Rectangle Width="14"
Height="14"
Fill="{Binding RelativeSource={RelativeSource AncestorType=Button},
Path=Foreground}">
<Rectangle.OpacityMask >
<VisualBrush Stretch="Fill" Visual="{StaticResource appbar_refresh}" />
</Rectangle.OpacityMask>
</Rectangle>
<TextBlock Margin="4 0 0 0"
VerticalAlignment="Center"
Text="{Binding StatusString}"/>
</StackPanel>
</Button>
<Button Cursor="Hand" x:Name="SettingsButton" Click="SettingsButton_OnClick">
<StackPanel Orientation="Horizontal">
<Rectangle Width="14"
Height="14"
Fill="{Binding RelativeSource={RelativeSource AncestorType=Button},
Path=Foreground}">
<Rectangle.OpacityMask>
<VisualBrush Stretch="Fill" Visual="{StaticResource appbar_cog}" />
</Rectangle.OpacityMask>
</Rectangle>
<TextBlock Margin="4 0 0 0"
VerticalAlignment="Center"
Text="{DynamicResource Settings}" />
</StackPanel>
</Button>
</Controls:WindowCommands>
</Controls:MetroWindow.RightWindowCommands>
<Grid>
<TabControl Margin="3,-36,3,3" x:Name="MainTabControl" >
<TabItem x:Name="TosTabItem" Height="36" VerticalAlignment="Top" Visibility="Visible">
<Grid Background="#FFE5E5E5">
<WebBrowser x:Name="TosBrowser" Visibility="Visible" Margin="10,10,10,32" Source="http://api.joduska.me/public/tos" />
<Button Content="{DynamicResource AcceptTosButton}" HorizontalAlignment="Right" Margin="0,0,90,2" VerticalAlignment="Bottom" Width="75" Click="TosAccept_Click"/>
<Button Content="{DynamicResource DeclineTosButton}" Margin="0,0,10,2" HorizontalAlignment="Right" Width="75" Height="25" VerticalAlignment="Bottom" Click="TosDecline_Click"/>
</Grid>
</TabItem>
<TabItem x:Name="NewsTabItem" Header="News" Height="36" VerticalAlignment="Top">
<Grid Background="#FFE5E5E5">
<tb:TaskbarIcon x:Name="TrayIcon"
Visibility="Visible"
ToolTipText="LeagueSharp"
TrayMouseDoubleClick="TrayIcon_OnTrayMouseDoubleClick"
TrayLeftMouseUp="TrayIcon_OnTrayLeftMouseUp"
IconSource="../Resources/icon_16x16.ico">
<tb:TaskbarIcon.ContextMenu>
<ContextMenu Style="{x:Null}">
<MenuItem x:Name="MenuItemLabelHide" Header="Hide" Click="TrayMenuHide_OnClick"/>
<MenuItem Header="Close" Click="TrayMenuClose_OnClick"/>
</ContextMenu>
</tb:TaskbarIcon.ContextMenu>
</tb:TaskbarIcon>
<WebBrowser x:Name="Browser" Visibility="Visible" Margin="10" Source="http://api.joduska.me/public/news/html" Grid.ColumnSpan="2"/>
</Grid>
</TabItem>
<TabItem x:Name="AssembliesTabItem" Header="Assemblies" Height="36" VerticalAlignment="Top">
<Grid Background="#FFE5E5E5" Margin="0,2,0,-2">
<DataGrid x:Name="InstalledAssembliesDataGrid"
Margin="10,41,10,40"
CanUserAddRows="False"
AutoGenerateColumns="False"
ContextMenuOpening="InstalledAssembliesDataGrid_OnContextMenuOpening"
ItemsSource="{Binding Config.SelectedProfile.InstalledAssemblies, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
>
<DataGrid.ContextMenu>
<ContextMenu>
<MenuItem x:Name="UpdateAndCompileMenuItem" Header="{DynamicResource MenuUpdateAndCompile}" Click="UpdateAndCompileMenuItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 18,33.5001L 18,27L 27,19L 36,27.5001L 36,33.5001L 30,28.2097L 30,40.5C 30,46.299 34.701,51 40.5,51C 46.299,51 51,46.299 51,40.5C 51,34.8686 46.5668,30.2727 41,30.0117L 41,24.0074C 49.8814,24.2718 57,31.5546 57,40.5C 57,49.6127 49.6127,57 40.5,57C 31.3873,57 24,49.6127 24,40.5L 24,28.125L 18,33.5001 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="RemoveMenuItem" Header="{DynamicResource MenuRemove}" Click="RemoveMenuItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 25.3333,23.75L 50.6667,23.75C 51.5411,23.75 51.8541,27.3125 51.8541,27.3125L 24.1458,27.3125C 24.1458,27.3125 24.4589,23.75 25.3333,23.75 Z M 35.625,19.7917L 40.375,19.7917C 40.8122,19.7917 41.9583,20.9378 41.9583,21.375C 41.9583,21.8122 40.8122,22.9584 40.375,22.9584L 35.625,22.9584C 35.1878,22.9584 34.0416,21.8122 34.0416,21.375C 34.0416,20.9378 35.1878,19.7917 35.625,19.7917 Z M 27.7083,28.5L 48.2916,28.5C 49.1661,28.5 49.875,29.2089 49.875,30.0834L 48.2916,53.8334C 48.2916,54.7078 47.5828,55.4167 46.7083,55.4167L 29.2917,55.4167C 28.4172,55.4167 27.7083,54.7078 27.7083,53.8334L 26.125,30.0834C 26.125,29.2089 26.8339,28.5 27.7083,28.5 Z M 30.0833,31.6667L 30.4792,52.25L 33.25,52.25L 32.8542,31.6667L 30.0833,31.6667 Z M 36.4167,31.6667L 36.4167,52.25L 39.5833,52.25L 39.5833,31.6667L 36.4167,31.6667 Z M 43.1458,31.6667L 42.75,52.25L 45.5208,52.25L 45.9167,31.6667L 43.1458,31.6667 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="GithubItem" Header="{DynamicResource MenuGithub}" Click="GithubItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 49.4162,18.9999C 50.0612,20.4651 50.4791,22.8974 49.8556,24.6785C 52.4052,26.8554 53.2817,32.1482 52.0513,36.4723C 55.6852,36.7501 60.0132,36.3394 62.8071,37.4547C 60.1951,37.1189 56.6285,36.4602 53.2591,36.6895C 52.6207,36.7325 51.6753,36.6652 51.7216,37.5633C 55.6213,37.8692 59.4967,38.2027 62.6985,39.2016C 59.5232,38.6829 55.6676,37.8934 51.7216,37.7827C 50.0915,40.9998 46.8109,42.5804 42.2823,42.9133C 42.769,43.9729 43.7012,44.3758 43.9294,46.0804C 44.269,48.6255 43.398,52.3543 44.2569,54.0511C 44.6693,54.8637 45.3412,54.8857 45.7944,55.5803C 44.6852,56.8935 41.9355,55.4337 41.6224,54.0511C 41.086,51.6835 42.4394,48.0126 40.9642,46.4078C 41.0689,48.9899 40.3539,52.6172 41.0744,54.9243C 41.3583,55.8317 42.1781,56.1818 41.9526,56.9999C 36.7977,57.5236 38.9509,50.3273 38.1092,46.0804C 37.3319,46.1355 37.6731,47.2452 37.6711,47.7181C 37.6483,51.8664 38.5193,57.555 34.0491,56.9999C 33.9173,56.1289 34.6483,55.8317 34.9261,55.0357C 35.7426,52.7016 34.7734,49.2242 35.1483,46.4078C 33.4416,47.6939 35.3269,52.1851 34.2696,54.4877C 33.6599,55.8125 31.6974,56.3896 30.2084,55.7975C 30.4019,54.8107 31.4217,54.9701 31.8534,54.0511C 32.4576,52.7689 31.8578,50.9232 32.0739,49.0285C 28.9151,49.6586 26.4658,48.937 25.2676,46.9536C 24.731,46.0627 24.5976,45.0131 23.9493,44.2243C 23.3043,43.4348 22.274,43.3285 21.9746,42.2595C 25.8864,41.3179 26.0358,46.2849 29.5491,46.4078C 30.6262,46.447 31.1858,46.0964 32.183,45.8626C 32.462,44.6101 33.0595,43.6762 33.9388,43.0219C 29.5689,42.4238 25.9587,41.0627 24.2801,37.7827C 20.3061,37.9784 16.6698,38.5092 13.3021,39.3102C 16.3589,38.2 20.1296,37.8019 24.1703,37.6718C 23.9322,36.2402 21.8446,36.6338 20.548,36.6895C 18.1395,36.7959 15.1075,37.0952 13.193,37.4547C 15.9691,36.4651 19.8622,36.5886 23.6218,36.5809C 22.4724,32.9756 22.8705,27.2485 25.3782,25.1156C 24.6676,23.3245 24.8881,20.3951 25.8175,18.9999C 28.6169,19.1261 30.3148,20.3466 32.0739,21.5125C 34.2558,20.8918 36.5491,20.5837 39.538,20.7473C 40.7955,20.8174 42.1025,21.3819 43.0491,21.2926C 43.978,21.2055 45.0022,20.163 45.903,19.765C 47.0788,19.2463 48.0728,19.0484 49.4162,18.9999 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="GithubAssembliesItem" Header="{DynamicResource MenuGithubAssemblies}" Click="GithubAssembliesItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 17.4167,17.4167L 58.5833,17.4167L 58.5833,55.4167L 17.4167,55.4167L 17.4167,17.4167 Z M 20.5833,20.5834L 20.5833,37.9999L 55.4166,37.9999L 55.4166,20.5834L 20.5833,20.5834 Z M 20.5833,52.25L 55.4166,52.25L 55.4166,49.0832L 20.5833,49.0832L 20.5833,52.25 Z M 55.4166,44.3332L 20.5833,44.3332L 20.5833,47.4999L 55.4166,47.4999L 55.4166,44.3332 Z M 55.4166,39.5832L 20.5833,39.5832L 20.5833,42.7499L 55.4166,42.7499L 55.4166,39.5832 Z M 27.0011,34.8333L 24.7844,34.8333L 24.7844,23.8978L 27.0011,23.8978L 27.0011,34.8333 Z M 30.0306,26.2622C 29.6626,26.2622 29.3613,26.1472 29.1266,25.917C 28.8918,25.6869 28.7744,25.404 28.7744,25.0685C 28.7744,24.7252 28.8918,24.4443 29.1266,24.2257C 29.3613,24.0071 29.6626,23.8978 30.0306,23.8978C 30.4031,23.8978 30.7056,24.0071 30.938,24.2257C 31.1704,24.4443 31.2867,24.7252 31.2867,25.0685C 31.2867,25.4179 31.1704,25.7042 30.938,25.9274C 30.7056,26.1506 30.4031,26.2622 30.0306,26.2622 Z M 31.1389,34.8333L 28.9222,34.8333L 28.9222,27.4445L 31.1389,27.4445L 31.1389,34.8333 Z M 32.4689,34.5817L 32.4689,32.6167L 33.6107,33.1732L 34.6855,33.3556L 35.66,33.2124C 35.897,33.117 36.0155,32.9723 36.0155,32.7783L 35.8539,32.4204L 35.4394,32.1699L 34.8853,31.9771L 34.3046,31.7831L 33.5149,31.4287L 32.9422,30.9877L 32.5901,30.4081L 32.4689,29.6288C 32.4689,29.2193 32.5609,28.8664 32.7448,28.5701C 32.9288,28.2738 33.1735,28.0317 33.4791,27.8439L 34.5297,27.4294L 35.7616,27.2967L 36.7752,27.3729L 37.7889,27.5945L 37.7889,29.3656L 36.8283,29.0331L 35.8216,28.9222L 35.3852,28.9557L 35.0227,29.0538L 34.7756,29.2201L 34.6855,29.451L 34.8195,29.795L 35.1693,30.0421L 35.6484,30.228L 36.1726,30.3954L 37.02,30.7383L 37.67,31.1747L 38.0867,31.7623L 38.2322,32.5636C 38.2322,32.9977 38.1356,33.3683 37.9424,33.6754C 37.7492,33.9825 37.4926,34.2326 37.1724,34.4258L 36.0652,34.8483L 34.7641,34.9811C 33.9374,34.9811 33.1724,34.848 32.4689,34.5817 Z M 43.8478,34.6856C 43.5184,34.8826 43.0227,34.9811 42.3608,34.9811C 40.7906,34.9811 40.0056,34.1429 40.0056,32.4666L 40.0056,29.07L 38.8233,29.07L 38.8233,27.4444L 40.0056,27.4444L 40.0056,25.8697L 42.2222,25.2278L 42.2222,27.4444L 43.8478,27.4444L 43.8478,29.07L 42.2222,29.07L 42.2222,32.0533C 42.2222,32.8229 42.5216,33.2078 43.1204,33.2078L 43.8478,33.06L 43.8478,34.6856 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="ShareItem" Header="{DynamicResource MenuShare}" Click="ShareItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 32.4113,38C 32.4113,38.1309 32.3817,38.2533 32.3742,38.3843L 45.9897,45.1862C 47.1549,44.2024 48.6467,43.586 50.2943,43.586C 53.9978,43.586 57,46.588 57,50.2909C 57,53.998 53.9978,57 50.2943,57C 46.5871,57 43.5887,53.998 43.5887,50.2909C 43.5887,50.1558 43.6183,50.0376 43.6258,49.9067L 30.0103,43.1047C 28.8414,44.0843 27.3533,44.7007 25.7056,44.7007C 22.0021,44.7007 19,41.7029 19,38C 19,34.2929 22.0021,31.2909 25.7056,31.2909C 27.3533,31.2909 28.8414,31.9116 30.0103,32.8954L 43.6258,26.0891C 43.6183,25.9582 43.5887,25.8358 43.5887,25.7007C 43.5887,22.002 46.5871,19 50.2943,19C 53.9978,19 57,22.002 57,25.7007C 57,29.4078 53.9978,32.4098 50.2943,32.4098C 48.6429,32.4098 47.1549,31.7934 45.9897,30.8053L 32.3742,37.6158C 32.3817,37.7425 32.4113,37.8649 32.4113,38 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="{DynamicResource Developer}" Visibility="Collapsed" x:Name="DevMenu">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 25.3333,42.75C 26.5189,42.75 27.6436,43.0106 28.6533,43.4777L 34.9459,37.185L 32.5825,34.8217L 30.3433,37.0609L 28.1042,34.8217L 29.0343,33.8915C 27.1425,33.1521 25.7233,31.6492 23.4735,29.3994C 18.836,24.7619 16.1846,19.8945 18.0395,18.0396C 19.8945,16.1846 23.9702,18.0444 28.6077,22.6819C 30.8575,24.9317 33.1521,27.1425 33.8915,29.0344L 34.8217,28.1042L 37.0608,30.3433L 34.8217,32.5825L 37.185,34.9459L 43.4777,28.6533C 43.0106,27.6436 42.75,26.5189 42.75,25.3333C 42.75,20.9611 46.2944,17.4167 50.6667,17.4167C 51.6877,17.4167 52.6636,17.61 53.5597,17.9619L 47.5,24.0216L 51.9783,28.5L 58.0381,22.4403C 58.39,23.3364 58.5833,24.3123 58.5833,25.3333C 58.5833,29.7056 55.0389,33.25 50.6667,33.25C 49.8136,33.25 48.9921,33.1151 48.2222,32.8654L 41.6634,39.4242L 50.8787,48.6395L 51.4384,48.0797L 56.8841,53.5253L 53.5253,56.8841L 48.0797,51.4384L 48.6395,50.8787L 39.4242,41.6634L 32.8654,48.2222C 33.1151,48.9921 33.25,49.8136 33.25,50.6667C 33.25,55.0389 29.7056,58.5833 25.3333,58.5833C 24.3123,58.5833 23.3364,58.39 22.4403,58.0381L 28.5,51.9783L 24.0217,47.5L 17.9619,53.5597C 17.61,52.6636 17.4167,51.6877 17.4167,50.6667C 17.4167,46.2944 20.9611,42.75 25.3333,42.75 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
<MenuItem x:Name="NewItem" Header="{DynamicResource New}" Click="NewItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 35,19L 41,19L 41,35L 57,35L 57,41L 41,41L 41,57L 35,57L 35,41L 19,41L 19,35L 35,35L 35,19 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="EditItem" Header="{DynamicResource Edit}" Click="EditItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 53.2929,21.2929L 54.7071,22.7071C 56.4645,24.4645 56.4645,27.3137 54.7071,29.0711L 52.2323,31.5459L 44.4541,23.7677L 46.9289,21.2929C 48.6863,19.5355 51.5355,19.5355 53.2929,21.2929 Z M 31.7262,52.052L 23.948,44.2738L 43.0399,25.182L 50.818,32.9601L 31.7262,52.052 Z M 23.2409,47.1023L 28.8977,52.7591L 21.0463,54.9537L 23.2409,47.1023 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
<MenuItem x:Name="CloneItem" Header="{DynamicResource Clone}" Click="CloneItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 27,20L 38.75,20L 37.75,19L 24,19L 24,50L 27,50L 27,20 Z M 46.25,20L 59,32.75L 59,59L 27,59L 27,54L 20,54L 20,15L 39.25,15L 44.25,20L 46.25,20 Z M 31,24L 31,55L 55,55L 55,37L 42,37L 42,24L 31,24 Z M 46,25.25L 46,33L 53.75,33L 46,25.25 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem x:Name="LogItem" Header="{DynamicResource MenuViewLog}" Click="LogItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 38,19C 47.3888,19 55,21.0147 55,23.5038L 55,25.5C 55,27.9853 47.3888,30 38,30C 28.6112,30 21,27.9853 21,25.5L 21,23.5C 21,21.0147 28.6112,19 38,19 Z M 55,52.5C 55,54.9853 47.3888,57 38,57C 28.6112,57 21,54.9853 21,52.5L 21,46.5C 21,48.9853 28.6112,51 38,51C 47.384,51 54.9921,48.9874 55,46.5039L 55,52.5 Z M 55,43.5C 55,45.9853 47.3888,48 38,48C 28.6112,48 21,45.9853 21,43.5L 21,37.5C 21,39.9853 28.6112,42 38,42C 47.384,42 54.9921,39.9874 55,37.5038L 55,43.5 Z M 55,34.5C 55,36.9853 47.3888,39 38,39C 28.6112,39 21,36.9853 21,34.5L 21,28.5C 21,30.9853 28.6112,33 38,33C 47.384,33 54.9921,30.9874 55,28.5038L 55,34.5 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</DataGrid.ContextMenu>
<DataGrid.Columns>
<DataGridCheckBoxColumn Binding="{Binding InjectChecked, UpdateSourceTrigger=PropertyChanged}"
EditingElementStyle="{DynamicResource MetroDataGridCheckBox}"
ElementStyle="{DynamicResource MetroDataGridCheckBox}"
Width="35"
/>
<DataGridTextColumn Header="{DynamicResource ColumnName}" Width="200" Binding="{Binding DisplayName, UpdateSourceTrigger=PropertyChanged}"/>
<DataGridTextColumn Header="{DynamicResource ColumnType}" Width="75" Binding="{Binding Type}" IsReadOnly="True"/>
<DataGridTextColumn Header="{DynamicResource ColumnVersion}" Width="110" Binding="{Binding Version}" IsReadOnly="True"/>
<DataGridTextColumn Header="{DynamicResource ColumnLocation}" Width="*" Binding="{Binding Location}" IsReadOnly="True"/>
</DataGrid.Columns>
</DataGrid>
<Controls:SplitButton
x:Name="ProfilesButton"
IsTextSearchEnabled="True"
Width="171"
Height="23"
SelectedItem="{Binding Config.SelectedProfile, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
ItemsSource="{Binding Config.Profiles, UpdateSourceTrigger=PropertyChanged}"
DisplayMemberPath="Name"
VerticalAlignment="Top" Margin="10,10,0,0" HorizontalAlignment="Left"
SelectionChanged="ProfilesButton_OnSelectionChanged"
MouseDoubleClick="ProfilesButton_OnMouseDoubleClick"
>
<Controls:SplitButton.Icon>
<Canvas Margin="5,10,0,10"
Width="16"
Height="16"
VerticalAlignment="Center">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="16"
Height="16"
Data="F1 M 38,19C 43.5417,19 45.9167,22.1667 45.1174,28.8134C 45.8315,29.2229 46.3125,29.9928 46.3125,30.875C 46.3125,31.9545 45.5923,32.8658 44.6061,33.1546C 44.1941,34.623 43.5543,35.9229 42.75,36.9628L 42.75,41.9583C 45.3889,42.4861 47.5,42.75 50.6667,44.3333C 53.8333,45.9167 54.8889,47.3681 57,49.4792L 57,57L 19,57L 19,49.4792C 21.1111,47.3681 22.1667,45.9167 25.3333,44.3333C 28.5,42.75 30.6111,42.4861 33.25,41.9583L 33.25,36.9628C 32.4457,35.9229 31.8059,34.623 31.3939,33.1546C 30.4077,32.8658 29.6875,31.9545 29.6875,30.875C 29.6875,29.9928 30.1685,29.2229 30.8826,28.8134C 30.0833,22.1667 32.4583,19 38,19 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</Controls:SplitButton.Icon>
<Controls:SplitButton.ContextMenu>
<ContextMenu>
<MenuItem Header="{DynamicResource NewProfile}" Click="NewProfileMenuItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 35,19L 41,19L 41,35L 57,35L 57,41L 41,41L 41,57L 35,57L 35,41L 19,41L 19,35L 35,35L 35,19 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="{DynamicResource ChangeName}" Click="EditProfileMenuItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 53.2929,21.2929L 54.7071,22.7071C 56.4645,24.4645 56.4645,27.3137 54.7071,29.0711L 52.2323,31.5459L 44.4541,23.7677L 46.9289,21.2929C 48.6863,19.5355 51.5355,19.5355 53.2929,21.2929 Z M 31.7262,52.052L 23.948,44.2738L 43.0399,25.182L 50.818,32.9601L 31.7262,52.052 Z M 23.2409,47.1023L 28.8977,52.7591L 21.0463,54.9537L 23.2409,47.1023 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="{DynamicResource DeleteProfile}" Click="RemoveProfileMenuItem_OnClick">
<MenuItem.Icon>
<Canvas Width="10"
Height="15"
Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0">
<Path Canvas.Left="0"
Canvas.Top="0"
Width="15"
Height="15"
Data="F1 M 25.3333,23.75L 50.6667,23.75C 51.5411,23.75 51.8541,27.3125 51.8541,27.3125L 24.1458,27.3125C 24.1458,27.3125 24.4589,23.75 25.3333,23.75 Z M 35.625,19.7917L 40.375,19.7917C 40.8122,19.7917 41.9583,20.9378 41.9583,21.375C 41.9583,21.8122 40.8122,22.9584 40.375,22.9584L 35.625,22.9584C 35.1878,22.9584 34.0416,21.8122 34.0416,21.375C 34.0416,20.9378 35.1878,19.7917 35.625,19.7917 Z M 27.7083,28.5L 48.2916,28.5C 49.1661,28.5 49.875,29.2089 49.875,30.0834L 48.2916,53.8334C 48.2916,54.7078 47.5828,55.4167 46.7083,55.4167L 29.2917,55.4167C 28.4172,55.4167 27.7083,54.7078 27.7083,53.8334L 26.125,30.0834C 26.125,29.2089 26.8339,28.5 27.7083,28.5 Z M 30.0833,31.6667L 30.4792,52.25L 33.25,52.25L 32.8542,31.6667L 30.0833,31.6667 Z M 36.4167,31.6667L 36.4167,52.25L 39.5833,52.25L 39.5833,31.6667L 36.4167,31.6667 Z M 43.1458,31.6667L 42.75,52.25L 45.5208,52.25L 45.9167,31.6667L 43.1458,31.6667 Z "
Fill="{DynamicResource BlackBrush}"
Stretch="Fill" />
</Canvas>
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</Controls:SplitButton.ContextMenu>
</Controls:SplitButton>
<Button x:Name="InstallButton" Content="{DynamicResource InstallNewAssembly}" Margin="0,0,10,10" Click="InstallButton_Click" HorizontalAlignment="Right" Width="181" Height="25" VerticalAlignment="Bottom"/>
<TextBox x:Name="SearchTextBox" Height="23" Margin="0,10,10,0" TextWrapping="Wrap" VerticalAlignment="Top" TextChanged="TextBoxBase_OnTextChanged" HorizontalAlignment="Right" Width="181" />
<Controls:ProgressRing IsActive="{Binding Working}" Foreground="{DynamicResource AccentColorBrush}" HorizontalAlignment="Right" Margin="0,0,22,50" VerticalAlignment="Bottom" Width="64" Height="56"/>
<Button Content="{DynamicResource UpdateAll}" HorizontalAlignment="Left" Margin="10,0,0,10" Width="108" Height="25" VerticalAlignment="Bottom" Click="UpdateAll_OnClick"/>
<Button Content="{DynamicResource CompileAll}" HorizontalAlignment="Left" Margin="123,0,0,10" Width="110" Height="25" VerticalAlignment="Bottom" Click="CompileAll_OnClick"/>
</Grid>
</TabItem>
<TabItem x:Name="SettingsTabItem" Header="Settings" Height="36" VerticalAlignment="Top">
<Grid Background="#FFE5E5E5">
<ContentControl x:Name="SettingsFrame" Margin="167,10,10,10" />
<TreeView Margin="10,10,0,10" HorizontalAlignment="Left" Width="152" SelectedItemChanged="TreeView_OnSelectedItemChanged" >
<TreeViewItem x:Name="GeneralSettingsItem" x:Uid="General" Header="{DynamicResource General}" />
<TreeViewItem x:Uid="Hotkeys" Header="{DynamicResource Hotkeys}"/>
<TreeViewItem x:Uid="Log" Header="{DynamicResource Log}"/>
</TreeView>
</Grid>
</TabItem>
</TabControl>
</Grid>
</Controls:MetroWindow>