-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add customer management core, views. code refactoring and clean…
…up. Update dependency injection to hopefully fix scoped resolving Signed-off-by: russkyc <[email protected]>
- Loading branch information
Showing
10 changed files
with
138 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,106 @@ | ||
<Window x:Class="GroomWise.Views.Dialogs.AddCustomersView" | ||
xmlns="http:https://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http:https://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http:https://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:GroomWise.Views.Dialogs" | ||
xmlns:mc="http:https://schemas.openxmlformats.org/markup-compatibility/2006" | ||
Title="AddCustomersView" | ||
Width="800" | ||
Height="450" | ||
mc:Ignorable="d"> | ||
<Grid /> | ||
</Window> | ||
<russkyc:ModernWindow x:Class="GroomWise.Views.Dialogs.AddCustomersView" | ||
xmlns="http:https://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http:https://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:b="http:https://schemas.microsoft.com/xaml/behaviors" | ||
xmlns:d="http:https://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:icons="clr-namespace:Material.Icons.WPF;assembly=Material.Icons.WPF" | ||
xmlns:mc="http:https://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:russkyc="clr-namespace:org.russkyc.moderncontrols;assembly=Russkyc.ModernControls.WPF" | ||
Title="AddCustomersView" | ||
Width="600" | ||
Height="450" | ||
NoDecorations="True" | ||
ResizeMode="NoResize" | ||
SizeToContent="Height" | ||
TitleBarHeight="0" | ||
WindowStartupLocation="CenterOwner" | ||
mc:Ignorable="d"> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<TextBlock Grid.Row="0" | ||
Margin="20,16,0,17" | ||
HorizontalAlignment="Left" | ||
FontSize="16" | ||
Text="Customer Information" /> | ||
<StackPanel Grid.Row="1" | ||
Margin="20,0,16,20" | ||
HorizontalAlignment="Stretch" | ||
VerticalAlignment="Top"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="150" /> | ||
<ColumnDefinition Width="150" /> | ||
</Grid.ColumnDefinitions> | ||
<russkyc:ModernTextBox Grid.Column="0" | ||
Margin="0,0,0,0" | ||
CornerRadius="5" | ||
HelperText="Max Length (200)" | ||
Placeholder="First Name" | ||
Text="{Binding Title, UpdateSourceTrigger=PropertyChanged}" /> | ||
<russkyc:ModernTextBox Grid.Column="1" | ||
Margin="12,0,0,0" | ||
CornerRadius="5" | ||
HelperText="Max Length (200)" | ||
Placeholder="Middle Name" | ||
Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}" /> | ||
<russkyc:ModernTextBox Grid.Column="2" | ||
Margin="12,0,0,0" | ||
CornerRadius="5" | ||
HelperText="Max Length (200)" | ||
Placeholder="Last Name" | ||
Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}" /> | ||
</Grid> | ||
<russkyc:ModernTextBox Margin="0,12,0,0" | ||
CornerRadius="5" | ||
HelperText="Max Length (200)" | ||
Placeholder="Street Address" | ||
Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}" /> | ||
<Grid Margin="0,12,0,0"> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<russkyc:ModernTextBox Grid.Column="0" | ||
CornerRadius="5" | ||
HelperText="Max Length (200)" | ||
Placeholder="City" | ||
Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}" /> | ||
<russkyc:ModernTextBox Grid.Column="1" | ||
Margin="12,0,0,0" | ||
CornerRadius="5" | ||
HelperText="Max Length (200)" | ||
Placeholder="ZIP Code" | ||
Text="{Binding Description, UpdateSourceTrigger=PropertyChanged}" /> | ||
</Grid> | ||
<StackPanel Margin="0,24,0,0" | ||
HorizontalAlignment="Right" | ||
Orientation="Horizontal"> | ||
<russkyc:ModernButton Margin="0,0,12,0" | ||
HorizontalAlignment="Right" | ||
Content="Cancel" | ||
CornerRadius="5" | ||
DefaultBackground="{DynamicResource bg-000}" | ||
FontWeight="Medium" | ||
Foreground="{DynamicResource fg-600}" | ||
HoverBackground="{DynamicResource bg-000}" | ||
PressedBackground="{DynamicResource bg-100}"> | ||
<b:Interaction.Triggers> | ||
<b:EventTrigger EventName="Click"> | ||
<b:CallMethodAction MethodName="Hide" TargetObject="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=russkyc:ModernWindow}}" /> | ||
</b:EventTrigger> | ||
</b:Interaction.Triggers> | ||
</russkyc:ModernButton> | ||
<russkyc:ModernButton HorizontalAlignment="Right" | ||
Command="{Binding AddAppointmentCommand}" | ||
Content="Save Appointment" | ||
CornerRadius="5" | ||
FontWeight="Medium" | ||
LeftCenterIcon="{icons:MaterialIconExt Kind=ContentSave}" /> | ||
</StackPanel> | ||
</StackPanel> | ||
</Grid> | ||
</russkyc:ModernWindow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters