Commit fd25afbbfecda264f096315f84a64278cdd47a5c

kosmeettisia korjauksia
sovellus/vs/Ajolabra/ALGUI/Dialogs/About.xaml
(1 / 1)
  
2020
2121 <Label Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" Grid.ColumnSpan="2" Content="Syncster" FontSize="18" FontWeight="DemiBold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
2222
23 <Label Grid.Row="2" Grid.ColumnSpan="2" Content="Last modified: May 2019" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
23 <Label Grid.Row="2" Grid.ColumnSpan="2" Content="Last modified: June 2019" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
2424 <Button Grid.Row="3" Grid.Column="1" Content="Close" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0 0 20 0" Padding="5" Click="Button_Click"/>
2525 </Grid>
2626</Window>
sovellus/vs/Ajolabra/ALGUI/MainWindow.xaml
(1 / 1)
  
642642 </Grid.RowDefinitions>
643643
644644 <StackPanel Grid.Row="0">
645 <Label Content="Developed with Touchster version 1.2" FontSize="11" Foreground="LightSlateGray"/>
645 <Label Content="Developed with Touchster up to version 1.32" FontSize="11" Foreground="LightSlateGray"/>
646646 <Separator/>
647647 </StackPanel>
648648
sovellus/vs/Ajolabra/ALGUI/MainWindow.xaml.cs
(22 / 13)
  
9191 _manager.PipelineFaulted += _manager_PipelineFaulted;
9292 _manager.PropertyChanged += _manager_PropertyChanged;
9393
94 _manager.LogMessage += (sender, e) => Console.WriteLine(e);
94 //_manager.LogMessage += (sender, e) => Console.WriteLine(e);
9595 }
9696
9797
10001000
10011001 if (result == System.Windows.Forms.DialogResult.OK)
10021002 {
1003 int recordingsCount = datagrid_record.Items.Count;
1004
10031005 HamsterPath directory =
10041006 new HamsterPath(ResultFolder);
10051007 HamsterPath destination =
10171017 });
10181018
10191019 await _writingSemaphore.WaitAsync();
1020 int errorCounter = 0;
10201021 try
10211022 {
10221023 foreach (var item in datagrid_record.Items)
10231024 {
1024 var row = (item as DataRowView).Row
1025 as HamsterDataSet.RecordingRow;
1026 await _manager.ExportAsync(
1027 HamsterPath.GetCSVFilePath(directory, row.ID),
1028 directory,
1029 row.ID,
1030 exportProgress: progress);
1025 try
1026 {
1027 var row = (item as DataRowView).Row
1028 as HamsterDataSet.RecordingRow;
1029 await _manager.ExportAsync(
1030 HamsterPath.GetCSVFilePath(directory, row.ID),
1031 directory,
1032 row.ID,
1033 exportProgress: progress);
1034 }
1035 catch (Exception ex)
1036 {
1037 errorCounter++;
1038 ShowError(ex);
1039 }
10311040 }
10321041
10331042 //Tell user exporting is complete
10341043 System.Windows.MessageBox.Show(
1035 "All visible recordings have been exported.",
1044 "All visible recordings have been exported. " +
1045 errorCounter + " out of " + recordingsCount +
1046 " failed.",
10361047 "Export complete.",
10371048 MessageBoxButton.OK,
10381049 MessageBoxImage.Information);
1039 }
1040 catch (Exception ex)
1041 {
1042 ShowError(ex);
10431050 }
10441051 finally
10451052 {
sovellus/vs/Ajolabra/ALManager/Exporter.cs
(2 / 1)
  
137137 LogMessage?.Invoke(this, "Recording contains no data from any source, " +
138138 "ignoring request");
139139 buildingProgress?.Report(1.0);
140 return;
140 throw new InvalidOperationException("Recording contains no valid" +
141 " data.");
141142 }
142143 var schemas = new List<SourceSchema>();
143144 var stickyKeys = new Dictionary<string, string>();