Ejemplo n.º 1
0
        private void EditCommandAction(object obj)
        {
            var form = new Forms.AddNewJabatan();
            var vm   = new ViewModels.AddNewJabatanViewModel(SelectedItem);

            form.DataContext = vm;
            form.ShowDialog();
            MainCollection.SourceView.Refresh();
        }
Ejemplo n.º 2
0
        private void AddCommandAction(object obj)
        {
            var form = new Forms.AddNewJabatan();
            var vm   = new ViewModels.AddNewJabatanViewModel()
            {
                WindowClose = form.Close
            };

            form.DataContext = vm;
            form.ShowDialog();
            MainCollection.SourceView.Refresh();
        }