DroidExplorer.Controls.VistaTaskDialog.SetFlag C# (CSharp) Method

SetFlag() private method

Helper function to set or clear a bit in the flags field.
private SetFlag ( VistaUnsafeNativeMethods flag, bool value ) : void
flag VistaUnsafeNativeMethods The Flag bit to set or clear.
value bool True to set, false to clear the bit in the flags field.
return void
        private void SetFlag( VistaUnsafeNativeMethods.TASKDIALOG_FLAGS flag, bool value )
        {
            if ( value ) {
            this.flags |= flag;
              } else {
            this.flags &= ~flag;
              }
        }