コード例 #1
0
        private void print(LicenseFeatureInfo feature)
        {
            LicenseFeatureInfoState state = feature.state;
            String fState;

            if (LicenseFeatureInfoState.optional == state)
            {
                fState = "Optional";
            }
            else if (LicenseFeatureInfoState.enabled == state)
            {
                fState = "Included";
            }
            else if (LicenseFeatureInfoState.disabled == state)
            {
                fState = "Disabled";
            }
            else
            {
                fState = "Edition";
            }
            Console.WriteLine(" : F: " + feature.key +
                              ", Cost: " + feature.costUnit +
                              ", State: " + fState);
        }
コード例 #2
0
 private void print(LicenseFeatureInfo feature) {
    LicenseFeatureInfoState state = feature.state;
    String fState;
    if (LicenseFeatureInfoState.optional == state)
    {
        fState = "Optional";
    } else if(LicenseFeatureInfoState.enabled == state) {
       fState = "Included";
    } else if(LicenseFeatureInfoState.disabled == state) {
       fState = "Disabled";
    } else {
        fState = "Edition";
    }
    Console.WriteLine(" : F: " + feature.key +
          ", Cost: " + feature.costUnit +
          ", State: " + fState);
 }