aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/Views/JobsView.xaml.cs
blob: efd4ec64ec844efd0ffaa837833c59022cbdc1c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Tango.PPC.Jobs.Views
{
    /// <summary>
    /// Interaction logic for JobsView.xaml
    /// </summary>
    public partial class JobsView : UserControl
    {
        public JobsView()
        {
            InitializeComponent();
        }

        private void TouchNavigationLinks_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (dataGridJobs != null)
            {
                dataGridJobs.ScrollViewer.ScrollToTop();
            }
        }
    }
}
<StackPanel Orientation="Horizontal"> <materialDesign:PackIcon Kind="ContentSaveAll" Width="24" Height="24" /> <TextBlock VerticalAlignment="Center" Margin="10 0 0 0">SAVE</TextBlock> </StackPanel> </Button> </Grid> <Grid DockPanel.Dock="Bottom"> </Grid> <Grid Margin="0 20" IsEnabled="{Binding IsFree}"> <Grid.ColumnDefinitions> <ColumnDefinition Width="139*"/> <ColumnDefinition Width="237*"/> </Grid.ColumnDefinitions> <Border Margin="100 140" CornerRadius="5" Background="{StaticResource TransparentBackgroundBrush600}" Padding="10" BorderBrush="Silver" BorderThickness="1"> <controls:TableGrid RowHeight="50" Margin="10"> <TextBlock FontWeight="SemiBold">Serial Number:</TextBlock> <TextBox Text="{Binding ActiveDispenser.SerialNumber}"></TextBox> <TextBlock FontWeight="SemiBold">Dispenser Type:</TextBlock> <ComboBox ItemsSource="{Binding DispenserTypes}" SelectedItem="{Binding ActiveDispenser.DispenserType}" DisplayMemberPath="Name" Style="{StaticResource TransparentComboBoxStyle}" ></ComboBox> <TextBlock FontWeight="SemiBold">Nanoliter / Pulse:</TextBlock> <mahapps:NumericUpDown HorizontalContentAlignment="Left" HasDecimals="True" BorderThickness="0 0 0 1" Background="Transparent" Minimum="0" Maximum="5" Value="{Binding ActiveDispenser.NlPerPulse}"></mahapps:NumericUpDown> <TextBlock FontWeight="SemiBold">Part Number:</TextBlock> <TextBox Text="{Binding ActiveDispenser.PartNumber}"></TextBox> <TextBlock FontWeight="SemiBold">PCB Serial:</TextBlock> <TextBox Text="{Binding ActiveDispenser.PcbSerial}"></TextBox> <TextBlock FontWeight="SemiBold">PCB Version:</TextBlock> <TextBox Text="{Binding ActiveDispenser.PcbVersion}"></TextBox> <TextBlock FontWeight="SemiBold">Production Date:</TextBlock> <DatePicker SelectedDate="{Binding ActiveDispenser.ProductionDate}"></DatePicker> <TextBlock FontWeight="SemiBold">Installed On Machine:</TextBlock> <TextBox IsEnabled="False" Text="{Binding ActiveDispenser.Machine.SerialNumber,Mode=OneWay,TargetNullValue='N/A',FallbackValue='N/A'}" IsReadOnly="True"></TextBox> </controls:TableGrid> </Border> </Grid> </DockPanel> </Grid> </UserControl>