Skip to content

Commit 4f356ee

Browse files
authored
Merge pull request #30 from harp-tech/bugfix/misc_fixes
App 1.2.1 - bug fixes
2 parents ee68ca8 + fe64897 commit 4f356ee

5 files changed

Lines changed: 23 additions & 6 deletions

File tree

App/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<PropertyGroup>
33
<Nullable>enable</Nullable>
44
<AvaloniaVersion>11.2.6</AvaloniaVersion>
5-
<AppVersion>1.2.0</AppVersion>
5+
<AppVersion>1.2.1</AppVersion>
66
</PropertyGroup>
77
</Project>

App/Harp.Olfactometer.App.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1414
.editorconfig = .editorconfig
1515
Harp.Olfactometer.nsi = Harp.Olfactometer.nsi
1616
README.md = README.md
17+
Directory.Build.props = Directory.Build.props
1718
EndProjectSection
1819
EndProject
1920
Global

App/Harp.Olfactometer.Design/Views/About.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<md:MarkdownScrollViewer xml:space="preserve" HorizontalAlignment="Center">
3030
The Olfactometer GUI application allows to configure the Olfactometer device, developed by the Hardware and Software Platform at the Champalimaud Foundation.
3131

32-
The Olfactometer device is a Harp device and has all the inherent functionality of Harp devices.
32+
The Olfactometer is a Harp device and has all the inherent Harp Devices functionalities.
3333

3434
The GUI was developed using [.NET](https://dotnet.microsoft.com/), [AvaloniaUI](https://avaloniaui.net/) with ReactiveUI and makes direct use of the [Bonsai.Harp](https://github.com/bonsai-rx/harp) library.
3535

App/Harp.Olfactometer.Design/Views/MyDeviceView.axaml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,26 @@
197197
<TextBlock Grid.Row="4" Grid.Column="2"
198198
Text="{Binding Channel3ActualFlow, StringFormat={}{0:0.0}}"
199199
VerticalAlignment="Center" HorizontalAlignment="Center" />
200-
<ComboBox Grid.Row="4" Grid.Column="3" SelectedIndex="{Binding Path=Channel3Range}"
201-
HorizontalAlignment="Center" VerticalAlignment="Center">
202-
<ComboBoxItem>0-100 ml/min</ComboBoxItem>
203-
<ComboBoxItem>0-1000 ml/min</ComboBoxItem>
200+
<ComboBox Grid.Row="4" Grid.Column="3" SelectedItem="{Binding Channel3Range, Mode=TwoWay}"
201+
IsEnabled="True"
202+
Margin="0,5,0,0"
203+
HorizontalAlignment="Center"
204+
VerticalAlignment="Center">
205+
<ComboBox.Resources>
206+
<conv:EnumDisplayConverter x:Key="EnumDisplayConverter">
207+
<conv:EnumDisplayConverter.Mappings>
208+
<system:String x:Key="FlowRate100">0-100 ml/min</system:String>
209+
<system:String x:Key="FlowRate1000">0-1000 ml/min</system:String>
210+
</conv:EnumDisplayConverter.Mappings>
211+
</conv:EnumDisplayConverter>
212+
</ComboBox.Resources>
213+
<ComboBox.ItemTemplate>
214+
<DataTemplate>
215+
<TextBlock Text="{Binding Converter={StaticResource EnumDisplayConverter}}" />
216+
</DataTemplate>
217+
</ComboBox.ItemTemplate>
218+
<x:Static Member="local:Channel3RangeConfig.FlowRate100" />
219+
<x:Static Member="local:Channel3RangeConfig.FlowRate1000" />
204220
</ComboBox>
205221
<!-- Channel 4 -->
206222
<TextBlock Grid.Row="5" Grid.Column="0" Margin="15" Text="Channel 4"

App/Harp.Olfactometer.nsi

-306 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)