Esempio n. 1
0
        private void TambahPengaduanAction(object obj)
        {
            var form = new Views.TambahPengaduan(false);

            form.DataContext = new PengaduanViewModel();
            form.Show();
        }
Esempio n. 2
0
        private void AddAction(object obj)
        {
            var form = new TambahPengaduan(false);

            form.DataContext = new PengaduanViewModel();
            form.ShowDialog();

            Datas.Refresh();
        }
Esempio n. 3
0
 private void EditAction(object obj)
 {
     if (obj != null)
     {
         var form = new TambahPengaduan(false);
         var data = Mapper.Map <PengaduanViewModel>(obj as Pengaduan);
         form.DataContext = data;
         form.ShowDialog();
     }
 }