private void OnSetRetentionsPolicies() { try { var items = this.view.SelectedItems; var wnd = new RetentionPolicyWindow(); bool?res = wnd.ShowDialog(); if (res.HasValue && res.Value) { using (new WaitCursor()) { this.repository.SetRetentionPolicies(items.Select(bd => bd.Uri), wnd.BuildRetentionPolicy); this.OnRefresh(new EventArgs()); } } } catch (Exception ex) { this.view.DisplayError(ex); } }
private void OnSetRetentionsPolicies() { try { var items = this.view.SelectedItems; var wnd = new RetentionPolicyWindow(); bool? res = wnd.ShowDialog(); if (res.HasValue && res.Value) { using (new WaitCursor()) { this.repository.SetRetentionPolicies(items.Select(bd => bd.Uri), wnd.BuildRetentionPolicy); this.OnRefresh(new EventArgs()); } } } catch (Exception ex) { this.view.DisplayError(ex); } }