コード例 #1
0
        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();
        }
コード例 #2
0
 private void SettingsVm_RecordEdited(ViewModels.Common.SettingsHeaderViewModel obj)
 {
     CurrentContent = Contents.LastOrDefault();
     settingsDetail.RecordEdited(obj);
 }
コード例 #3
0
 private void Item_RecordEdited(Common.SettingsHeaderViewModel obj)
 {
     RecordEdited(obj);
 }