Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17274


Ignore:
Timestamp:
09/26/19 16:54:12 (5 years ago)
Author:
jkarder
Message:

#3024: fixed build fail

Location:
trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.Designer.cs

    r17268 r17274  
    220220      this.Name = "ProjectView";
    221221      this.Size = new System.Drawing.Size(539, 271);
     222      this.Load += new System.EventHandler(this.ProjectView_Load);
    222223      this.ResumeLayout(false);
    223224      this.PerformLayout();
  • trunk/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectView.cs

    r17273 r17274  
    4444      AccessClient.Instance.Refreshing += AccessClient_Instance_Refreshing;
    4545      AccessClient.Instance.Refreshed += AccessClient_Instance_Refreshed;
    46 
    47       UpdateUsers();
    4846    }
    4947
     
    7876        nameTextBox.Text = Content.Name;
    7977        descriptionTextBox.Text = Content.Description;
    80         ownerComboBox.SelectedItem = AccessClient.Instance.UsersAndGroups.OfType<LightweightUser>().SingleOrDefault(x => x.Id == Content.OwnerUserId);
     78        ownerComboBox.SelectedItem = AccessClient.Instance.UsersAndGroups?.OfType<LightweightUser>().SingleOrDefault(x => x.Id == Content.OwnerUserId);
    8179        createdTextBox.Text = Content.DateCreated.ToString("ddd, dd.MM.yyyy, HH:mm:ss");
    8280        startDateTimePicker.Value = Content.StartDate;
     
    146144
    147145    #region Event Handlers
     146    private void ProjectView_Load(object sender, EventArgs e) {
     147      Locked = true;
     148      try {
     149        UpdateUsers();
     150        UpdateView();
     151      } finally {
     152        Locked = false;
     153      }
     154    }
     155
    148156    private void Content_PropertyChanged(object sender, PropertyChangedEventArgs e) {
    149157      UpdateView();
     
    175183
    176184      Content.OwnerUserId = selectedOwnerUserId;
     185    }
     186
     187    private async void refreshButton_Click(object sender, EventArgs e) {
     188      Locked = true;
     189      try {
     190        await UpdateUsersAsync();
     191        UpdateView();
     192      } finally {
     193        Locked = false;
     194      }
    177195    }
    178196
     
    260278    }
    261279    #endregion
    262 
    263     private async void refreshButton_Click(object sender, EventArgs e) {
    264       Locked = true;
    265       try {
    266         await UpdateUsersAsync();
    267         UpdateView();
    268       } finally {
    269         Locked = false;
    270       }
    271     }
    272280  }
    273281}
Note: See TracChangeset for help on using the changeset viewer.