コード例 #1
0
 void ShowStatus(ServiceItemData serviceItemData, ServiceStatusControl statusControl)
 {
     if (serviceItemData == null)
     {
         statusControl.Visible = false;
     }
     else
     {
         statusControl.Visible      = true;
         statusControl.ShowLanguage = true;
         ServiceSettingsContainer sc = new ServiceSettingsContainer(
             new ServiceItemSetting(serviceItemData.LanguagePair,
                                    serviceItemData.Subject, serviceItemData.ServiceItem,
                                    null),
             true);
         statusControl.Status = sc;
     }
 }
コード例 #2
0
 void ShowStatus(ServiceItemData serviceItemData, ServiceStatusControl statusControl)
 {
     if(serviceItemData == null)
     {
         statusControl.Visible = false;
     }
     else
     {
         statusControl.Visible = true;
         statusControl.ShowLanguage = true;
         ServiceSettingsContainer sc = new ServiceSettingsContainer(
             new ServiceItemSetting(serviceItemData.LanguagePair,
                                 serviceItemData.Subject, serviceItemData.ServiceItem,
                                 null),
             true);
         statusControl.Status = sc;
     }
 }