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