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();
        }
예제 #2
0
        public AddCustomerResvUI(DataLayer.Entities.Customer cusToresv)
        {
            InitializeComponent();

            RoomTypes.Items.Add("SINGLE");
            RoomTypes.Items.Add("DOUBLE");
            RoomTypes.Items.Add("SUITE");

            newaddcust = cusToresv;
        }
예제 #3
0
 public void addCustomer(DataLayer.Entities.Customer ent)
 {
     dc.GetTable <DataLayer.Entities.Customer>().InsertOnSubmit(ent);
     dc.SubmitChanges();
 }