aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Azure/Tango.AzureUtils.UI/Views/EnvironmentCreationView.xaml
blob: 54fe2f7be23c89132a1cad77544ae4010456a6d2 (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
<UserControl x:Class="Tango.AzureUtils.UI.Views.EnvironmentCreationView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:vm="clr-namespace:Tango.AzureUtils.UI.ViewModels"
             xmlns:helpers="clr-namespace:Tango.SharedUI.Helpers;assembly=Tango.SharedUI"
             xmlns:global="clr-namespace:Tango.AzureUtils.UI"
             xmlns:local="clr-namespace:Tango.AzureUtils.UI.Views"
             xmlns:localControls="clr-namespace:Tango.AzureUtils.UI.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="700" 
             d:DesignWidth="1100" 
             d:DataContext="{d:DesignInstance Type=vm:EnvironmentCreationViewVM, IsDesignTimeCreatable=False}" 
             DataContext="{x:Static global:ViewModelLocator.EnvironmentCreationViewVM}" 
             Background="{StaticResource PrimaryBackgroundBrush}" 
             Foreground="{StaticResource PrimaryForegroundBrush}">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="50*"/>
            <ColumnDefinition Width="60*"/>
        </Grid.ColumnDefinitions>

        <GroupBox Header="Source Deployment Slot" Padding="5" Margin="10">
            <DockPanel>
                <ComboBox DockPanel.Dock="Top" ItemsSource="{Binding DeploymentSlots}" SelectedItem="{Binding SelectedDeploymentSlot}" DisplayMemberPath="Name"></ComboBox>

                <localControls:WebAppPropertiesControl VerticalAlignment="Top" Margin="0 20 0 0" DataContext="{Binding SelectedDeploymentSlot}" />
            </DockPanel>
        </GroupBox>

        <Grid Grid.Column="1">
            <DockPanel>
                <GroupBox DockPanel.Dock="Top" HorizontalAlignment="Left" Margin="50 10 10 10" Header="Environment Configuration" Padding="10 10 100 10">
                    <StackPanel>
                        <CheckBox  IsChecked="{Binding Config.IgnoreExistingSlot}" >Ignore Existing Deployment Slot</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.CreateEnvironmentGroup}" >Create Environment Group</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.AddEnvironmentGroupAdminUser}" >Add Creation User To Environment Group</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.CreateDeploymentSlot}" >Create Deployment Slot</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.CreateDatabase}" >Create Database</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.AddDatabasePermissionsForEnvironmentGroup}" >Add Database Permissions for Environment Group</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.CreateDatabaseBackupUser}" >Create Database Backup User</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.CreateDatabaseTangoWebApplicationUser}" >Create Database Tango WebApp User</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.SynchronizeDatabaseSchema}">Synchronize Database Schema</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.SynchronizeDatabaseData}">Synchronize Database Static Collections</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.CreateStorageContainers}">Create MS and PPC Storage Containers</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.CopyStorageBlobs}">Copy Machine Studio and PPC Latest Version Blobs</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.ConfigureMachineServiceLogging}">Configure Machine Service Logging</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.ConfigureCloudBackup}">Configure Cloud Backup</CheckBox>
                        <CheckBox  Margin="0 5 0 0" IsChecked="{Binding Config.CopyMachineServiceFiles}">Copy Machine Service Website Files</CheckBox>
                    </StackPanel>
                </GroupBox>

                <StackPanel>
                    <GroupBox HorizontalAlignment="Left" Margin="50 10 10 10" Header="Environment Name" Padding="10 10 90 10">
                        <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" MinWidth="300">
                            <TextBlock FontSize="10">Environment Name (e.g DEV)</TextBlock>
                            <TextBox Margin="0 2 0 0" Text="{Binding SlotName}"></TextBox>
                        </StackPanel>
                    </GroupBox>

                    <Button HorizontalAlignment="Left" Width="410" Margin="50 20 0 0" Padding="20" Command="{Binding CreateEnvironmentCommand}">CREATE ENVIRONMENT</Button>
                </StackPanel>
            </DockPanel>
        </Grid>
    </Grid>
</UserControl>