Add adding and detail

This commit is contained in:
2026-02-10 15:12:01 +01:00
parent ad447d109f
commit d6ae47d23d
13 changed files with 491 additions and 40 deletions

View File

@@ -0,0 +1,46 @@
using System.Text;
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 dealer
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
private DataManager dataManager = new DataManager();
public MainWindow()
{
InitializeComponent();
this.dataManager.Load();
this.VehiclesListView.ItemsSource = this.dataManager.GetAllVehicles();
}
private void AddButton_Click(object sender, RoutedEventArgs e)
{
var window = new AddVehicleWindow(this.dataManager);
window.ShowDialog();
}
private void EditButton_Click(object sender, RoutedEventArgs e)
{
}
private void DeleteButton_Click(object sender, RoutedEventArgs e)
{
}
}
}