コード例 #1
0
 private void UpdateFeature(DesktopModuleSupportedFeature Feature, bool IsSet)
 {
     if (IsSet)
     {
         this.SetFeature(Feature);
         return;
     }
     this.ClearFeature(Feature);
 }
コード例 #2
0
        private bool GetFeature(DesktopModuleSupportedFeature Feature)
        {
            bool isSet = false;

            if (SupportedFeatures > Null.NullInteger && (SupportedFeatures & (int)Feature) == (int)Feature)
            {
                isSet = true;
            }
            return(isSet);
        }
コード例 #3
0
ファイル: DesktopModuleInfo.cs プロジェクト: misterPaul0/Curt
        /// -----------------------------------------------------------------------------
        /// <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);
        }
コード例 #4
0
ファイル: DesktopModuleInfo.cs プロジェクト: misterPaul0/Curt
 /// -----------------------------------------------------------------------------
 /// <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);
     }
 }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
            }
        }
コード例 #7
0
 /// -----------------------------------------------------------------------------
 /// <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;
 }
コード例 #8
0
 /// -----------------------------------------------------------------------------
 /// <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);
 }
コード例 #9
0
 private void UpdateFeature( DesktopModuleSupportedFeature Feature, bool IsSet )
 {
     if( IsSet )
     {
         this.SetFeature( Feature );
         return;
     }
     this.ClearFeature( Feature );
 }
コード例 #10
0
 private void ClearFeature(DesktopModuleSupportedFeature Feature)
 {
     SupportedFeatures = SupportedFeatures & (int)Feature;
 }
コード例 #11
0
ファイル: DesktopModuleInfo.cs プロジェクト: misterPaul0/Curt
 /// -----------------------------------------------------------------------------
 /// <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;
 }
コード例 #12
0
ファイル: DesktopModuleInfo.cs プロジェクト: misterPaul0/Curt
 /// -----------------------------------------------------------------------------
 /// <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);
 }
コード例 #13
0
 /// -----------------------------------------------------------------------------
 /// <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;
 }
コード例 #14
0
 private void SetFeature(DesktopModuleSupportedFeature Feature)
 {
     //Or with the Feature to Set the Feature flag
     this.SupportedFeatures = ((int)(((DesktopModuleSupportedFeature)this.SupportedFeatures) | Feature));
 }
コード例 #15
0
 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)));
 }
コード例 #16
0
        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;
        }
コード例 #17
0
 private void SetFeature(DesktopModuleSupportedFeature Feature)
 {
     SupportedFeatures = SupportedFeatures ^ (int)Feature;
 }
コード例 #18
0
 private bool GetFeature(DesktopModuleSupportedFeature Feature)
 {
     bool isSet = false;
     if (SupportedFeatures > Null.NullInteger && (SupportedFeatures & (int)Feature) == (int)Feature)
     {
         isSet = true;
     }
     return isSet;
 }
コード例 #19
0
        /// -----------------------------------------------------------------------------
        /// <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);
        }
コード例 #20
0
 private void ClearFeature(DesktopModuleSupportedFeature Feature)
 {
     SupportedFeatures = SupportedFeatures & (int)Feature;
 }
コード例 #21
0
 /// -----------------------------------------------------------------------------
 /// <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;
 }
コード例 #22
0
ファイル: DesktopModuleInfo.cs プロジェクト: biganth/Curt
        /// -----------------------------------------------------------------------------
        /// <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;
        }
コード例 #23
0
 /// -----------------------------------------------------------------------------
 /// <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);
     }
 }
コード例 #24
0
 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;
     }
 }
コード例 #25
0
ファイル: DesktopModuleInfo.cs プロジェクト: biganth/Curt
        /// -----------------------------------------------------------------------------
        /// <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;
        }
コード例 #26
0
 private void SetFeature( DesktopModuleSupportedFeature Feature )
 {
     //Or with the Feature to Set the Feature flag
     this.SupportedFeatures = ( (int)( ( (DesktopModuleSupportedFeature)this.SupportedFeatures ) | Feature ) );
 }
コード例 #27
0
 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 ) ) );
 }
コード例 #28
0
 private void SetFeature(DesktopModuleSupportedFeature Feature)
 {
     SupportedFeatures = SupportedFeatures ^ (int)Feature;
 }