47 lines
2.4 KiB
XML
47 lines
2.4 KiB
XML
<Window x:Class="DirectoryCreator.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:viewmodels="clr-namespace:DirectoryCreator.ViewModels" mc:Ignorable="d" Title="Crear Directorios Base"
|
|
Height="300" Width="500" WindowStartupLocation="CenterScreen">
|
|
|
|
<Window.DataContext>
|
|
<viewmodels:MainWindowViewModel />
|
|
</Window.DataContext>
|
|
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="20" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
|
<TextBlock Text="Configuración:" VerticalAlignment="Center" />
|
|
<ComboBox Margin="10,0" ItemsSource="{Binding AvailableConfigurations}"
|
|
SelectedItem="{Binding SelectedConfiguration}" DisplayMemberPath="Description" MinWidth="200" />
|
|
<Button Content="Editar Configuraciones" Command="{Binding EditConfigurationsCommand}" Padding="10,5" />
|
|
</StackPanel>
|
|
|
|
<TextBlock Grid.Row="2" Text="Last Project:" />
|
|
<TextBlock Grid.Row="2" Margin="100,0,0,0" Text="{Binding LastProjectNumber}" />
|
|
|
|
<TextBlock Grid.Row="4" Text="Base Path:" />
|
|
<TextBlock Grid.Row="4" Margin="100,0,0,0" Text="{Binding BasePath}" />
|
|
|
|
<TextBlock Grid.Row="6" Text="New Project Name:" />
|
|
<TextBox Grid.Row="6" Margin="100,0,0,0" Text="{Binding NewProjectName, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
<StackPanel Grid.Row="8" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button Content="Abrir Carpeta Base" Command="{Binding OpenBaseFolderCommand}" Padding="20,10"
|
|
Margin="0,0,10,0" />
|
|
<Button Content="Crear Directorios" Command="{Binding CreateDirectoriesCommand}" Padding="20,10" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window> |