Example #1
0
 public ContractVM(BuildVehicleVM vm, VehicleModel v)
 {
     db             = new CarsContext();
     contractType   = "заказ";
     buildVehicleVM = vm;
     vehicle        = v;
     employee       = vm.Window.Employee;
     date           = DateTime.Now;
 }
Example #2
0
        public ContractPage(BuildVehicleVM vm, VehicleModel v)
        {
            InitializeComponent();

            DataContext = new ContractVM(vm, v);
        }
        public BuildVehiclePage(Frame main, MainWindow window)
        {
            InitializeComponent();

            DataContext = new BuildVehicleVM(main, window, this);
        }