parent
1c0fe97c1b
commit
db89b725de
Binary file not shown.
Binary file not shown.
@ -0,0 +1,19 @@
|
|||||||
|
<Window xmlns="https://github.com/avaloniaui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
|
x:Class="UserInterface.Views.AddSensorDialog"
|
||||||
|
SizeToContent="WidthAndHeight"
|
||||||
|
Title="Add sensor">
|
||||||
|
<StackPanel Margin="40" MinWidth="200">
|
||||||
|
<ContentControl Margin="0 20 0 10">Sensor type</ContentControl>
|
||||||
|
|
||||||
|
<ComboBox x:Name="ComboBox" SelectionChanged="ComboBoxClosed" SelectedItem="{Binding SelectedType}" MinHeight="27"></ComboBox>
|
||||||
|
<TextBlock Margin="0 10 0 10" MaxWidth="300" TextWrapping="Wrap" TextAlignment="Left" Text="{Binding Description}"></TextBlock>
|
||||||
|
<Button IsVisible="{Binding MoreInfoLink, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" Click="OpenInfo" Margin="0 10 0 10">Click for more information.</Button>
|
||||||
|
<ContentControl Margin="0 20 0 10">Name</ContentControl>
|
||||||
|
<TextBox Text="{Binding Name}" HorizontalAlignment="Left" Width="150"/>
|
||||||
|
<Button Width="75" HorizontalAlignment="Right" Margin="0 40 0 10" Click="Save">Save</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</Window>
|
@ -1,18 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using hass_workstation_service.Domain.Sensors;
|
|
||||||
|
|
||||||
namespace hass_workstation_service.Domain
|
|
||||||
{
|
|
||||||
public abstract class Device
|
|
||||||
{
|
|
||||||
public Guid Id { get; private set; }
|
|
||||||
public string Name { get; private set; }
|
|
||||||
public string Manufacturer { get; private set; }
|
|
||||||
public string Model { get; private set; }
|
|
||||||
public string Version { get; private set; }
|
|
||||||
|
|
||||||
public ICollection<AbstractSensor> Sensors { get; set; }
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Loading…
Reference in new issue