Should really have fixed indentations now
Some checks failed
Avalonia Code Quality / Lint, Analyze & Build (push) Failing after 57s
Some checks failed
Avalonia Code Quality / Lint, Analyze & Build (push) Failing after 57s
This commit is contained in:
@ -13,5 +13,4 @@ public class Company
|
|||||||
public string PhoneNumber { get; set; }
|
public string PhoneNumber { get; set; }
|
||||||
public string? AccountRegistration { get; set; }
|
public string? AccountRegistration { get; set; }
|
||||||
public string? AccountNumber { get; set; }
|
public string? AccountNumber { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2,5 +2,4 @@
|
|||||||
|
|
||||||
public class Invoice
|
public class Invoice
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -4,10 +4,10 @@ namespace Invoice_App.Models;
|
|||||||
|
|
||||||
public class Vehicle
|
public class Vehicle
|
||||||
{
|
{
|
||||||
public string? Make { get; set; }
|
public string? Make { get; set; }
|
||||||
public string? Model { get; set; }
|
public string? Model { get; set; }
|
||||||
public DateTime? RegistrationDate { get; set; }
|
public DateTime? RegistrationDate { get; set; }
|
||||||
public string? VinNumber { get; set; }
|
public string? VinNumber { get; set; }
|
||||||
public decimal? Kilometers { get; set; }
|
public decimal? Kilometers { get; set; }
|
||||||
public string? Comments { get; set; }
|
public string? Comments { get; set; }
|
||||||
}
|
}
|
||||||
64
Program.cs
64
Program.cs
@ -11,43 +11,42 @@ class Program
|
|||||||
// yet and stuff might break.
|
// yet and stuff might break.
|
||||||
[STAThread]
|
[STAThread]
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
|
TestVehicleClass();
|
||||||
|
|
||||||
TestVehicleClass();
|
BuildAvaloniaApp()
|
||||||
|
.StartWithClassicDesktopLifetime(args);
|
||||||
BuildAvaloniaApp()
|
}
|
||||||
.StartWithClassicDesktopLifetime(args);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private static void TestVehicleClass()
|
private static void TestVehicleClass()
|
||||||
{
|
{
|
||||||
var testCar = new Vehicle();
|
var testCar = new Vehicle();
|
||||||
testCar.Make = "BMW";
|
testCar.Make = "BMW";
|
||||||
testCar.Model = "320i";
|
testCar.Model = "320i";
|
||||||
testCar.VinNumber = "ABC123";
|
testCar.VinNumber = "ABC123";
|
||||||
testCar.Kilometers = 50000;
|
testCar.Kilometers = 50000;
|
||||||
testCar.RegistrationDate = DateTime.Now;
|
testCar.RegistrationDate = DateTime.Now;
|
||||||
testCar.Comments = "Good condition";
|
testCar.Comments = "Good condition";
|
||||||
|
|
||||||
// Test Company
|
// Test Company
|
||||||
var testCompany = new Company();
|
var testCompany = new Company();
|
||||||
testCompany.CompanyName = "ABC Motors";
|
testCompany.CompanyName = "ABC Motors";
|
||||||
testCompany.Address = "Kongens Nytorv 1";
|
testCompany.Address = "Kongens Nytorv 1";
|
||||||
testCompany.ZipCode = "1050"; // Copenhagen K
|
testCompany.ZipCode = "1050"; // Copenhagen K
|
||||||
testCompany.City = "Copenhagen";
|
testCompany.City = "Copenhagen";
|
||||||
testCompany.CVR = "12345678";
|
testCompany.CVR = "12345678";
|
||||||
testCompany.PhoneNumber = "33123456";
|
testCompany.PhoneNumber = "33123456";
|
||||||
|
|
||||||
// Test Customer
|
// Test Customer
|
||||||
var testCustomer = new Customer();
|
var testCustomer = new Customer();
|
||||||
testCustomer.Name = "Lars Nielsen";
|
testCustomer.Name = "Lars Nielsen";
|
||||||
testCustomer.Address = "Vesterbrogade 123";
|
testCustomer.Address = "Vesterbrogade 123";
|
||||||
testCustomer.ZipCode = "1620";
|
testCustomer.ZipCode = "1620";
|
||||||
testCustomer.City = "Copenhagen V";
|
testCustomer.City = "Copenhagen V";
|
||||||
testCustomer.PhoneNumber = "23456789";
|
testCustomer.PhoneNumber = "23456789";
|
||||||
testCustomer.Email = "lars@example.com";
|
testCustomer.Email = "lars@example.com";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Avalonia configuration, don't remove; also used by visual designer.
|
// Avalonia configuration, don't remove; also used by visual designer.
|
||||||
@ -56,5 +55,4 @@ class Program
|
|||||||
.UsePlatformDetect()
|
.UsePlatformDetect()
|
||||||
.WithInterFont()
|
.WithInterFont()
|
||||||
.LogToTrace();
|
.LogToTrace();
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user