Esempio n. 1
0
 public AddEditRentalRecord()
 {
     InitializeComponent();
     lbltitle.Text = "Add New Rental Record";
     this.Text     = "Add New Rental Record";
     isEditMode    = false;
     _db           = new carRentalEntities();
 }
Esempio n. 2
0
 public AddEditVehicle(ManageVehicleListing manageVehicle = null)
 {
     InitializeComponent();
     lbltitle.Text  = "Add New Vehicle";
     this.Text      = "Add New Vehicle";
     isEditMode     = false;
     _manageVehicle = manageVehicle;
     _db            = new carRentalEntities();
 }
Esempio n. 3
0
        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);
            }
        }
Esempio n. 4
0
        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);
            }
        }
Esempio n. 5
0
 public ResetPassword(User user)
 {
     InitializeComponent();
     _db   = new carRentalEntities();
     _user = user;
 }
Esempio n. 6
0
 public ManageRentalRecord()
 {
     InitializeComponent();
     _db = new carRentalEntities();
 }
Esempio n. 7
0
 public Login()
 {
     InitializeComponent();
     _db = new carRentalEntities();
 }
Esempio n. 8
0
 public ManageUsers()
 {
     InitializeComponent();
     _db = new carRentalEntities();
 }
Esempio n. 9
0
 public ManageVehicleListing()
 {
     InitializeComponent();
     _db = new carRentalEntities();
 }
Esempio n. 10
0
 public AddUser(ManageUsers manageUsers)
 {
     InitializeComponent();
     _db          = new carRentalEntities();
     _manageUsers = manageUsers;
 }