37 lines
846 B
C#
37 lines
846 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
using ProjectLibrary.Entites;
|
|
|
|
namespace ProjectLibrary.Forms
|
|
{
|
|
public partial class FLibrary : Form
|
|
{
|
|
private Library _library;
|
|
|
|
public FLibrary(Library library)
|
|
{
|
|
InitializeComponent();
|
|
_library = library;
|
|
LoadLibraryData();
|
|
}
|
|
|
|
private void LoadLibraryData()
|
|
{
|
|
txtId.Text = _library.Id.ToString();
|
|
txtName.Text = _library.Name;
|
|
txtAddress.Text = _library.Address;
|
|
}
|
|
|
|
private void btnSave_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void buttonCancel_Click_Click(object sender, EventArgs e)
|
|
{
|
|
// Закрытие формы без сохранения
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|