42 lines
958 B
C#
42 lines
958 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using Avalonia.Markup.Xaml;
|
|
using demo_blagodat.Models;
|
|
using System.Linq;
|
|
|
|
namespace demo_blagodat;
|
|
|
|
public partial class Seller : Window
|
|
{
|
|
public Seller()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
public void ExitAuthorization(object sender, RoutedEventArgs e)
|
|
{
|
|
new Authorization().Show();
|
|
Close();
|
|
}
|
|
public void Exit(object sender, RoutedEventArgs e)
|
|
{
|
|
//using(User11Context db = new User11Context())
|
|
//{
|
|
// var name = db.Employees.Where(it => it.EmployeesLogin == ).FirstOrDefault();
|
|
// name.EmployeesEntrance = false;
|
|
//}
|
|
Close();
|
|
}
|
|
|
|
public void createOrder(object sender, RoutedEventArgs e)
|
|
{
|
|
new CreateOrder().Show();
|
|
Close();
|
|
}
|
|
public void addClient(object sender, RoutedEventArgs e)
|
|
{
|
|
new AddClient().Show();
|
|
Close();
|
|
}
|
|
}
|