Exemple #1
0
        private void transaksiBaru_btn_Click(object sender, RoutedEventArgs e)
        {
            rekapTransaksiController.resetKeranjang();
            KeranjangView keranjangView = new KeranjangView();

            keranjangView.Show();
            this.Hide();
        }
 private void tambah_btn_Click(object sender, RoutedEventArgs e)
 {
     if (produk_cbx.SelectedItem != null && jumlah_tb.Text != null)
     {
         detailProdukController.addToKeranjang(selectedProduct, pieces, subtotal);
         Console.WriteLine(selectedProduct.namaProduk + pieces + subtotal);
         keranjangView = new KeranjangView();
         keranjangView.Show();
         this.Hide();
     }
 }
Exemple #3
0
 private void movePage(bool _type)
 {
     if (_type)
     {
         RekapTransaksiView rekapTransaksi = new RekapTransaksiView();
         rekapTransaksi.Show();
         this.Close();
     }
     else
     {
         KeranjangView keranjangView = new KeranjangView();
         keranjangView.Show();
         this.Close();
     }
 }