| | |
| | | var vm = gridView1.GetCurrentViewModel(_allBindList); |
| | | if (vm == null) |
| | | return; |
| | | if (vm.ID == Settings.Project.ID) |
| | | if (vm.ID == SettingsD.Project.ID) |
| | | { |
| | | XtraMessageBox.Show("无法打开正在使用的项目!"); |
| | | return; |
| | |
| | | var vm = gridView1.GetCurrentViewModel(_allBindList); |
| | | if (vm == null) |
| | | return; |
| | | if (vm.ID == Settings.Project.ID) |
| | | if (vm.ID == SettingsD.Project.ID) |
| | | { |
| | | XtraMessageBox.Show("项目已打开,不能移除!"); |
| | | return; |
| | |
| | | var vm = gridView1.GetRow(e.RowHandle) as CurrentViewModel; |
| | | if (vm == null) return; |
| | | |
| | | if (vm.ID == Settings.Project.ID) |
| | | if (vm.ID == SettingsD.Project.ID) |
| | | { |
| | | e.Appearance.BackColor = Color.PapayaWhip; |
| | | } |