public Add_Disk_Page(Disks disks) { InitializeComponent(); _disks = disks; _isEdit = true; TbTittle.Text = "Редактирование диска"; Btadd.Content = "Редактировать"; Tbname.Text = disks.Name; Tbtype.Text = disks.Type; Tbprice.Text = disks.Price.ToString(); TbPublisher.Text = disks.Publisher; TbDeveloper.Text = disks.Developer; TbCateqory.Text = disks.Category; Tblanquaqe_Interface.Text = disks.Language_Interface; Tblanquaqe_voice.Text = disks.Language_Voice; TbYear_manufacture.Text = disks.Year_Manufacture; TbInfo.Text = disks.Info; encodedFile = disks.Image; try { ImageProduct.Source = LoadImage(Convert.FromBase64String(encodedFile)); } catch { } }
public Rent_Disk_Page(Disks disks) { InitializeComponent(); _disks = disks; Tbdisk_name.Text = disks.Name; var client = AppData.Context.Users.Where(p => p.Login == AppData.username).FirstOrDefault(); Tbname.Text = client.Name; Tbsurname.Text = client.Surname; Tbpatr.Text = client.Patronymic; Tbmail.Text = client.Email; Tbphone.Text = client.Phone; }
public InfoDiskPage(Disks disks) { InitializeComponent(); Tbname.Text = disks.Name; Tbtype.Text = disks.Type; Tbprice.Text = disks.Price.ToString() + " рублей"; TbPublisher.Text = disks.Publisher; TbDeveloper.Text = disks.Developer; TbCateqory.Text = disks.Category; Tblanquaqe_Interface.Text = disks.Language_Interface; Tblanquaqe_voice.Text = disks.Language_Voice; TbYear_manufacture.Text = disks.Year_Manufacture; TbInfo.Text = disks.Info; encodedFile = disks.Image; try { ImageProduct.Source = LoadImage(Convert.FromBase64String(encodedFile)); } catch { } }