Exemplo n.º 1
0
        private void AddItemCommandAction(object obj)
        {
            var form = new AddInstansi();

            form.DataContext = new AddInstansiViewModel()
            {
                WindowClose = form.Close
            };
            form.ShowDialog();
            DataInstansi.Refresh();
        }
Exemplo n.º 2
0
 private void DeleteItemCommandAction(object obj)
 {
     DataBasic.DataInstansi.Remove(obj as Instansi);
     DataInstansi.Refresh();
 }