Posts

Showing posts from April, 2021

Tugas 4

Image
 MVVW pada WPF Langkah pembuatan aplikasi: Memilih project WPF dengan menggunakan .NET Framework versi 5 Membuat class  ItemPenjualan   sebagai model           using System:           using System.Collections.Generic;           using System.Linq;           using System.Text;           using System.ComponentModel.DataAnnotations;           using System.ComponentModel.DataAnnotations.Schema;             namespace LatihanMVVM           {                public class ItemPenjualan                {                     public ItemPenjualan()                    {                        DiskonPersen = 0;                    }                      public long Id { get ; set ; }                      public string NamaBarang { get ; set ; }                      public int Jumlah { get ; set ; }                      public decimal Harga { get ; set ; }                      public decimal DiskonPersen { get ; set ; }                      public decimal Total()