Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7973 for branches


Ignore:
Timestamp:
06/06/12 15:52:34 (12 years ago)
Author:
ascheibe
Message:

#1174 small ui improvement when the client isn't registered

Location:
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/HeuristicLab.Clients.OKB-3.3.csproj

    r7742 r7973  
    330330    <Compile Include="RunCreation\EmptySolutionCreator.cs" />
    331331    <Compile Include="RunCreation\ItemWrapper.cs" />
     332    <Compile Include="RunCreation\MissingClientRegistrationException.cs" />
    332333    <Compile Include="RunCreation\MultiObjectiveOKBProblem.cs" />
    333334    <Compile Include="RunCreation\NamedItemWrapper.cs" />
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBRun.cs

    r7741 r7973  
    140140      if (Stored) throw new InvalidOperationException("Cannot store already stored run.");
    141141      if (!ClientInformation.Instance.ClientExists) {
    142         throw new Exception("To be able to store runs, you need to register your client first.");
     142        throw new MissingClientRegistrationException();
    143143      }
    144144
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/Views/OKBRunView.cs

    r7331 r7973  
    2121
    2222using System;
     23using System.Windows.Forms;
    2324using HeuristicLab.Core.Views;
    2425using HeuristicLab.MainForm;
     
    6869        Content.Store();
    6970      }
     71      catch (MissingClientRegistrationException) {
     72        MessageBox.Show("You have to register your client to be able to store OKB runs." + Environment.NewLine
     73          + " Please click in the menu bar on Services -> Access -> Client Information and register your client. ", "Missing client registration", MessageBoxButtons.OK, MessageBoxIcon.Information);
     74      }
    7075      catch (Exception ex) {
    7176        ErrorHandling.ShowErrorDialog(this, "Store failed.", ex);
Note: See TracChangeset for help on using the changeset viewer.