90 lines
4.9 KiB
XML
90 lines
4.9 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="450" Width="700" WindowStartupLocation="CenterScreen" MinWidth="600" MinHeight="400">
|
|
|
|
<Window.Icon>
|
|
<BitmapImage UriSource="/Assets/app.png" />
|
|
</Window.Icon>
|
|
|
|
<Border BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1" Margin="0">
|
|
<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="20" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Configuration Section -->
|
|
<Border Grid.Row="0" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1" Padding="15">
|
|
<DockPanel>
|
|
<TextBlock Text="Configuración:" VerticalAlignment="Center" MinWidth="100" />
|
|
<Button Content="Editar" Command="{Binding EditConfigurationsCommand}" DockPanel.Dock="Right"
|
|
Padding="20,8" Margin="10,0,0,0" />
|
|
<ComboBox ItemsSource="{Binding AvailableConfigurations}"
|
|
SelectedItem="{Binding SelectedConfiguration}" DisplayMemberPath="Description" Height="30"
|
|
Margin="5,0" />
|
|
</DockPanel>
|
|
</Border>
|
|
|
|
<!-- Project Management Section -->
|
|
<Border Grid.Row="2" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1" Padding="15">
|
|
<DockPanel>
|
|
<TextBlock Text="Proyecto Actual:" VerticalAlignment="Center" MinWidth="100" />
|
|
<StackPanel DockPanel.Dock="Right" Orientation="Horizontal" Margin="10,0,0,0">
|
|
<Button Content="Renombrar" Command="{Binding RenameProjectCommand}" Padding="15,8"
|
|
Margin="0,0,10,0" />
|
|
<Button Content="Eliminar" Command="{Binding DeleteProjectCommand}" Padding="15,8"
|
|
Background="LightPink" />
|
|
</StackPanel>
|
|
<ComboBox ItemsSource="{Binding ExistingProjects}" SelectedItem="{Binding SelectedProject}"
|
|
Height="30" Margin="5,0" />
|
|
</DockPanel>
|
|
</Border>
|
|
|
|
<!-- Project Info Section -->
|
|
<Border Grid.Row="4" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1" Padding="15">
|
|
<StackPanel>
|
|
<DockPanel Margin="0,0,0,10">
|
|
<TextBlock Text="Último Proyecto:" MinWidth="100" />
|
|
<TextBlock Text="{Binding LastProjectNumber}" Margin="5,0" />
|
|
</DockPanel>
|
|
<DockPanel>
|
|
<TextBlock Text="Ruta Base:" MinWidth="100" />
|
|
<Button Content="Abrir" Command="{Binding OpenBaseFolderCommand}" DockPanel.Dock="Right"
|
|
Padding="15,5" />
|
|
<TextBlock Text="{Binding BasePath}" Margin="5,0" TextWrapping="Wrap" />
|
|
</DockPanel>
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- New Project Section -->
|
|
<Border Grid.Row="6" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1" Padding="15">
|
|
<DockPanel>
|
|
<TextBlock Text="Nuevo Proyecto:" VerticalAlignment="Center" MinWidth="100" />
|
|
<TextBox Text="{Binding NewProjectName, UpdateSourceTrigger=PropertyChanged}" Height="30"
|
|
Margin="5,0" />
|
|
</DockPanel>
|
|
</Border>
|
|
|
|
<!-- Actions Section -->
|
|
<Border Grid.Row="8" BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1" Padding="15">
|
|
<DockPanel>
|
|
<CheckBox Content="Tema Oscuro" IsChecked="{Binding IsDarkTheme}" VerticalAlignment="Center" />
|
|
<Button Content="Crear Directorios" Command="{Binding CreateDirectoriesCommand}"
|
|
DockPanel.Dock="Right" Padding="20,8" Background="{DynamicResource ButtonBackground}" />
|
|
</DockPanel>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</Window> |