private void EnterInSelling(object sender, RoutedEventArgs e) { cars = DBCars.ReadCatalog(role); string Number = SellingBox.Text; Staff.SellCar(Number, cars); //может быть ref DBCars.WriteCatalog(cars); }
private void EnterInPrintCars(object sender, RoutedEventArgs e) { cars = DBCars.ReadCatalog(role); Staff.PrintCars(cars); //string[] str = new string[cars.Count]; //for (int i = 0; i < cars.Count; i++) //{ // BoxToRead.Text = User.ListToStr(cars[i], role); //} BoxToRead.Text = User.ListToStr(cars, role); }
public SecondWindow(string role) { SecondWindow.role = role; cars = DBCars.ReadCatalog(role); InitializeComponent(); }