demo5/demo5/SellerWindow.axaml.cs
2025-02-05 01:23:52 +03:00

31 lines
794 B
C#

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Avalonia.Controls;
using Avalonia.Input;
using Avalonia.Interactivity;
using Avalonia.Media.Imaging;
using demo5.Models;
using demo5.MyModels;
namespace demo5;
public partial class SellerWindow : Window
{
public SellerWindow(ClientMy client)
{
InitializeComponent();
FioTextBlock.Text = client.Fio;
RoleTextBlock.Text = client.Role.ToString();
ClientImage.Source = client.Image;
}
private void FormOrderButton_OnClick(object? sender, RoutedEventArgs e)
{
FormOrderWindow formOrderWindow = new FormOrderWindow();
formOrderWindow.ShowDialog(this);
}
}