private void addResvCus_Click(object sender, RoutedEventArgs e) { DataLayer.Entities.Customer cusResv = new DataLayer.Entities.Customer(); cusResv = (DataLayer.Entities.Customer)CustomerList.SelectedItem; AddCustomerResvUI addRescust = new AddCustomerResvUI(cusResv); addRescust.Show(); }
public AddCustomerResvUI(DataLayer.Entities.Customer cusToresv) { InitializeComponent(); RoomTypes.Items.Add("SINGLE"); RoomTypes.Items.Add("DOUBLE"); RoomTypes.Items.Add("SUITE"); newaddcust = cusToresv; }
public void addCustomer(DataLayer.Entities.Customer ent) { dc.GetTable <DataLayer.Entities.Customer>().InsertOnSubmit(ent); dc.SubmitChanges(); }