private void savefkamar_Click(object sender, RoutedEventArgs e) { A_Roomtype_FacilityController contr = new A_Roomtype_FacilityController(); contr.InsertFasilitaskamar(Convert.ToInt32(Nkamarbox.SelectedValue), Convert.ToInt32(Fkamarbox.SelectedValue)); MessageBox.Show("Register Success", "Message", MessageBoxButton.OK, MessageBoxImage.Information); this.Hide(); HotelWindow hasil = new HotelWindow(); hasil.ShowDialog(); }
private void save_Click(object sender, RoutedEventArgs e) { A_HotelController contr = new A_HotelController(); contr.InsertHotel(Nama_Hotel.Text, Kecamatanbox.Text, Road.Text, Hp.Text, Emails.Text, Managers.Text); MessageBox.Show("Register Success", "Message", MessageBoxButton.OK, MessageBoxImage.Information); this.Hide(); HotelWindow hasil = new HotelWindow(); hasil.ShowDialog(); }
private void savecust_Click(object sender, RoutedEventArgs e) { UserController contr = new UserController(); contr.InsertUser(Cust_name.Text, Username.Text, Emailcust.Text, Locationcust.Text, Passwordcust.Text, Convert.ToInt16(Roles_id.SelectedValue), getJenisKelaminUser()); MessageBox.Show("Register Success", "Message", MessageBoxButton.OK, MessageBoxImage.Information); this.Hide(); HotelWindow hasil = new HotelWindow(); hasil.ShowDialog(); }
private void savebooking_Click(object sender, RoutedEventArgs e) { A_BookingdateController contr = new A_BookingdateController(); contr.InsertBookingDate(Convert.ToDateTime(Tglbooking.Text), Convert.ToInt32(Iduser.SelectedValue)); MessageBox.Show("Register Success", "Message", MessageBoxButton.OK, MessageBoxImage.Information); this.Hide(); HotelWindow hasil = new HotelWindow(); hasil.ShowDialog(); }
private void savetipe_Click(object sender, RoutedEventArgs e) { A_Hotel_RoomtypeController contr = new A_Hotel_RoomtypeController(); contr.InsertTipeHotel(Convert.ToInt32(Hargatext.Text), Convert.ToInt32(stoktext.Text), Fototext.Text, Deskripsitext.Text, Convert.ToInt32(Id_Tipekamarbox.SelectedValue), Convert.ToInt32(Id_Hotelbox.SelectedValue)); MessageBox.Show("Register Success", "Message", MessageBoxButton.OK, MessageBoxImage.Information); this.Hide(); HotelWindow hasil = new HotelWindow(); hasil.ShowDialog(); }
private void login_Click(object sender, RoutedEventArgs e) { if (users.login(usernamebox.Text, passwordBox.Password) == true) { this.Hide(); HotelWindow admin = new HotelWindow(); admin.ShowDialog(); } else { MessageBox.Show("Username and Password not match", "Warning", MessageBoxButton.OK, MessageBoxImage.Warning); passwordBox.Clear(); usernamebox.Clear(); usernamebox.Focus(); } }