예제 #1
0
        private void AddItemCommandAction(object obj)
        {
            var form = new AddInstansi();

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