private void Item_RecordDeleted(Common.SettingsHeaderViewModel obj) { ShowBusy("deleting selected item..."); try { dbManager.DeleteSetting(obj.Id); settings.Remove(obj); RaisePropertyChanged("Settings"); MessageBox.Show("Selected setting has been deleted", "Success", MessageBoxButton.OK, MessageBoxImage.Information); } catch (Exception ex) { MessageBox.Show("Error has been occured", "Error", MessageBoxButton.OK, MessageBoxImage.Error); } StopBusy(); }
private void SettingsVm_RecordEdited(ViewModels.Common.SettingsHeaderViewModel obj) { CurrentContent = Contents.LastOrDefault(); settingsDetail.RecordEdited(obj); }
private void Item_RecordEdited(Common.SettingsHeaderViewModel obj) { RecordEdited(obj); }