Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/04/17 17:19:35 (7 years ago)
Author:
gkronber
Message:

#2520: changed all usages of StorableClass to use StorableType with an auto-generated GUID (did not add StorableType to other type definitions yet)

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  
    3838      try {
    3939        base.removeButton_Click(sender, e);
    40       }
    41       catch (Exception ex) {
     40      } catch (Exception ex) {
    4241        ErrorHandling.ShowErrorDialog(this, "Delete failed.", ex);
    4342      }
     
    4645      try {
    4746        base.itemsListView_KeyDown(sender, e);
    48       }
    49       catch (Exception ex) {
     47      } catch (Exception ex) {
    5048        ErrorHandling.ShowErrorDialog(this, "Delete failed.", ex);
    5149      }
     
    5452      try {
    5553        base.itemsListView_ItemDrag(sender, e);
    56       }
    57       catch (Exception ex) {
     54      } catch (Exception ex) {
    5855        ErrorHandling.ShowErrorDialog(this, "Delete failed.", ex);
    5956      }
  • branches/PersistenceReintegration/HeuristicLab.Clients.OKB.Views/3.3/Administration/Views/ProblemView.cs

    r14185 r14927  
    162162        AdministrationClient.UpdateProblemUsers(Content.Id, problemUserView.GetCheckedUsers().Select(x => x.Id).ToList());
    163163        storeUsersButton.Enabled = false;
    164       }
    165       catch (Exception ex) {
     164      } catch (Exception ex) {
    166165        ErrorHandling.ShowErrorDialog(this, "Store authorized users and groups failed.", ex);
    167166      }
     
    182181              try {
    183182                dataViewHost.Content = XmlParser.Deserialize<IContent>(stream);
    184               }
    185               catch (Exception) { }
     183              } catch (Exception) { }
    186184              stream.Close();
    187185            }
     
    221219          data = null;
    222220          dataViewHost.Content = (IContent)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
    223         }
    224         catch (Exception ex) {
     221        } catch (Exception ex) {
    225222          ErrorHandling.ShowErrorDialog(this, "Create new problem data failed.", ex);
    226223        }
     
    235232            try {
    236233              problem = XmlParser.Deserialize<IContent>(openFileDialog.FileName);
    237             }
    238             catch (Exception) { }
     234            } catch (Exception) { }
    239235
    240236            if (problem != null) {
     
    279275    private void CallAsync(Action call, string errorMessage, Action continueWith) {
    280276      BeginAsyncCall();
    281       call.BeginInvoke(delegate(IAsyncResult result) {
     277      call.BeginInvoke(delegate (IAsyncResult result) {
    282278        Exception exception = null;
    283279        try {
    284280          call.EndInvoke(result);
    285         }
    286         catch (Exception ex) {
     281        } catch (Exception ex) {
    287282          exception = ex;
    288283        }
  • branches/PersistenceReintegration/HeuristicLab.Clients.OKB.Views/3.3/HeuristicLab.Clients.OKB.Views-3.3.csproj

    r14926 r14927  
    373373      <Private>False</Private>
    374374    </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>
    375379    <ProjectReference Include="..\..\HeuristicLab.Persistence\4.0\HeuristicLab.Persistence-4.0.csproj">
    376380      <Project>{b1663091-8156-4deb-9e37-5b19810a4644}</Project>
  • branches/PersistenceReintegration/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/Views/OKBAlgorithmView.cs

    r14185 r14927  
    281281        try {
    282282          Content.Problem = (IProblem)problemTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
    283         }
    284         catch (Exception ex) {
     283        } catch (Exception ex) {
    285284          ErrorHandling.ShowErrorDialog(this, ex);
    286285        }
     
    293292        problemViewHost.Enabled = false;
    294293
    295         ContentManager.LoadAsync(openFileDialog.FileName, delegate(IStorableContent content, Exception error) {
     294        ContentManager.LoadAsync(openFileDialog.FileName, delegate (IStorableContent content, Exception error) {
    296295          try {
    297296            if (error != null) throw error;
     
    305304            else
    306305              Content.Problem = problem;
    307           }
    308           catch (Exception ex) {
     306          } catch (Exception ex) {
    309307            Invoke(new Action(() => ErrorHandling.ShowErrorDialog(this, ex)));
    310           }
    311           finally {
    312             Invoke(new Action(delegate() {
     308          } finally {
     309            Invoke(new Action(delegate () {
    313310              problemViewHost.Enabled = true;
    314311              newProblemButton.Enabled = openProblemButton.Enabled = true;
Note: See TracChangeset for help on using the changeset viewer.