-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileViewControl.xaml
More file actions
528 lines (507 loc) · 37.5 KB
/
FileViewControl.xaml
File metadata and controls
528 lines (507 loc) · 37.5 KB
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
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<UserControl x:Class="ReceiverControls.FileViewControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ReceiverControls"
xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"
xmlns:netInterfaces="clr-namespace:NetInterfaces;assembly=NetInterfaces"
xmlns:properties="clr-namespace:LocalResources.Properties;assembly=LocalResources"
xmlns:auxControls="clr-namespace:AuxControls.Converters;assembly=AuxControls"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:converters="clr-namespace:ReceiverControls.Converters"
xmlns:auxControls1="clr-namespace:AuxControls;assembly=AuxControls"
Unloaded="UserControl_Unloaded" Loaded="UserControl_Loaded">
<UserControl.Resources>
<auxControls:StringToVisibilityHiddenOpoziteConverter x:Key="stringToVisOposite" />
<auxControls:StringToVisibilityOpoziteConverter x:Key="stringToVisCollapsOposite" />
<auxControls:StringToVisibilityHiddenConverter x:Key="stringToVis" />
<auxControls:StringToVisibilityConverter x:Key="stringToVisCollaps"/>
<auxControls:EmptyStringToVisibilityConverter x:Key="emStringToVisCollaps"/>
<auxControls:EmptyStringToVisibilityOpozConverter x:Key="emStringToVisOposCollaps"/>
<auxControls:EmptyToColorConverter x:Key="emptyToColor" />
<auxControls:EnumToLocalizedStringConvertor x:Key="enumToString" />
<auxControls:NullToVisibilityConverter x:Key="nullToVis" />
<auxControls:BoolToVisibilityConverter x:Key="boolToVis" />
<auxControls:StringToVisibilityConverter x:Key="stringStateToVis" />
<auxControls:SelectedIndexToBoolConverter x:Key="selIndexToBool" />
<converters:BiteToStringConverter x:Key="sizeToStr" />
<c1:C1ToolbarCommand x:Key="cmdRefresh" SmallImageSource="Images/update.png" LargeImageSource="Images/update.png" />
<c1:C1ToolbarCommand x:Key="stopRec" SmallImageSource="Images/stop.png" LargeImageSource="Images/stop.png" />
<c1:C1ToolbarCommand x:Key="cancelDown" SmallImageSource="Images/cancel_12.png" LargeImageSource="Images/cancel_12.png" />
<c1:C1ToolbarCommand x:Key="delFile" SmallImageSource="Images/deletered.png" LargeImageSource="Images/deletered.png" />
<c1:C1ToolbarCommand x:Key="downloadFile" SmallImageSource="Images/download.png" LargeImageSource="Images/download.png" />
<c1:C1ToolbarCommand x:Key="cancelDowns" SmallImageSource="Images/cancel_12.png" LargeImageSource="Images/cancel_12.png" />
<c1:C1ToolbarCommand x:Key="delFiles" SmallImageSource="Images/deletered.png" LargeImageSource="Images/deletered.png" />
<c1:C1ToolbarCommand x:Key="delAllFiles" SmallImageSource="Images/deletered.png" LargeImageSource="Images/deletered.png" />
<c1:C1ToolbarCommand x:Key="downloadFiles" SmallImageSource="Images/download.png" LargeImageSource="Images/download.png" />
<c1:C1ToolbarCommand x:Key="startFile" SmallImageSource="Images/start.png" LargeImageSource="Images/start.png" />
<Style TargetType="CheckBox" BasedOn="{StaticResource {x:Type CheckBox}}">
<Setter Property="FontSize" Value="12" />
<Setter Property="Padding" Value="1" />
</Style>
<Style TargetType="c1:C1ComboBox" BasedOn="{StaticResource {x:Type c1:C1ComboBox}}">
<Setter Property="FontSize" Value="12" />
<Setter Property="Padding" Value="1" />
</Style>
<Style TargetType="c1:C1ComboBoxItem" BasedOn="{StaticResource {x:Type c1:C1ComboBoxItem}}">
<Setter Property="FontSize" Value="10" />
<Setter Property="Padding" Value="1" />
</Style>
<Style TargetType="c1:C1NumericBox" BasedOn="{StaticResource {x:Type c1:C1NumericBox }}">
<Setter Property="FontSize" Value="10" />
<Setter Property="Padding" Value="1" />
</Style>
<CollectionViewSource Source="{Binding JpsFiles, Mode=OneTime}" x:Key="files" >
<!--
<CollectionViewSource.SortDescriptions>
<scm:SortDescription PropertyName="Modified"/>
</CollectionViewSource.SortDescriptions>
-->
</CollectionViewSource>
</UserControl.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<c1:C1FlexGrid ItemsSource="{Binding Source={StaticResource files}, Mode=OneTime}"
x:Name="dataGrid" AutoGenerateColumns="False" SelectionMode="ListBox"
HeadersVisibility="All" SelectionChanged="C1FlexGrid_SelectionChanged"
SelectionChanging="DataGrid_SelectionChanging"
IsSynchronizedWithCurrentItem="False" >
<c1:C1FlexGrid.ContextMenu>
<ContextMenu BorderBrush="{DynamicResource SelectedBorderBrush}" BorderThickness="1">
<ContextMenu.Resources>
<Style TargetType="MenuItem">
</Style>
</ContextMenu.Resources>
<MenuItem Header="{x:Static properties:Resources.Button290}" Command="{StaticResource downloadFiles}" >
<MenuItem.Icon>
<Image Source="Images/download.png" Width="12" Style="{DynamicResource MenuIcon}" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Header="{x:Static properties:Resources.CanceFiletransferString}" Command="{StaticResource cancelDowns}" >
<MenuItem.Icon>
<Image Source="Images/cancel_12.png" Width="12" Style="{DynamicResource MenuIcon}" />
</MenuItem.Icon>
</MenuItem>
<Separator />
<MenuItem Header="{x:Static properties:Resources.Button160}" Command="{StaticResource delFiles}" IsEnabled="{Binding Connected, Mode=OneWay}">
<MenuItem.Icon>
<Image Source="Images/deletered.png" Width="12" Style="{DynamicResource MenuIcon}" />
</MenuItem.Icon>
</MenuItem>
</ContextMenu>
</c1:C1FlexGrid.ContextMenu>
<c1:C1FlexGrid.Columns>
<c1:Column Header="{x:Static properties:Resources.TextBlock255}" Binding="{Binding Name, Mode=OneWay}" Width="120"/>
<c1:Column Header="{x:Static properties:Resources.GridViewColumnHeader288}" Binding="{Binding Size, Mode=OneWay}"
DataType="{x:Type sys:Int64}" ValueConverter="{StaticResource sizeToStr}"
Width="150" HorizontalAlignment="Left"/>
<c1:Column Header="{x:Static properties:Resources.GridViewColumn239}" Binding="{Binding Modified, Mode=OneWay}" DataType="{x:Type sys:DateTime}"
HorizontalAlignment="Left" Width="160"/>
<c1:Column Header="{x:Static properties:Resources.GridViewColumn289}" Width="50" Binding="{Binding IsRecording, Mode=OneWay}" >
<c1:Column.CellTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Border CornerRadius="50" VerticalAlignment="Center"
Width="14"
Height="14"
Padding="0,0,0,1"
Background="OrangeRed"
BorderBrush="White"
BorderThickness="0">
<TextBlock HorizontalAlignment="Center" FontFamily="Courier"
Text="{Binding Port, Mode=OneWay}" FontSize="12" Foreground="White" VerticalAlignment="Center"/>
<Border.Style>
<Style>
<Style.Triggers>
<DataTrigger Binding="{Binding IsRecording, Mode=OneWay}" Value="false">
<Setter Property="Image.Visibility" Value="Collapsed" />
</DataTrigger>
</Style.Triggers>
</Style>
</Border.Style>
</Border>
<!--Image Source="Images/file_a.png" Height="14" Margin="5,0">
<Image.Style>
<Style>
<Setter Property="Image.Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsRecording}" Value="True">
<Setter Property="Image.Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</>
<Image Grid.Column="1" Source="Images/file_b.png" Height="14" Margin="5,0">
<Image.Style>
<Style>
<Setter Property="Image.Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsRecording}" Value="True">
<Setter Property="Image.Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
<Button Grid.Column="2" Margin="5,0" HorizontalAlignment="Right"
IsEnabled="{Binding DataContext.Connected, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:FileViewControl}}}"
Command="{StaticResource stopRec}" ToolTip="{x:Static properties:Resources.StopRecordingString}">
<Button.Style>
<Style>
<Setter Property="Button.Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsRecB}" Value="True">
<Setter Property="Button.Visibility" Value="Visible" />
</DataTrigger>
<DataTrigger Binding="{Binding IsRecA}" Value="True">
<Setter Property="Button.Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
<Button.Template>
<ControlTemplate>
<Image Source="Images/stop.png" Height="12"/>
</ControlTemplate>
</Button.Template>
</-->
</Grid>
</DataTemplate>
</c1:Column.CellTemplate>
</c1:Column>
<c1:Column Width="30">
<c1:Column.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="5,0" x:Name="c1bDown"
Visibility="{Binding IsRecording, Mode=OneWay, Converter={StaticResource boolToVis}, ConverterParameter=false}">
<Button Command="{StaticResource downloadFile}" ToolTip="{x:Static properties:Resources.Button290}" VerticalAlignment="Center">
<Button.Style>
<Style>
<Setter Property="Button.Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding State, Mode=OneWay}" Value="{x:Static netInterfaces:JpsFileState.None}">
<Setter Property="Button.Visibility" Value="Visible" />
</DataTrigger>
<DataTrigger Binding="{Binding State, Mode=OneWay}" Value="{x:Static netInterfaces:JpsFileState.Ready}">
<Setter Property="Button.Visibility" Value="Visible" />
</DataTrigger>
<DataTrigger Binding="{Binding State, Mode=OneWay}" Value="{x:Static netInterfaces:JpsFileState.Processed}">
<Setter Property="Button.Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
<Button.Template>
<ControlTemplate>
<Image Source="Images/download.png" Height="12"/>
</ControlTemplate>
</Button.Template>
</Button>
<Button Command="{StaticResource cancelDown}" ToolTip="{x:Static properties:Resources.CanceFiletransferString}"
VerticalAlignment="Center">
<Button.Style>
<Style>
<Setter Property="Button.Visibility" Value="Collapsed" />
<Style.Triggers>
<DataTrigger Binding="{Binding State, Mode=OneWay}" Value="{x:Static netInterfaces:JpsFileState.Cashing}">
<Setter Property="Button.Visibility" Value="Visible" />
</DataTrigger>
<DataTrigger Binding="{Binding State, Mode=OneWay}" Value="{x:Static netInterfaces:JpsFileState.Waiting}">
<Setter Property="Button.Visibility" Value="Visible" />
</DataTrigger>
</Style.Triggers>
</Style>
</Button.Style>
<Button.Template>
<ControlTemplate>
<Image Source="Images/cancel_12.png" Height="12"/>
</ControlTemplate>
</Button.Template>
</Button>
</StackPanel>
</DataTemplate>
</c1:Column.CellTemplate>
</c1:Column>
<c1:Column Header="{x:Static properties:Resources.ComboBoxItem66}" Width="200">
<c1:Column.CellTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" >
<StackPanel Orientation="Horizontal" x:Name="progrBar"
Visibility="{Binding State, Mode=OneWay, Converter={StaticResource stringToVisCollaps},
ConverterParameter={x:Static netInterfaces:JpsFileState.Cashing}}">
<c1:C1ProgressBar Width="60" Height="10" VerticalAlignment="Center" Value="{Binding Path=CashedPersent, Mode=OneWay}"/>
<TextBlock Margin="5,0" Style="{DynamicResource TbSelectedSmall}">
<TextBlock.Text >
<MultiBinding StringFormat="{}{0}% ({1})">
<Binding Path="CashedPersent" Mode="OneWay"/>
<Binding Path="CashedString" Mode="OneWay" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</StackPanel>
<StackPanel Orientation="Horizontal">
<Image Height="12" ToolTip="{Binding ProcessingResult, Mode=OneWay, Converter={StaticResource enumToString}}" VerticalAlignment="Center" Margin="5,0">
<Image.Style>
<Style>
<Style.Triggers>
<DataTrigger Binding="{Binding ProcessingResult, Mode=OneWay}" Value="{x:Static netInterfaces:OperationResult.Sucsess}">
<Setter Property="Image.Source" Value= "Images\task_ok.png" />
</DataTrigger>
<DataTrigger Binding="{Binding ProcessingResult, Mode=OneWay}" Value="{x:Static netInterfaces:OperationResult.Error}">
<Setter Property="Image.Source" Value= "Images\ico_err_16.png" />
</DataTrigger>
<DataTrigger Binding="{Binding ProcessingResult, Mode=OneWay}" Value="{x:Static netInterfaces:OperationResult.Canceled}">
<Setter Property="Image.Source" Value= "Images\cancel_12.png" />
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
<TextBlock Grid.Column="1" Text="{Binding ProcessingResult, Mode=OneWay, Converter={StaticResource enumToString}}" VerticalAlignment="Center">
<TextBlock.Style>
<Style>
<Setter Property="TextBlock.Foreground" Value="Green" />
<Style.Triggers>
<DataTrigger Binding="{Binding ProcessingResult, Mode=OneWay}" Value="{x:Static netInterfaces:OperationResult.Error}">
<Setter Property="TextBlock.Foreground" Value="Red" />
</DataTrigger>
<DataTrigger Binding="{Binding ProcessingResult, Mode=OneWay}" Value="{x:Static netInterfaces:OperationResult.Canceled}">
<Setter Property="TextBlock.Foreground" Value="Red" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
</StackPanel>
<TextBlock Margin="5,0" Text="{Binding Path=State, Mode=OneWay, Converter={StaticResource enumToString}}" VerticalAlignment="Center">
<TextBlock.Style>
<Style>
<Setter Property="TextBlock.Foreground" Value="{DynamicResource SelectedBorderBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding State, Mode=OneWay}" Value="{x:Static netInterfaces:JpsFileState.Ready}">
<Setter Property="TextBlock.Foreground" Value="Green" />
</DataTrigger>
</Style.Triggers>
</Style>
</TextBlock.Style>
</TextBlock>
<!--TextBlock Margin="0,0,5,0" Text="{Binding Path=Cashed}" VerticalAlignment="Center" Foreground="{x:Static SystemColors.HotTrackBrush}"/-->
<TextBlock Margin="0,0,5,0" Text="{Binding Path=Info, Mode=OneWay}" Style="{DynamicResource TbSelectedSmall}"/>
</StackPanel>
</DataTemplate>
</c1:Column.CellTemplate>
</c1:Column>
<c1:Column Width="30">
<c1:Column.CellTemplate>
<DataTemplate>
<Button Command="{StaticResource delFile}" ToolTip="{x:Static properties:Resources.Button160}"
IsEnabled="{Binding DataContext.Connected, Mode=OneWay,
RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:FileViewControl}}}">
<Button.Template>
<ControlTemplate>
<Image Source="Images/deletered.png" Height="10"/>
</ControlTemplate>
</Button.Template>
</Button>
</DataTemplate>
</c1:Column.CellTemplate>
</c1:Column>
<c1:Column Header="{x:Static properties:Resources.InfoString}" Binding="{Binding Path, Mode=OneWay}" Width="*"/>
</c1:C1FlexGrid.Columns>
</c1:C1FlexGrid>
<Grid Margin="5" IsEnabled="{Binding Connected, Mode=OneWay}" Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ItemsControl ItemsSource="{Binding InfoParams.RecFiles, Mode=OneWay}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" IsItemsHost="True"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="5">
<Border CornerRadius="50" VerticalAlignment="Center"
Width="18"
Height="18"
Padding="0,0,0,1"
Background="OrangeRed"
BorderBrush="White"
BorderThickness="0">
<TextBlock HorizontalAlignment="Center" Text="{Binding Key, Mode=OneWay}" FontSize="14" FontFamily="Courier" Foreground="White" FontWeight="DemiBold"
VerticalAlignment="Center"/>
</Border>
<TextBlock Text="{Binding Value, Mode=OneTime}" Style="{DynamicResource TbSelectedSmall}" Margin="5,0"/>
<Button Grid.Column="1" VerticalAlignment="Center" Style="{DynamicResource TransparentStyle}"
Visibility="{Binding Value, Converter={StaticResource emStringToVisCollaps}, Mode=OneTime}"
Command="{StaticResource startFile}" CommandParameter="{Binding Key, Mode=OneTime}"
ToolTip="{x:Static properties:Resources.Window129}">
<Button.Template>
<ControlTemplate>
<Image Source="Images/start.png" />
</ControlTemplate>
</Button.Template>
</Button>
<Button Grid.Column="2" Margin="5,0" Command="{StaticResource stopRec}" CommandParameter="{Binding Key, Mode=OneTime}"
ToolTip="{x:Static properties:Resources.StopRecordingString}" Style="{DynamicResource TransparentStyle}"
Visibility="{Binding Value, Converter={StaticResource emStringToVisOposCollaps}, Mode=OneTime}">
<Button.Template>
<ControlTemplate>
<Image Source="Images/stop.png" />
</ControlTemplate>
</Button.Template>
</Button>
<c1:C1Separator Style="{DynamicResource tbSep}" Margin="5, 0" Grid.Column="1" />
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="5,0"
IsEnabled="{Binding ElementName=dataGrid, Path=SelectedIndex, Converter={StaticResource selIndexToBool}}" >
<Button VerticalAlignment="Center" IsEnabled="{Binding Connected, Mode=OneWay}"
Command="{StaticResource downloadFiles}" >
<StackPanel Orientation="Horizontal" Margin="5">
<Image Source="Images/download.png" Margin="5,0" Height="12"/>
<TextBlock Text="{x:Static properties:Resources.Button290}" VerticalAlignment="Center" />
</StackPanel>
</Button>
</StackPanel>
<c1:C1Separator Style="{DynamicResource tbSep}" Margin="5, -5" Grid.Column="2"/>
<StackPanel Grid.Column="3" Orientation="Horizontal" VerticalAlignment="Center" Margin="10,0" >
<TextBlock Text="{x:Static properties:Resources.FilesString}" Margin="5,0,3,0"
VerticalAlignment="Center" ToolTip="{Binding Path=JpsFiles.Count, Mode=OneWay}"/>
<TextBlock Grid.Row="1" Grid.Column="1" Margin="0,0,5,0" Text="{Binding JpsFiles.Count, Mode=OneWay}"
Style="{DynamicResource TbSelectedSmall}"/>
<!--
<TextBlock Margin="0,0,5,0" Text="{Binding InfoParams.FileCount, Mode=OneWay}"
Style="{DynamicResource TbSelectedSmall}" Foreground="Red"/>
-->
<TextBlock Text="{x:Static properties:Resources.FreeMemory}" Margin="5,0,3,0"
VerticalAlignment="Center" ToolTip="{Binding Path=InfoParams.FreeMem, Mode=OneWay}"/>
<TextBlock Grid.Row="1" Grid.Column="1" Margin="0,0,5,0"
Text="{Binding InfoParams.UsedFreeTotalMem, Mode=OneWay}" Style="{DynamicResource TbSelectedSmall}"/>
<TextBlock Grid.Row="1" Grid.Column="1" Margin="0,0,5,0"
Text="{Binding InfoParams.CurMem, Mode=OneWay}" Style="{DynamicResource TbSelectedSmall}"/>
</StackPanel>
<c1:C1Separator Style="{DynamicResource tbSep}" Margin="5, -5" Grid.Column="4"/>
<StackPanel Grid.Column="5" VerticalAlignment="Center" Margin="5,0"
IsEnabled="{Binding ElementName=dataGrid, Path=SelectedIndex, Converter={StaticResource selIndexToBool}}" >
<Button VerticalAlignment="Center" IsEnabled="{Binding Connected, Mode=OneWay}" Command="{StaticResource delFiles}" >
<StackPanel Orientation="Horizontal" Margin="5">
<Image Source="Images/deletered.png" Margin="5,0" Height="12"/>
<TextBlock Text="{x:Static properties:Resources.Button160}" VerticalAlignment="Center" Foreground="DarkRed" />
</StackPanel>
</Button>
</StackPanel>
<Button Grid.Column="6" VerticalAlignment="Center" IsEnabled="{Binding Connected, Mode=OneWay}" Margin="10,0"
Command="{StaticResource delAllFiles}" >
<StackPanel Orientation="Horizontal" Margin="5">
<Image Source="Images/deletered.png" Margin="5,0" Height="12"/>
<TextBlock Text="{x:Static properties:Resources.DeleteAllString}" VerticalAlignment="Center" Foreground="DarkRed" />
</StackPanel>
</Button>
</Grid>
<StackPanel Orientation="Horizontal" Grid.Row="2" >
<GroupBox VerticalAlignment="Top" Margin="5" >
<GroupBox.Header>
<TextBlock Text="{x:Static properties:Resources.FileStartSettingsString}" Style="{DynamicResource TbSelected}"/>
</GroupBox.Header>
<Grid >
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="5">
<TextBlock Margin="5,0,0,0" Text="{x:Static properties:Resources.TextBlock208}" VerticalAlignment="Center" />
<TextBox Margin="5,0" MinWidth="100" x:Name="startfileName" VerticalAlignment="Center" />
<StackPanel Orientation="Horizontal" >
<TextBlock Margin="5,0,0,0" VerticalAlignment="Center" Text="{x:Static properties:Resources.TextBlock209}" />
<c1:C1NumericBox Margin="5,0" x:Name="maskNb" MinWidth="45" VerticalAlignment="Center" Value="5" Minimum = "-90" Maximum = "90" />
</StackPanel>
<StackPanel Orientation="Horizontal" >
<TextBlock Margin="5,0,0,0" VerticalAlignment="Center" Text="{x:Static properties:Resources.MessageSetString}" />
<c1:C1ComboBox Margin="5,0" x:Name="msgs" MinWidth="90" VerticalAlignment="Center"
SelectedIndex="0"/>
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="2" Grid.ColumnSpan="3" Margin="5">
<StackPanel Orientation="Horizontal" Grid.Column="2" VerticalAlignment="Center">
<TextBlock Margin="5,0,0,0" VerticalAlignment="Center" Text="{x:Static properties:Resources.TextBlock210}" />
<!--
<c1:C1NumericBox Margin="5,0" x:Name="intervalNb" Format="N" MinWidth="100" VerticalAlignment="Center" Value="0.005"
Minimum = "0.000"
Maximum = "86400"
ValueChanged="intervalNb_ValueChanged"/>
-->
</StackPanel>
<TextBox Margin="2" VerticalAlignment="Center" x:Name="intervalNb" Width="60"
auxControls1:TextBoxMaskBehavior.Mask="Decimal" auxControls1:TextBoxMaskBehavior.MinimumValue="0"
auxControls1:TextBoxMaskBehavior.MaximumValue="86400"/>
<CheckBox Margin="5,0" FlowDirection="RightToLeft" VerticalAlignment="Center"
Checked="FreeEv_Checked"
Content="{x:Static properties:Resources.SendAntennaEventString}" x:Name="freeEv" />
<!--StackPanel Orientation="Horizontal" >
<TextBlock Margin="3" VerticalAlignment="Center" Text="{x:Static properties:Resources.TextBlock215}" />
<TextBox Margin="5,0" x:Name="site" VerticalAlignment="Center" MinWidth="100" />
</>
<StackPanel Orientation="Horizontal" Margin="5,0" IsEnabled="{Binding ElementName=freeEv , Path=IsChecked}" >
<TextBlock Margin="3" VerticalAlignment="Center" Text="{x:Static properties:Resources.AntennaString}" />
<c1:C1ComboBox x:Name="antId" MinWidth="150" Margin="5,0" Height="23" Width="120" Grid.Column="1"/>
<StackPanel Orientation="Horizontal" Grid.Row="1" >
<TextBlock Margin="3" VerticalAlignment="Center" Text="{x:Static properties:Resources.TextBlock217}" />
<c1:C1NumericBox Margin="5,0" x:Name="height" MinWidth="35" VerticalAlignment="Center" />
</StackPanel>
<CheckBox Margin="3" Content="{x:Static properties:Resources.CheckBox218}" x:Name="slant" Grid.Row="1" Grid.Column="1"
VerticalAlignment="Center"/>
</StackPanel-->
</StackPanel>
</Grid>
</GroupBox>
<GroupBox Grid.Row="2" VerticalAlignment="Top" Margin="5" IsEnabled="{Binding ElementName=freeEv , Path=IsChecked}">
<GroupBox.Header>
<TextBlock Text="Free Event" Style="{DynamicResource TbSelected}"/>
</GroupBox.Header>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Margin="5" >
<TextBlock Margin="5,0,0,0" VerticalAlignment="Center" Text="{x:Static properties:Resources.TextBlock215}" />
<TextBox Margin="5,0" x:Name="site" VerticalAlignment="Center" MinWidth="100" />
</StackPanel>
<StackPanel Orientation="Horizontal" Grid.Row="2" >
<StackPanel Orientation="Horizontal" Margin="5" Grid.Row="1" >
<TextBlock Margin="5,0,0,0" VerticalAlignment="Center" Text="{x:Static properties:Resources.AntennaString}" />
<c1:C1ComboBox x:Name="antId" MinWidth="150" Margin="5,0" Width="120" IsEditable="True" />
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Margin="5,0,0,0" VerticalAlignment="Center" Text="{x:Static properties:Resources.TextBlock217}" />
<c1:C1NumericBox Margin="5,0" x:Name="height" MinWidth="35" VerticalAlignment="Center" />
</StackPanel>
<CheckBox Margin="5,0" Content="{x:Static properties:Resources.CheckBox218}" x:Name="slant" Grid.Row="1" Grid.Column="1"
VerticalAlignment="Center"/>
</StackPanel>
</Grid>
</GroupBox>
</StackPanel>
</Grid>
</UserControl>