aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/ViewModels/ApplicationFirmwareVersionsViewVM.cs
blob: bb8abf72557d0a4a828debff6e0ebe495c88f9d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.MachineStudio.Common.Notifications;

namespace Tango.MachineStudio.DB.ViewModels
{
    public class ApplicationFirmwareVersionsViewVM : DbTableViewModel<ApplicationFirmwareVersion>
    {
        public ApplicationFirmwareVersionsViewVM(INotificationProvider notification) : base(notification)
        {
        }
    }
}
quot; xmlns:providers="clr-namespace:Tango.MachineStudio.MachineDesigner.AutoComplete" xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI" xmlns:local="clr-namespace:Tango.MachineStudio.MachineDesigner.Views" mc:Ignorable="d" Width="530" Height="239" Background="{StaticResource Dialog.Background}" Foreground="{StaticResource Dialog.Foreground}"> <UserControl.Resources> <providers:MachineVersionsProvider x:Key="VersionsProvider"></providers:MachineVersionsProvider> </UserControl.Resources> <Grid> <Grid> <Grid.RowDefinitions> <RowDefinition Height="50"/> <RowDefinition Height="1*"/> </Grid.RowDefinitions> <Grid> <StackPanel Orientation="Horizontal" Margin="10"> <materialDesign:PackIcon Width="24" Height="24" Kind="Verified" VerticalAlignment="Center"></materialDesign:PackIcon> <TextBlock Text="Default Version Configuration" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="16"></TextBlock> </StackPanel> </Grid> <Grid Grid.Row="1" Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="1*"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid> <StackPanel Margin="10"> <TextBlock>Version</TextBlock> <ComboBox ItemsSource="{Binding Adapter.MachineVersions}" Text="{Binding Version}" DisplayMemberPath="Version" SelectedItem="{Binding SelectedVersion}" IsEditable="True" materialDesign:HintAssist.Hint="Select or enter a new version name"></ComboBox> <TextBlock Margin="0 10 0 0">Name</TextBlock> <TextBox materialDesign:HintAssist.Hint="Version name" Text="{Binding VersionName}"> <TextBox.Style> <Style TargetType="TextBox" BasedOn="{StaticResource {x:Type TextBox}}"> <Setter Property="IsEnabled" Value="False"></Setter> <Style.Triggers> <DataTrigger Binding="{Binding SelectedVersion}" Value="{x:Null}"> <Setter Property="IsEnabled" Value="True"></Setter> </DataTrigger> </Style.Triggers> </Style> </TextBox.Style> </TextBox> </StackPanel> </Grid> <Grid Grid.Row="1"> <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Right" DockPanel.Dock="Bottom"> <Button Command="{Binding AcceptCommand}" Style="{StaticResource MaterialDesignFlatButton}" IsDefault="True" Margin="0 8 8 0"> ACCEPT </Button> <Button Command="{Binding CancelCommand}" Style="{StaticResource MaterialDesignFlatButton}" IsCancel="False" Margin="0 8 8 0"> CANCEL </Button> </StackPanel> </Grid> </Grid> </Grid> </Grid> </UserControl>