- Timestamp:
- 05/04/17 17:19:35 (7 years ago)
- Location:
- branches/PersistenceReintegration/HeuristicLab.Clients.OKB.Views/3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Clients.OKB.Views/3.3/Administration/Views/OKBItemCollectionView.cs
r14185 r14927 38 38 try { 39 39 base.removeButton_Click(sender, e); 40 } 41 catch (Exception ex) { 40 } catch (Exception ex) { 42 41 ErrorHandling.ShowErrorDialog(this, "Delete failed.", ex); 43 42 } … … 46 45 try { 47 46 base.itemsListView_KeyDown(sender, e); 48 } 49 catch (Exception ex) { 47 } catch (Exception ex) { 50 48 ErrorHandling.ShowErrorDialog(this, "Delete failed.", ex); 51 49 } … … 54 52 try { 55 53 base.itemsListView_ItemDrag(sender, e); 56 } 57 catch (Exception ex) { 54 } catch (Exception ex) { 58 55 ErrorHandling.ShowErrorDialog(this, "Delete failed.", ex); 59 56 } -
branches/PersistenceReintegration/HeuristicLab.Clients.OKB.Views/3.3/Administration/Views/ProblemView.cs
r14185 r14927 162 162 AdministrationClient.UpdateProblemUsers(Content.Id, problemUserView.GetCheckedUsers().Select(x => x.Id).ToList()); 163 163 storeUsersButton.Enabled = false; 164 } 165 catch (Exception ex) { 164 } catch (Exception ex) { 166 165 ErrorHandling.ShowErrorDialog(this, "Store authorized users and groups failed.", ex); 167 166 } … … 182 181 try { 183 182 dataViewHost.Content = XmlParser.Deserialize<IContent>(stream); 184 } 185 catch (Exception) { } 183 } catch (Exception) { } 186 184 stream.Close(); 187 185 } … … 221 219 data = null; 222 220 dataViewHost.Content = (IContent)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 223 } 224 catch (Exception ex) { 221 } catch (Exception ex) { 225 222 ErrorHandling.ShowErrorDialog(this, "Create new problem data failed.", ex); 226 223 } … … 235 232 try { 236 233 problem = XmlParser.Deserialize<IContent>(openFileDialog.FileName); 237 } 238 catch (Exception) { } 234 } catch (Exception) { } 239 235 240 236 if (problem != null) { … … 279 275 private void CallAsync(Action call, string errorMessage, Action continueWith) { 280 276 BeginAsyncCall(); 281 call.BeginInvoke(delegate (IAsyncResult result) {277 call.BeginInvoke(delegate (IAsyncResult result) { 282 278 Exception exception = null; 283 279 try { 284 280 call.EndInvoke(result); 285 } 286 catch (Exception ex) { 281 } catch (Exception ex) { 287 282 exception = ex; 288 283 } -
branches/PersistenceReintegration/HeuristicLab.Clients.OKB.Views/3.3/HeuristicLab.Clients.OKB.Views-3.3.csproj
r14926 r14927 373 373 <Private>False</Private> 374 374 </ProjectReference> 375 <ProjectReference Include="..\..\HeuristicLab.Persistence\3.3\HeuristicLab.Persistence-3.3.csproj"> 376 <Project>{102BC7D3-0EF9-439C-8F6D-96FF0FDB8E1B}</Project> 377 <Name>HeuristicLab.Persistence-3.3</Name> 378 </ProjectReference> 375 379 <ProjectReference Include="..\..\HeuristicLab.Persistence\4.0\HeuristicLab.Persistence-4.0.csproj"> 376 380 <Project>{b1663091-8156-4deb-9e37-5b19810a4644}</Project> -
branches/PersistenceReintegration/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/Views/OKBAlgorithmView.cs
r14185 r14927 281 281 try { 282 282 Content.Problem = (IProblem)problemTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 283 } 284 catch (Exception ex) { 283 } catch (Exception ex) { 285 284 ErrorHandling.ShowErrorDialog(this, ex); 286 285 } … … 293 292 problemViewHost.Enabled = false; 294 293 295 ContentManager.LoadAsync(openFileDialog.FileName, delegate (IStorableContent content, Exception error) {294 ContentManager.LoadAsync(openFileDialog.FileName, delegate (IStorableContent content, Exception error) { 296 295 try { 297 296 if (error != null) throw error; … … 305 304 else 306 305 Content.Problem = problem; 307 } 308 catch (Exception ex) { 306 } catch (Exception ex) { 309 307 Invoke(new Action(() => ErrorHandling.ShowErrorDialog(this, ex))); 310 } 311 finally { 312 Invoke(new Action(delegate() { 308 } finally { 309 Invoke(new Action(delegate () { 313 310 problemViewHost.Enabled = true; 314 311 newProblemButton.Enabled = openProblemButton.Enabled = true;
Note: See TracChangeset
for help on using the changeset viewer.