private void _UpdateInfo() { if (Selected != null) { VM番组.解析信息(Selected.番组.Bangumi编号, Selected.番组); DbModel.SaveChanges(); } }
private void _DropBgm(object o) { var code = (string)o; var bgm = VM番组.解析信息(code, new 番组()); bgm.Bangumi编号 = code; DbModel.番组.Add(bgm); DbModel.SaveChanges(); BgmList.Add(bgm); }
private void _EditBgm(dynamic o) { if (SelectedBangumi != null) { var vm = new VM番组(SelectedBangumi); vm.EditMode = true; var window = new View.W番组(vm); window.Owner = o; window.ShowDialog(); } }