Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1431


Ignore:
Timestamp:
03/26/09 16:15:54 (16 years ago)
Author:
aleitner
Message:

show new job-element in console (#508)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Hive_Management_Console_Refactoring_Ticket508/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs

    r1381 r1431  
    315315        if (change.Types == Type.Job) {
    316316          if (change.ChangeType == Change.Update) {
     317            ListViewItem[] lviList = lvJobControl.Items.Find(change.ID.ToString(), true);
     318
     319            lviList[0].Group = jobGroup[0];
     320           
    317321            //if (jobObjects[change.ID].ListView.Groups.ToString() == ) {}
    318322            //ListViewItem lvi = new ListViewItem(
     
    320324          } else if (change.ChangeType == Change.Create) {
    321325            ListViewItem lvi = new ListViewItem(
    322               jobs.List[change.Position].Id.ToString(), 0, jobGroup[2]);
     326              change.ID.ToString(), 0, jobGroup[2]);
    323327            jobObjects.Add(change.ID, lvi);
    324328            lvJobControl.Items.Add(lvi);
     
    397401    private void updaterWoker_DoWork(object sender, DoWorkEventArgs e) {
    398402
     403        changes.Clear();
    399404      IClientManager clientManager =
    400405          ServiceLocator.GetClientManager();
     
    432437      IDictionary<int, Job> jobsOldHelp;
    433438      CloneList(jobsOld, out jobsOldHelp);
    434      
    435       //System.Diagnostics.Debug.WriteLine(jobsOldHelp.List[0].Id.ToString());
    436439
    437440      GetDelta(jobsOld.List, jobsOldHelp);
     
    470473
    471474    private bool IsEqual(ClientInfo ci1, ClientInfo ci2) {
     475      if (ci2 == null) {
     476        return false;
     477      }
    472478      if (ci1.ClientId.Equals(ci2.ClientId)) {
    473479        return true;
Note: See TracChangeset for help on using the changeset viewer.