private void UpdateFeature(DesktopModuleSupportedFeature Feature, bool IsSet) { if (IsSet) { this.SetFeature(Feature); return; } this.ClearFeature(Feature); }
private bool GetFeature(DesktopModuleSupportedFeature Feature) { bool isSet = false; if (SupportedFeatures > Null.NullInteger && (SupportedFeatures & (int)Feature) == (int)Feature) { isSet = true; } return(isSet); }
/// ----------------------------------------------------------------------------- /// <summary> /// Gets a Feature from the Features /// </summary> /// <param name="feature">The feature to Get</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private bool GetFeature(DesktopModuleSupportedFeature feature) { bool isSet = false; //And with the Feature to see if the flag is set if (SupportedFeatures > Null.NullInteger && (SupportedFeatures & (int)feature) == (int)feature) { isSet = true; } return(isSet); }
/// ----------------------------------------------------------------------------- /// <summary> /// Updates a Feature in the Features /// </summary> /// <param name="feature">The feature to Set</param> /// <param name="isSet">A Boolean indicating whether to set or clear the feature</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private void UpdateFeature(DesktopModuleSupportedFeature feature, bool isSet) { if (isSet) { SetFeature(feature); } else { ClearFeature(feature); } }
private bool GetFeature(DesktopModuleSupportedFeature Feature) { bool isSet = false; //And with the Feature to see if the flag is set if (((DesktopModuleSupportedFeature)SupportedFeatures & Feature) == Feature) { isSet = true; } return(isSet); }
private bool GetFeature(DesktopModuleSupportedFeature Feature) { bool isSet = false; //And with the Feature to see if the flag is set if ((((DesktopModuleSupportedFeature)this.SupportedFeatures) & Feature) != Feature) { return(isSet); } else { return(true); } }
/// ----------------------------------------------------------------------------- /// <summary> /// Sets a Feature in the Features /// </summary> /// <param name="feature">The feature to Set</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private void SetFeature(DesktopModuleSupportedFeature feature) { SupportedFeatures |= (int)feature; }
/// ----------------------------------------------------------------------------- /// <summary> /// Gets a Feature from the Features /// </summary> /// <param name="feature">The feature to Get</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private bool GetFeature(DesktopModuleSupportedFeature feature) { return(SupportedFeatures > Null.NullInteger && (SupportedFeatures & (int)feature) == (int)feature); }
private void UpdateFeature( DesktopModuleSupportedFeature Feature, bool IsSet ) { if( IsSet ) { this.SetFeature( Feature ); return; } this.ClearFeature( Feature ); }
private void ClearFeature(DesktopModuleSupportedFeature Feature) { SupportedFeatures = SupportedFeatures & (int)Feature; }
/// ----------------------------------------------------------------------------- /// <summary> /// Sets a Feature in the Features /// </summary> /// <param name="feature">The feature to Set</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private void SetFeature(DesktopModuleSupportedFeature feature) { //Or with the Feature to Set the Feature flag SupportedFeatures = SupportedFeatures ^ (int)feature; }
/// ----------------------------------------------------------------------------- /// <summary> /// Clears a Feature from the Features /// </summary> /// <param name="feature">The feature to Clear</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private void ClearFeature(DesktopModuleSupportedFeature feature) { //And with the 1's complement of Feature to Clear the Feature flag SupportedFeatures = SupportedFeatures & ~((int)feature); }
/// ----------------------------------------------------------------------------- /// <summary> /// Sets a Feature in the Features /// </summary> /// <param name="feature">The feature to Set</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private void SetFeature(DesktopModuleSupportedFeature feature) { SupportedFeatures |= (int) feature; }
private void SetFeature(DesktopModuleSupportedFeature Feature) { //Or with the Feature to Set the Feature flag this.SupportedFeatures = ((int)(((DesktopModuleSupportedFeature)this.SupportedFeatures) | Feature)); }
private void ClearFeature(DesktopModuleSupportedFeature Feature) { //And with the 1's complement of Feature to Clear the Feature flag this.SupportedFeatures = ((int)(((DesktopModuleSupportedFeature)this.SupportedFeatures) & (~Feature))); }
private bool GetFeature(DesktopModuleSupportedFeature Feature) { bool isSet = false; //And with the Feature to see if the flag is set if (((DesktopModuleSupportedFeature)SupportedFeatures & Feature) == Feature) { isSet = true; } return isSet; }
private void SetFeature(DesktopModuleSupportedFeature Feature) { SupportedFeatures = SupportedFeatures ^ (int)Feature; }
private bool GetFeature(DesktopModuleSupportedFeature Feature) { bool isSet = false; if (SupportedFeatures > Null.NullInteger && (SupportedFeatures & (int)Feature) == (int)Feature) { isSet = true; } return isSet; }
/// ----------------------------------------------------------------------------- /// <summary> /// Clears a Feature from the Features /// </summary> /// <param name="feature">The feature to Clear</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private void ClearFeature(DesktopModuleSupportedFeature feature) { //And with the 1's complement of Feature to Clear the Feature flag SupportedFeatures = SupportedFeatures & ~((int) feature); }
/// ----------------------------------------------------------------------------- /// <summary> /// Gets a Feature from the Features /// </summary> /// <param name="feature">The feature to Get</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private bool GetFeature(DesktopModuleSupportedFeature feature) { return SupportedFeatures > Null.NullInteger && (SupportedFeatures & (int) feature) == (int) feature; }
/// ----------------------------------------------------------------------------- /// <summary> /// Gets a Feature from the Features /// </summary> /// <param name="feature">The feature to Get</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private bool GetFeature(DesktopModuleSupportedFeature feature) { bool isSet = false; //And with the Feature to see if the flag is set if (SupportedFeatures > Null.NullInteger && (SupportedFeatures & (int) feature) == (int) feature) { isSet = true; } return isSet; }
private bool GetFeature( DesktopModuleSupportedFeature Feature ) { bool isSet = false; //And with the Feature to see if the flag is set if( ( ( (DesktopModuleSupportedFeature)this.SupportedFeatures ) & Feature ) != Feature ) { return isSet; } else { return true; } }
/// ----------------------------------------------------------------------------- /// <summary> /// Sets a Feature in the Features /// </summary> /// <param name="feature">The feature to Set</param> /// <history> /// [cnurse] 01/11/2008 Documented /// </history> /// ----------------------------------------------------------------------------- private void SetFeature(DesktopModuleSupportedFeature feature) { //Or with the Feature to Set the Feature flag SupportedFeatures = SupportedFeatures ^ (int) feature; }
private void SetFeature( DesktopModuleSupportedFeature Feature ) { //Or with the Feature to Set the Feature flag this.SupportedFeatures = ( (int)( ( (DesktopModuleSupportedFeature)this.SupportedFeatures ) | Feature ) ); }
private void ClearFeature( DesktopModuleSupportedFeature Feature ) { //And with the 1's complement of Feature to Clear the Feature flag this.SupportedFeatures = ( (int)( ( (DesktopModuleSupportedFeature)this.SupportedFeatures ) & ( ~ Feature ) ) ); }