コード例 #1
0
        private void EnterInSelling(object sender, RoutedEventArgs e)
        {
            cars = DBCars.ReadCatalog(role);
            string Number = SellingBox.Text;

            Staff.SellCar(Number, cars); //может быть ref
            DBCars.WriteCatalog(cars);
        }
コード例 #2
0
 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);
 }
コード例 #3
0
 public SecondWindow(string role)
 {
     SecondWindow.role = role;
     cars = DBCars.ReadCatalog(role);
     InitializeComponent();
 }