Example #1
0
        public TravelWarrantPanel(TravelWarrant travelWarrant)
        {
            InitializeComponent();

            travelWarrantsSqlRepository = new TravelWarrantsSqlRepository();

            this.travelWarrant = travelWarrant;

            SetTravelWarrantValues();
        }
Example #2
0
        public BackupAndRestoreWindow()
        {
            InitializeComponent();

            driversSqlRepository        = new DriversSqlRepository();
            vehiclesSqlRepository       = new VehiclesSqlRepository();
            travelRoutesSqlRepository   = new TravelRoutesSqlRepository();
            fuelCostsSqlRepository      = new FuelCostsSqlRepository();
            travelWarrantsSqlRepository = new TravelWarrantsSqlRepository();
            servicesSqlRepository       = new ServicesSqlRepository();
            serviceItemsSqlRepository   = new ServiceItemsSqlRepository();
        }
        public VehiclePanel(Vehicle vehicle)
        {
            InitializeComponent();

            vehiclesSqlRepository       = new VehiclesSqlRepository();
            travelWarrantsSqlRepository = new TravelWarrantsSqlRepository();
            travelRoutesSqlRepository   = new TravelRoutesSqlRepository();
            servicesSqlRepository       = new ServicesSqlRepository();

            this.vehicle = vehicle;

            SetVehicleValues();
        }
Example #4
0
        public CreateTravelWarrantWindow()
        {
            InitializeComponent();

            driversSqlRepository        = new DriversSqlRepository();
            vehiclesSqlRepository       = new VehiclesSqlRepository();
            fuelCostsSqlRepository      = new FuelCostsSqlRepository();
            travelRoutesSqlRepository   = new TravelRoutesSqlRepository();
            travelWarrantsSqlRepository = new TravelWarrantsSqlRepository();

            TbDate.Text = DateTime.Now.ToString("MM/dd/yyyy");
            TbTime.Text = DateTime.Now.ToString("HH:MM:ss");
        }
        public EditTravelWarrantWindow(TravelWarrant travelWarrant)
        {
            InitializeComponent();

            driversSqlRepository        = new DriversSqlRepository();
            vehiclesSqlRepository       = new VehiclesSqlRepository();
            fuelCostsSqlRepository      = new FuelCostsSqlRepository();
            travelRoutesSqlRepository   = new TravelRoutesSqlRepository();
            travelWarrantsSqlRepository = new TravelWarrantsSqlRepository();

            this.travelWarrant = travelWarrant;

            LoadTravelWarrantToWindow(travelWarrant);
        }
        public TravelWarrantsMainMenu()
        {
            InitializeComponent();

            travelWarrantsSqlRepository = new TravelWarrantsSqlRepository();
        }