blob: cb99015a9bf3a5d6fc68dd9d54645efc2c623d67 (
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
|
<Window x:Class="Tango.FSE.Publisher.UI.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:sys="clr-namespace:System;assembly=mscorlib"
xmlns:local="clr-namespace:Tango.FSE.Publisher.UI"
mc:Ignorable="d"
Title="Tango FSE/Twine Studio Publisher" Height="600" Width="400" d:DataContext="{d:DesignInstance Type=local:MainWindowVM, IsDesignTimeCreatable=False}">
<Window.Style>
<Style TargetType="Window">
<Setter Property="Cursor" Value="Arrow"></Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding IsBusy}" Value="True">
<Setter Property="Cursor" Value="Wait"></Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</Window.Style>
<Grid IsEnabled="{Binding IsFree}" Margin="10">
<DockPanel>
<TextBlock DockPanel.Dock="Top" FontSize="22">
<Run Text="{Binding BuildVariant,Mode=OneWay}"></Run>
<Run>Publish Utility</Run>
</TextBlock>
<DockPanel>
<StackPanel VerticalAlignment="Bottom" DockPanel.Dock="Bottom">
<TextBlock Text="{Binding Progress.Message}" Foreground="Gray"></TextBlock>
<ProgressBar Height="15" Margin="0 5 0 10" Maximum="{Binding Progress.Maximum}" Value="{Binding Progress.Value}" IsIndeterminate="{Binding Progress.IsIndeterminate}"></ProgressBar>
<Button Height="40" Command="{Binding PublishCommand}">PUBLISH</Button>
</StackPanel>
<StackPanel>
<DockPanel Margin="0 40 0 0">
<TextBlock VerticalAlignment="Center" Width="136" DockPanel.Dock="Left">Environment:</TextBlock>
<ComboBox Margin="5 0 0 0" ItemsSource="{Binding Environments}" SelectedItem="{Binding SelectedEnvironment}" DisplayMemberPath="Description" />
</DockPanel>
<DockPanel Margin="0 20 0 0">
<TextBlock VerticalAlignment="Center" Width="136" DockPanel.Dock="Left">Build Configuration:</TextBlock>
<ComboBox Margin="20 0 0 0" SelectedItem="{Binding BuildConfig}" SelectedIndex="0">
<sys:String>Release</sys:String>
<sys:String>Debug</sys:String>
</ComboBox>
</DockPanel>
<TextBlock Margin="0 20 0 0">
<Run>Remote Version:</Run>
<Run Text="{Binding RemoteVersion}"></Run>
</TextBlock>
<TextBlock Margin="0 20 0 0">
<Run>Local Version:</Run>
<Run Text="{Binding LocalVersion}"></Run>
</TextBlock>
<TextBlock Margin="0 20 0 0">Comments</TextBlock>
<TextBox Margin="0 5 0 0" Text="{Binding Comments}" Height="50" AcceptsReturn="True" TextWrapping="Wrap"></TextBox>
<TextBlock Margin="0 20 0 0">Email</TextBlock>
<TextBox Margin="0 5 0 0" Text="{Binding Email}"></TextBox>
<TextBlock Margin="0 10 0 0">Password</TextBlock>
<TextBox Margin="0 5 0 0" Text="{Binding Password}"></TextBox>
<CheckBox Margin="0 20 0 0" IsChecked="{Binding CreateTag}">Create Tag On Repository</CheckBox>
</StackPanel>
</DockPanel>
</DockPanel>
</Grid>
</Window>
|