Example #1
0
        /*remember to change back the database into _291GroupProject.database*/
        public addRowCustomer(_291CarRental.database data, Guid CarID, ReservationCustomer theOpenResForm)
        {
            InitializeComponent();
            this.data = data;
            data.myCommand.CommandText = "SELECT UserID from Users where Users.username =@uname";
            data.myCommand.Parameters.AddWithValue("uname", data.usr);

            this.customerID     = Guid.Parse(data.myCommand.ExecuteScalar().ToString());
            this.CarID          = CarID;
            this.theOpenResForm = theOpenResForm;
        }
Example #2
0
 public RemoveRowCustomer(ReservationCustomer reservation)
 {
     InitializeComponent();
     reference = reservation;
 }