public DatabaseWindow() { InitializeComponent(); masstable = new DataGrid[3]; masstable[0] = MainBookTable; masstable[1] = MainСhancelleryTable; masstable[2] = MainMagazineTable; table = new Working_form_Product(masstable); product = new ProductsManagement(); user = new UserManager(); }
public AddItem() { InitializeComponent(); GrupBook.Visibility = Visibility.Collapsed; GrupMagazine.Visibility = Visibility.Collapsed; GrupСhancellery.Visibility = Visibility.Collapsed; massBookObject = new TextBox[] { AuthorBookT, NameBookT, GenreBookT, ManufacturerBookT, MaterialBookT, StorageBookT, PriceBookT }; massMagazineObject = new TextBox[] { NameMagazineT, AuthorMagazineT, TopicMagazineT, StorageMagazineT, GenreMagazineT, ManufacturerMagazineT, AudienceMagazineT, PriceMagazineT }; massСhancelleryObject = new TextBox[] { NameСhancelleryT, StorageСhancelleryT, ManufacturerСhancelleryT, AppointmentСhancelleryT, PriceСhancelleryT }; worcform = new Working_form_Product(); product = new ProductsManagement(); }
public Edit() { InitializeComponent(); GrupBook.Visibility = Visibility.Collapsed; GrupMagazine.Visibility = Visibility.Collapsed; GrupСhancellery.Visibility = Visibility.Collapsed; masstable = new DataGrid[3]; masstable[0] = MainBookTable; masstable[1] = MainСhancelleryTable; masstable[2] = MainMagazineTable; massBookObject = new TextBox[] { AuthorBookT, NameBookT, GenreBookT, ManufacturerBookT, MaterialBookT, StorageBookT, PriceBookT }; massMagazineObject = new TextBox[] { NameMagazineT, AuthorMagazineT, TopicMagazineT, StorageMagazineT, GenreMagazineT, ManufacturerMagazineT, AudienceMagazineT, PriceMagazineT }; massСhancelleryObject = new TextBox[] { NameСhancelleryT, StorageСhancelleryT, ManufacturerСhancelleryT, AppointmentСhancelleryT, PriceСhancelleryT }; workingtable = new Working_form_Product(masstable); }