Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/HostedServiceView.cs @ 15802

Last change on this file since 15802 was 7390, checked in by spimming, 13 years ago

#1680:

  • Reposition elements
  • HostedServiceView initial commit
File size: 1.1 KB
Line 
1
2using HeuristicLab.Clients.Hive.CloudManager.Model;
3using HeuristicLab.Core.Views;
4using HeuristicLab.MainForm;
5namespace HeuristicLab.Clients.Hive.CloudManager.Views {
6  [View("HostedServiceView")]
7  [Content(typeof(HostedService), IsDefaultView = true)]
8  public partial class HostedServiceView : ItemView {
9    public new HostedService Content {
10      get { return (HostedService)base.Content; }
11      set { base.Content = value; }
12    }
13
14    public HostedServiceView() {
15      InitializeComponent();
16    }
17
18    protected override void DeregisterContentEvents() {
19      base.DeregisterContentEvents();
20    }
21    protected override void RegisterContentEvents() {
22      base.RegisterContentEvents();
23    }
24
25    protected override void OnContentChanged() {
26      if (Content == null) {
27        txtServiceName.Clear();
28        txtUrl.Clear();
29        txtLocation.Clear();
30        txtCoresUsed.Clear();
31      } else {
32        txtServiceName.Text = Content.ServiceName;
33        txtUrl.Text = Content.Url;
34        txtLocation.Text = Content.HostedServiceProperties.Location;
35        txtCoresUsed.Text = "-";
36      }
37    }
38  }
39}
Note: See TracBrowser for help on using the repository browser.