Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
USER authored and USER committed Nov 12, 2023
1 parent 18b39ff commit 75dc91b
Show file tree
Hide file tree
Showing 62 changed files with 1,448 additions and 0 deletions.
25 changes: 25 additions & 0 deletions DBAR.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32804.467
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DBAR", "DBAR\DBAR.csproj", "{582286F1-6054-4031-89AD-B1E4C5D625E8}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{582286F1-6054-4031-89AD-B1E4C5D625E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{582286F1-6054-4031-89AD-B1E4C5D625E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{582286F1-6054-4031-89AD-B1E4C5D625E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{582286F1-6054-4031-89AD-B1E4C5D625E8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {DC40E90A-889C-4C09-96F4-F4DC756B7E5C}
EndGlobalSection
EndGlobal
25 changes: 25 additions & 0 deletions DBAR/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Application x:Class="DBAR.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:DBAR"
StartupUri="MainWindow.xaml">

<Application.Resources>

<ResourceDictionary>

<ResourceDictionary.MergedDictionaries>

<ResourceDictionary Source="Styles/Page.xaml" />
<ResourceDictionary Source="Styles/Image.xaml" />
<ResourceDictionary Source="Styles/Text.xaml" />
<ResourceDictionary Source="Styles/Button.xaml" />
<ResourceDictionary Source="Utilities/DataTemplate.xaml" />

</ResourceDictionary.MergedDictionaries>

</ResourceDictionary>

</Application.Resources>

</Application>
17 changes: 17 additions & 0 deletions DBAR/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace DBAR
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
10 changes: 10 additions & 0 deletions DBAR/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
84 changes: 84 additions & 0 deletions DBAR/DBAR.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<RootNamespace>DBAR</RootNamespace>
<Nullable>disable</Nullable>
<UseWPF>true</UseWPF>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<None Remove="Fonts\Rubik-Medium.ttf" />
<None Remove="Fonts\Rubik-Regular.ttf" />
<None Remove="HogarLogo.png" />
<None Remove="HogarLogo.svg" />
<None Remove="Images\customer_page.png" />
<None Remove="Images\home_page.png" />
<None Remove="Images\img_customer.png" />
<None Remove="Images\img_home.png" />
<None Remove="Images\img_order.png" />
<None Remove="Images\img_product.png" />
<None Remove="Images\img_setting.png" />
<None Remove="Images\img_shipment.png" />
<None Remove="Images\img_transaction.png" />
<None Remove="Images\order_page.png" />
<None Remove="Images\product_page.png" />
<None Remove="Images\setting_page.png" />
<None Remove="Images\shipment_page.png" />
<None Remove="Images\shutdown_def.png" />
<None Remove="Images\shutdown_mo.png" />
<None Remove="Images\transaction_page.png" />
<None Remove="Images\turbo_bolt.png" />
</ItemGroup>

<ItemGroup>
<Resource Include="Fonts\Rubik-Medium.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
<Resource Include="Fonts\Rubik-Regular.ttf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Resource>
<Content Include="Images\img_customer.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\img_home.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\img_order.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\img_product.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\img_setting.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\img_shipment.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\img_transaction.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\order_page.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\product_page.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\setting_page.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\shutdown_def.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\shutdown_mo.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Images\turbo_bolt.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>
Binary file added DBAR/Fonts/Rubik-Medium.ttf
Binary file not shown.
Binary file added DBAR/Fonts/Rubik-Regular.ttf
Binary file not shown.
Binary file added DBAR/HogarLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions DBAR/HogarLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/Bolt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/HogarLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/Smart_Hub_Pro_Left.124.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/customer_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/home_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/img_customer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/img_home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/img_order.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/img_product.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/img_setting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/img_shipment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/img_transaction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/order_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/product_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/setting_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/shipment_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/shutdown_def.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/shutdown_mo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/transaction_page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DBAR/Images/turbo_bolt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 144 additions & 0 deletions DBAR/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<Window x:Class="DBAR.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:vm="clr-namespace:DBAR.ViewModel"
xmlns:Menu="clr-namespace:DBAR.Utilities"
mc:Ignorable="d"
Title="MainWindow"
Height="600"
Width="850"
AllowsTransparency="True"
WindowStartupLocation="CenterScreen"
WindowStyle="None"
Background="Transparent">

<Window.DataContext>
<vm:NavigationVM />
</Window.DataContext>

<Grid>

<!--// Window Border //-->

<Border Background="#212529"
CornerRadius="20" />

<Grid>

<!--// Base Grid //-->

<Grid.ColumnDefinitions>
<ColumnDefinition Width="228" />
<ColumnDefinition Width="622" />
</Grid.ColumnDefinitions>

<!--// Navigation Panel //-->

<Grid HorizontalAlignment="Left"
Width="228">

<Border Background="#272B2F"
CornerRadius="20,0,0,20" >
</Border>

<Grid/>



<StackPanel Height="400"
Width="228">

<!--// Home //-->

<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding HomeCommand}"
IsChecked="True">

<Grid>

<Image Source="Images/img_home.png"
Style="{StaticResource Image_Style}" />

<TextBlock Text="Home"
Style="{StaticResource Text_Style}" />

</Grid>

</Menu:Btn>



<!--// Products //-->

<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding ProductsCommand}">

<Grid>

<Image Source="Images/img_product.png"
Style="{StaticResource Image_Style}" />

<TextBlock Text="Gateway"
Style="{StaticResource Text_Style}" />

</Grid>

</Menu:Btn>

<!--// Orders //-->

<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding OrdersCommand}">

<Grid>

<Image Source="Images/img_setting.png"
Style="{StaticResource Image_Style}" />

<TextBlock Text="Updater"
Style="{StaticResource Text_Style}" />

</Grid>s

</Menu:Btn>

<!--// Settings //-->

<Menu:Btn Style="{StaticResource BtnStyle}"
Command="{Binding SettingsCommand}">

<Grid>

<Image Source="Images/img_order.png"
Style="{StaticResource Image_Style}" />

<TextBlock Text="About"
Style="{StaticResource Text_Style}" />

</Grid>

</Menu:Btn>

</StackPanel>
<Image HorizontalAlignment="Left" Height="54" Margin="38,26,0,0" VerticalAlignment="Top" Width="160" Source="/HogarLogo.png"/>

</Grid>

<Grid Grid.Column="1">

<ContentControl x:Name="Pages"
Content="{Binding CurrentView}" />

</Grid>

</Grid>

<Button x:Name="CloseApp"
Style="{StaticResource ExitApp}"
Click="CloseApp_Click" />

</Grid>

</Window>
33 changes: 33 additions & 0 deletions DBAR/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DBAR
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}

private void CloseApp_Click(object sender, RoutedEventArgs e)
{
Close();
}
}
}
19 changes: 19 additions & 0 deletions DBAR/Model/PageModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DBAR.Model
{
public class PageModel
{
public int CustomerCount { get; set; }
public string ProductStatus { get; set; }
public DateOnly OrderDate { get; set; }
public decimal TransactionValue { get; set; }
public TimeOnly ShipmentDelivery { get; set; }
public bool LocationStatus { get; set; }

}
}
Loading

0 comments on commit 75dc91b

Please sign in to comment.