Esempio n. 1
0
        private void BindService()
        {
            litGroup.Text = PanelFormatter.GetLocalizedResourceGroupName(resourceGroup.GroupName);

            if (ResourceGroups.VPS2012 == resourceGroup.GroupName || ResourceGroups.Os == resourceGroup.GroupName)
            {
                textProvider.Visible    = false;
                ddlProviders.DataSource = ES.Services.Servers.GetProvidersByGroupId(provider.GroupId);
                ddlProviders.DataBind();
                ddlProviders.SelectedValue = provider.ProviderId.ToString();
            }
            else
            {
                selectProvider.Visible = false;
                litProvider.Text       = provider.DisplayName;
            }

            txtServiceName.Text = service.ServiceName;
            txtQuotaValue.Text  = service.ServiceQuotaValue.ToString();
            Utils.SelectListItem(ddlClusters, service.ClusterId);
            txtComments.Text = service.Comments;
        }
Esempio n. 2
0
        private void BindGroup()
        {
            ResourceGroupInfo group = ES.Services.Servers.GetResourceGroup(PanelRequest.GroupID);

            litGroupName.Text = serviceName.Text = PanelFormatter.GetLocalizedResourceGroupName(group.GroupName);
        }