public AddEditRentalRecord() { InitializeComponent(); lbltitle.Text = "Add New Rental Record"; this.Text = "Add New Rental Record"; isEditMode = false; _db = new carRentalEntities(); }
public AddEditVehicle(ManageVehicleListing manageVehicle = null) { InitializeComponent(); lbltitle.Text = "Add New Vehicle"; this.Text = "Add New Vehicle"; isEditMode = false; _manageVehicle = manageVehicle; _db = new carRentalEntities(); }
public AddEditVehicle(typesOfCar carToEdit, ManageVehicleListing manageVehicle = null) { InitializeComponent(); lbltitle.Text = "Edit Vehicle"; this.Text = "Edit Vehicle"; if (carToEdit == null) { MessageBox.Show("Please ensure that u selected a valid record to edit"); Close(); } else { isEditMode = true; _manageVehicle = manageVehicle; _db = new carRentalEntities(); PopulateFields(carToEdit); } }
public AddEditRentalRecord(carRentalRecord recordToEdit) { InitializeComponent(); lbltitle.Text = "Edit Rental Record"; this.Text = "Edit Rental Record"; if (recordToEdit == null) { MessageBox.Show("Please ensure that u selected a valid record to edit"); Close(); } else { isEditMode = true; _db = new carRentalEntities(); PopulateFields(recordToEdit); } }
public ResetPassword(User user) { InitializeComponent(); _db = new carRentalEntities(); _user = user; }
public ManageRentalRecord() { InitializeComponent(); _db = new carRentalEntities(); }
public Login() { InitializeComponent(); _db = new carRentalEntities(); }
public ManageUsers() { InitializeComponent(); _db = new carRentalEntities(); }
public ManageVehicleListing() { InitializeComponent(); _db = new carRentalEntities(); }
public AddUser(ManageUsers manageUsers) { InitializeComponent(); _db = new carRentalEntities(); _manageUsers = manageUsers; }