Skip to content

Commit

Permalink
Merge branch 'release/gui1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
MicBoucinha committed Apr 3, 2023
2 parents f700bba + 0bc8576 commit 2c0dfbc
Show file tree
Hide file tree
Showing 71 changed files with 31,224 additions and 668 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added CAD/27_x2_SHPBase_End_Switch-2.STL
Binary file not shown.
Binary file added CAD/29_x2_SHPBase_End_Switch-1.STL
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 0 additions & 13 deletions GUI/App.xaml

This file was deleted.

Binary file added GUI/Assets/cf-logo-small.bmp
Binary file not shown.
File renamed without changes.
Binary file modified GUI/Assets/cf-logo.ico
Binary file not shown.
Binary file added GUI/Assets/cf-logo.n1.ico
Binary file not shown.
86 changes: 0 additions & 86 deletions GUI/Assets/cf-logo.svg

This file was deleted.

77 changes: 0 additions & 77 deletions GUI/Device.Pump.GUI.csproj

This file was deleted.

20 changes: 17 additions & 3 deletions GUI/Device.Pump.GUI.sln
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30709.132
# Visual Studio Version 17
VisualStudioVersion = 17.3.32901.215
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Device.Pump.GUI", "Device.Pump.GUI.csproj", "{61A1A844-5F0F-4B94-8D8A-A64672F4E414}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Device.Pump.GUI", "Device.Pump.GUI\Device.Pump.GUI.csproj", "{61A1A844-5F0F-4B94-8D8A-A64672F4E414}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{1AF2F09D-522F-4BA7-9137-5CA6AB225BA0}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
build.cake = build.cake
SyringePump.nsi = SyringePump.nsi
README.md = README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Device.Pump", "Device.Pump\Device.Pump.csproj", "{8CAB4845-608A-4DF1-8E97-F0E25FE6769D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -15,6 +25,10 @@ Global
{61A1A844-5F0F-4B94-8D8A-A64672F4E414}.Debug|Any CPU.Build.0 = Debug|Any CPU
{61A1A844-5F0F-4B94-8D8A-A64672F4E414}.Release|Any CPU.ActiveCfg = Release|Any CPU
{61A1A844-5F0F-4B94-8D8A-A64672F4E414}.Release|Any CPU.Build.0 = Release|Any CPU
{8CAB4845-608A-4DF1-8E97-F0E25FE6769D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8CAB4845-608A-4DF1-8E97-F0E25FE6769D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8CAB4845-608A-4DF1-8E97-F0E25FE6769D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8CAB4845-608A-4DF1-8E97-F0E25FE6769D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
23 changes: 23 additions & 0 deletions GUI/Device.Pump.GUI/App.axaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Device.Pump.GUI"
x:Class="Device.Pump.App"
Name="Syringe Pump">
<Application.DataTemplates>
<local:ViewLocator/>
</Application.DataTemplates>

<Application.Styles>
<FluentTheme Mode="Light"/>
<StyleInclude Source="avares://Device.Pump.GUI/Views/Icons.axaml" />
<StyleInclude Source="avares://Device.Pump.GUI/Views/AccentColors.axaml" />
<!-- <StyleInclude Source="avares://Avalonia.Themes.Default/DefaultTheme.xaml"/> -->
<!-- <StyleInclude Source="avares://Avalonia.Themes.Default/Accents/BaseLight.xaml"/> -->
</Application.Styles>

<NativeMenu.Menu>
<NativeMenu>
<NativeMenuItem Header="About Syringe Pump GUI" Click="NativeMenuItem_OnClick" />
</NativeMenu>
</NativeMenu.Menu>
</Application>
15 changes: 12 additions & 3 deletions GUI/App.xaml.cs → GUI/Device.Pump.GUI/App.axaml.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System;
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Markup.Xaml;
using Device.Pump.GUI.ViewModels;
using Device.Pump.GUI.Views;

namespace Device.Pump.GUI
namespace Device.Pump
{
public class App : Application
public partial class App : Application
{
public override void Initialize()
{
Expand All @@ -25,5 +26,13 @@ public override void OnFrameworkInitializationCompleted()

base.OnFrameworkInitializationCompleted();
}

private void NativeMenuItem_OnClick(object sender, EventArgs e)
{
// FIXME: This should be using a Command
var about = new About() { DataContext = new AboutViewModel() };
about.ShowDialog((Application.Current.ApplicationLifetime as IClassicDesktopStyleApplicationLifetime)
.MainWindow);
}
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2c0dfbc

Please sign in to comment.