Skip to content

Commit acf1f3d

Browse files
committed
Updated Sample name
1 parent 84a120e commit acf1f3d

File tree

11 files changed

+45
-47
lines changed

11 files changed

+45
-47
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.14.36202.13 d17.14
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VitalSync", "VitalSync\VitalSync.csproj", "{2BB23BB1-DA04-4FAB-9FCE-D4DFF44202AF}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ECGMonitor", "ECGMonitor\ECGMonitor.csproj", "{8634E715-C06E-4D2F-AB2F-FC3788E49B83}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1010
Debug|Any CPU = Debug|Any CPU
1111
Release|Any CPU = Release|Any CPU
1212
EndGlobalSection
1313
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14-
{2BB23BB1-DA04-4FAB-9FCE-D4DFF44202AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15-
{2BB23BB1-DA04-4FAB-9FCE-D4DFF44202AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
16-
{2BB23BB1-DA04-4FAB-9FCE-D4DFF44202AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
17-
{2BB23BB1-DA04-4FAB-9FCE-D4DFF44202AF}.Release|Any CPU.Build.0 = Release|Any CPU
14+
{8634E715-C06E-4D2F-AB2F-FC3788E49B83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{8634E715-C06E-4D2F-AB2F-FC3788E49B83}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{8634E715-C06E-4D2F-AB2F-FC3788E49B83}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{8634E715-C06E-4D2F-AB2F-FC3788E49B83}.Release|Any CPU.Build.0 = Release|Any CPU
1818
EndGlobalSection
1919
GlobalSection(SolutionProperties) = preSolution
2020
HideSolutionNode = FALSE
2121
EndGlobalSection
2222
GlobalSection(ExtensibilityGlobals) = postSolution
23-
SolutionGuid = {D4192B18-8A17-45B6-9F24-613367EB06B7}
23+
SolutionGuid = {DD59CB08-08B5-44F2-A4F3-9DC85D5FA175}
2424
EndGlobalSection
2525
EndGlobal
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Application x:Class="VitalSync.App"
1+
<Application x:Class="ECGMonitor.App"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:local="clr-namespace:VitalSync"
4+
xmlns:local="clr-namespace:ECGMonitor"
55
StartupUri="MainWindow.xaml">
66
<Application.Resources>
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Data;
33
using System.Windows;
44

5-
namespace VitalSync
5+
namespace ECGMonitor
66
{
77
/// <summary>
88
/// Interaction logic for App.xaml
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<ItemGroup>
1717
<Resource Include="Images\electrocardiogram.png">
1818
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
19-
</Resource>
20-
<Resource Include="Images\export.png">
19+
</Resource>
20+
<Resource Include="Images\export.png">
2121
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
2222
</Resource>
2323
</ItemGroup>
File renamed without changes.
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<Window x:Class="VitalSync.MainWindow"
1+
<Window x:Class="ECGMonitor.MainWindow"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
55
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6-
xmlns:local="clr-namespace:VitalSync.ViewModel"
6+
xmlns:local="clr-namespace:ECGMonitor.ViewModel"
77
xmlns:chart="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.WPF"
88
xmlns:button="http://schemas.syncfusion.com/wpf"
99
mc:Ignorable="d" Background="#112e78" WindowState="Maximized">
@@ -22,14 +22,14 @@
2222
<Setter Property="Padding" Value="20"/>
2323
<Setter Property="CornerRadius" Value="10"/>
2424
</Style>
25-
25+
2626
<Style TargetType="TextBlock" x:Key="bindingTextStyle">
2727
<Setter Property="FontSize" Value="28"/>
2828
<Setter Property="FontWeight" Value="Bold"/>
2929
<Setter Property="Foreground" Value="#2ac145"/>
3030
<Setter Property="TextAlignment" Value="Right"/>
3131
</Style>
32-
32+
3333
<Style TargetType="TextBlock" x:Key="staticTextStyle">
3434
<Setter Property="FontSize" Value="16"/>
3535
<Setter Property="FontWeight" Value="Bold"/>
@@ -115,7 +115,7 @@
115115
</Border>
116116

117117
</Grid>
118-
118+
119119
<!-- Metric Panels -->
120120
<UniformGrid Grid.Row="1" Columns="4" HorizontalAlignment="Stretch">
121121
<!-- Heart Rate Panel -->
@@ -142,20 +142,20 @@
142142
<BeginStoryboard>
143143
<Storyboard RepeatBehavior="Forever" AutoReverse="True">
144144
<DoubleAnimation Storyboard.TargetName="HeartScaleTransform"
145-
Storyboard.TargetProperty="ScaleX"
146-
From="1.0" To="1.2"
147-
Duration="0:0:0.3" />
145+
Storyboard.TargetProperty="ScaleX"
146+
From="1.0" To="1.2"
147+
Duration="0:0:0.3" />
148148
<DoubleAnimation Storyboard.TargetName="HeartScaleTransform"
149-
Storyboard.TargetProperty="ScaleY"
150-
From="1.0" To="1.2"
151-
Duration="0:0:0.3" />
149+
Storyboard.TargetProperty="ScaleY"
150+
From="1.0" To="1.2"
151+
Duration="0:0:0.3" />
152152
</Storyboard>
153153
</BeginStoryboard>
154154
</EventTrigger>
155155
</Grid.Triggers>
156156
</Grid>
157157
</Border>
158-
158+
159159
<!-- PR Interval Panel -->
160160
<Border Margin="0,0,10,10" Style="{StaticResource borderStyle}">
161161
<Grid>
@@ -216,15 +216,15 @@
216216
<RowDefinition Height="1*"/>
217217
<RowDefinition Height="9*"/>
218218
</Grid.RowDefinitions>
219-
219+
220220
<!-- Title and Export Button -->
221221
<Grid Margin="0,0,0,10">
222222
<Grid.ColumnDefinitions>
223223
<ColumnDefinition Width="0.2*" />
224224
<ColumnDefinition Width="2*" />
225225
<ColumnDefinition Width="7.5*" />
226226
</Grid.ColumnDefinitions>
227-
227+
228228
<Ellipse Width="15" Height="15" Fill="#2ac145" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Left"/>
229229
<TextBlock Text="Live Signal" Grid.Column="1" FontSize="18" FontWeight="Bold" Foreground="white" HorizontalAlignment="Left" VerticalAlignment="Center"/>
230230
<button:ButtonAdv SizeMode="Normal" Label="Export" IconWidth="30" IconHeight="30" SmallIcon="/Images/export.png" Grid.Column="2" Width="100" Height="35" CornerRadius="10" Click="Button_Click" HorizontalAlignment="Right" VerticalAlignment="Center"/>
@@ -238,12 +238,12 @@
238238
<Setter Property="StrokeThickness" Value="1"/>
239239
<Setter Property="Stroke" Value="#344566"/>
240240
</Style>
241-
241+
242242
<Style TargetType="Line" x:Key="lineStyle">
243243
<Setter Property="StrokeThickness" Value="2"/>
244244
<Setter Property="Stroke" Value="#344566"/>
245245
</Style>
246-
246+
247247
<Style TargetType="Label" x:Key="axisLabelStyle">
248248
<Setter Property="FontSize" Value="14"/>
249249
<Setter Property="Foreground" Value="#FFFFFF"/>
@@ -257,9 +257,9 @@
257257
<!-- Primary Axis (X) -->
258258
<chart:SfChart.PrimaryAxis>
259259
<chart:NumericalAxis Header="Time in seconds"
260-
MajorGridLineStyle="{StaticResource gridLineStyle}"
261-
MajorTickLineStyle="{StaticResource lineStyle}"
262-
AxisLineStyle="{StaticResource lineStyle}">
260+
MajorGridLineStyle="{StaticResource gridLineStyle}"
261+
MajorTickLineStyle="{StaticResource lineStyle}"
262+
AxisLineStyle="{StaticResource lineStyle}">
263263
<chart:NumericalAxis.HeaderStyle>
264264
<chart:LabelStyle Foreground="#FFFFFF"/>
265265
</chart:NumericalAxis.HeaderStyle>
@@ -272,10 +272,10 @@
272272
<!-- Secondary Axis (Y) -->
273273
<chart:SfChart.SecondaryAxis>
274274
<chart:NumericalAxis Maximum="1.5" Minimum="-0.5"
275-
Header="Voltage in mV"
276-
MajorGridLineStyle="{StaticResource lineStyle}"
277-
MajorTickLineStyle="{StaticResource lineStyle}"
278-
AxisLineStyle="{StaticResource lineStyle}">
275+
Header="Voltage in mV"
276+
MajorGridLineStyle="{StaticResource lineStyle}"
277+
MajorTickLineStyle="{StaticResource lineStyle}"
278+
AxisLineStyle="{StaticResource lineStyle}">
279279
<chart:NumericalAxis.HeaderStyle>
280280
<chart:LabelStyle Foreground="#FFFFFF"/>
281281
</chart:NumericalAxis.HeaderStyle>
@@ -287,12 +287,12 @@
287287

288288
<!-- Fast Line Series -->
289289
<chart:FastLineSeries ItemsSource="{Binding LiveData}"
290-
XBindingPath="Time"
291-
YBindingPath="Voltage"
292-
Stroke="#00D9FF"
293-
StrokeThickness="2"/>
290+
XBindingPath="Time"
291+
YBindingPath="Voltage"
292+
Stroke="#00D9FF"
293+
StrokeThickness="2"/>
294294
</chart:SfChart>
295295
</Grid>
296296
</Border>
297297
</Grid>
298-
</Window>
298+
</Window>
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
using Microsoft.Win32;
2-
using Syncfusion.UI.Xaml.Charts;
1+
using ECGMonitor.ViewModel;
2+
using Microsoft.Win32;
33
using System.IO;
44
using System.Windows;
5-
using System.Windows.Controls;
65
using System.Windows.Media;
76
using System.Windows.Media.Imaging;
8-
using VitalSync.ViewModel;
97

10-
namespace VitalSync
8+
namespace ECGMonitor
119
{
1210
/// <summary>
1311
/// Interaction logic for MainWindow.xaml
1412
/// </summary>
1513
public partial class MainWindow : Window
1614
{
17-
private ECGMonitorViewModel _viewModel;
15+
private readonly ECGMonitorViewModel _viewModel;
1816

1917
public MainWindow()
2018
{

VitalSync/VitalSync/ViewModel/ECGDataPoint.cs renamed to ECGMonitor/ECGMonitor/ViewModel/ECGDataPoint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace VitalSync.ViewModel
1+
namespace ECGMonitor.ViewModel
22
{
33
public class ECGDataPoint
44
{

0 commit comments

Comments
 (0)