void Clear() { List <RequestEditViewModel> _list = new List <RequestEditViewModel>(_requestViewModelList.Values); foreach (RequestEditViewModel viewModel in _list) { _dialogMgr.CloseNoModal(viewModel.Ident); } _requestViewModelList.Clear(); foreach (RequestListViewModel viewModel in _requestListViewModelList.Values) { _regionMgr.GetViewRegion(SDK.RegionName.DocumentRegion).RemoveView(viewModel.Ident); } _requestListViewModelList.Clear(); }
private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { _docView = CreateView(); _key = _regionMgr.GetViewRegion("DocumentRegion").AddView(CreateView()); }