Exemple #1
0
 public AddEditRentalRecord()
 {
     InitializeComponent();
     labTitle.Text = "Add New Rental Record";
     this.Text     = "Add New Rental Record";
     isEditMode    = false;
     _db           = new CarRentalEntities1();
 }
Exemple #2
0
 public AddEditVehicle(ManageVehicleListing manageVehicleListing = null)
 {
     InitializeComponent();
     labTitle.Text         = "Add New Vehicle";
     this.Text             = "Add New Vehicle";
     isEditMode            = false;
     _manageVehicleListing = manageVehicleListing;
     _db = new CarRentalEntities1();
 }
Exemple #3
0
 public AddEditRentalRecord(CarRentalRecord recordToEdit)
 {
     InitializeComponent();
     labTitle.Text = "Edit Rental Record";
     this.Text     = "Edit Rental Record";
     if (recordToEdit == null)
     {
         MessageBox.Show("Please ensure that you selected a valid record to edit");
         Close();
     }
     else
     {
         isEditMode = true;
         _db        = new CarRentalEntities1();
         PopulateFields(recordToEdit);
     }
 }
Exemple #4
0
 public AddEditVehicle(TypesOfCars carToEdit, ManageVehicleListing manageVehicleListing = null)
 {
     InitializeComponent();
     labTitle.Text         = "Edit Vehicle";
     this.Text             = "Edit Vehicle";
     _manageVehicleListing = manageVehicleListing;
     if (carToEdit == null)
     {
         MessageBox.Show("Please ensure that you selected a valid record to edit");
         Close();
     }
     else
     {
         isEditMode = true;
         _db        = new CarRentalEntities1();
         PopulateFields(carToEdit);
     }
 }
Exemple #5
0
 public ResetPassword(User user)
 {
     InitializeComponent();
     _db = new CarRentalEntities1();
     _user = user;
 }
 public ManageUsers()
 {
     InitializeComponent();
     _db = new CarRentalEntities1();
 }
 public ManageRentlaRecords()
 {
     InitializeComponent();
     _db = new CarRentalEntities1();
 }
Exemple #8
0
 public ManageVehicleListing()
 {
     InitializeComponent();
     _db = new CarRentalEntities1();
 }
Exemple #9
0
 public Login()
 {
     InitializeComponent();
     _db = new CarRentalEntities1();
 }
Exemple #10
0
 public AddUser(ManageUsers mangeUsers)
 {
     InitializeComponent();
     _db          = new CarRentalEntities1();
     _manageUsers = mangeUsers;
 }