Beispiel #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();
     }
 }
Beispiel #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();
     }
 }
 public void setKeranjangView(KeranjangView _keranjangView)
 {
     detailProdukView.setKeranjangView(_keranjangView);
 }
 public void setKeranjangView(KeranjangView _keranjangView)
 {
     this.keranjangView = _keranjangView;
 }