blob: e76d933fbb8f7bdefb87f0e944841ea26a1a1a54 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
<Window x:Class="Tango.MachineStudio.Publisher.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
xmlns:local="clr-namespace:Tango.MachineStudio.Publisher"
xmlns:converters="clr-namespace:Tango.SharedUI.Converters;assembly=Tango.SharedUI"
xmlns:web="clr-namespace:Tango.Web;assembly=Tango.Web"
mc:Ignorable="d"
Title="Machine Studio Publisher" Height="482" Width="700" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow" ResizeMode="NoResize" Foreground="#202020" d:DataContext="{d:DesignInstance Type=local:MainWindowVM, IsDesignTimeCreatable=False}">
<Window.Resources>
<converters:EnumToItemsSourceConverter x:Key="EnumToItemsSourceConverter" />
</Window.Resources>
<Border BorderThickness="1" BorderBrush="#0288D1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="156*"/>
</Grid.RowDefinitions>
<Grid Background="#0288D1">
<Grid.Effect>
<DropShadowEffect BlurRadius="10" ShadowDepth="5" Direction="270" Opacity="0.5" />
</Grid.Effect>
<StackPanel Orientation="Horizontal" Margin="8" HorizontalAlignment="Center">
<Image Source="/Images/machine-trans.png" RenderOptions.BitmapScalingMode="Fant"></Image>
<TextBlock Foreground="White" VerticalAlignment="Center" Margin="10 0 0 0" FontSize="23">MACHINE STUDIO</TextBlock>
</StackPanel>
</Grid>
<Grid Grid.Row="1" Margin="10">
<DockPanel>
<StackPanel DockPanel.Dock="Top" HorizontalAlignment="Left" Margin="0 20 0 0" x:Name="stackDetails">
<TextBlock FontSize="16">
<Run>Remote Version:</Run>
<Run Text="{Binding LatestVersion}" FontStyle="Italic" FontWeight="SemiBold"></Run>
</TextBlock>
<TextBlock Margin="0 10 0 0" FontSize="16" >
<Run>Local Version:</Run>
<Run Text="{Binding CurrentVersion}" FontStyle="Italic" FontWeight="SemiBold"></Run>
</TextBlock>
<ComboBox Width="200" Margin="0 10 0 0" HorizontalAlignment="Left" ItemsSource="{Binding Source={x:Type web:DeploymentSlot},Converter={StaticResource EnumToItemsSourceConverter}}" SelectedValue="{Binding DeploymentSlot}" SelectedValuePath="Value" DisplayMemberPath="DisplayName"></ComboBox>
<StackPanel Margin="0 20 0 0" Orientation="Horizontal" >
<TextBlock FontSize="16">Email:</TextBlock>
<TextBox Margin="5 0 0 0" Width="230" BorderThickness="0 0 0 1" Text="{Binding Email,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
</StackPanel>
<StackPanel Margin="0 10 0 0" Orientation="Horizontal">
<TextBlock FontSize="16">Password:</TextBlock>
<TextBox Margin="5 0 0 0" Width="200" BorderThickness="0 0 0 1" Text="{Binding Password,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
</StackPanel>
<TextBlock FontSize="16" Margin="0 20 0 0">Comments</TextBlock>
<TextBox Height="70" Margin="0 5 0 0" Width="500" AcceptsReturn="True" TextWrapping="Wrap" Text="{Binding Comments,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></TextBox>
<StackPanel Orientation="Horizontal" Margin="0 10 0 0">
<CheckBox IsChecked="{Binding ForcedUpdate}">Forced Update</CheckBox>
<CheckBox Margin="10 0 0 0" IsChecked="{Binding IsStable}">Stable Release</CheckBox>
</StackPanel>
</StackPanel>
<Grid DockPanel.Dock="Bottom">
<DockPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" DockPanel.Dock="Right">
<Button Background="#0288D1" BorderThickness="0" Height="30" MinWidth="140" Foreground="White" FontWeight="SemiBold" Command="{Binding PublishCommand}">PUBLISH</Button>
</StackPanel>
<ProgressBar HorizontalAlignment="Left" Width="500" Height="10" Maximum="{Binding MaxProgress}" Value="{Binding Progress}" Foreground="#0288D1"></ProgressBar>
</DockPanel>
</Grid>
<Grid>
</Grid>
</DockPanel>
</Grid>
</Grid>
</Border>
</Window>
|