public static byte GetSection(this byte data, short section) { var bitVector = new System.Collections.Specialized.BitVector32(data); var bitSection = System.Collections.Specialized.BitVector32.CreateSection(section); return((byte)bitVector[bitSection]); }
public WebBrowser() : base("8856f961-340a-11d0-a96b-00c04fd705a2") { CheckIfCreatedInIE(); webBrowserState = new System.Collections.Specialized.BitVector32(WEBBROWSERSTATE_isWebBrowserContextMenuEnabled | WEBBROWSERSTATE_webBrowserShortcutsEnabled | WEBBROWSERSTATE_scrollbarsEnabled); AllowNavigation = true; }
private void Force0x20_0() { Ref::BindingFlags BF = Ref::BindingFlags.Instance | Ref::BindingFlags.NonPublic; System.Type ptype = typeof(System.Windows.Forms.PictureBox); Ref::FieldInfo fstate = ptype.GetField("pictureBoxState", BF); System.Collections.Specialized.BitVector32 vec = (System.Collections.Specialized.BitVector32)fstate.GetValue(this); vec[0x20] = false; fstate.SetValue(this, vec); }
/// <summary> /// <para>Creates a new picture with all default properties and no /// Image. The default PictureBox.SizeMode will be PictureBoxSizeMode.NORMAL. /// </para> /// </summary> public PictureBox() { // this class overrides GetPreferredSizeCore, let Control automatically cache the result SetState2(STATE2_USEPREFERREDSIZECACHE, true); pictureBoxState = new System.Collections.Specialized.BitVector32(PICTUREBOXSTATE_useDefaultErrorImage | PICTUREBOXSTATE_useDefaultInitialImage); SetStyle(ControlStyles.Opaque | ControlStyles.Selectable, false); SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.SupportsTransparentBackColor, true); TabStop = false; savedSize = Size; }
public override void OnReceiveData(ref FDUObjectSync.NetworkState.NETWORK_STATE_TYPE state) { #if !UNSAFE_MODE observedState = new System.Collections.Specialized.BitVector32(BufferedNetworkUtilsClient.ReadInt(ref state)); #endif bool interFlag = false; if (dataTransmitStrategy.getCustomData(FduDTSCustomDataType.EveryNFrame_CurFrameCount) != null && getInterpolationState()) { interFlag = true; } if (!interFlag) { switchCaseFunc(FduMultiAttributeObserverOP.Receive_Direct, ref state); } else { switchCaseFunc(FduMultiAttributeObserverOP.Receive_Interpolation, ref state); } }
/// <include file='doc\PictureBox.uex' path='docs/doc[@for="PictureBox.PictureBox"]/*' /> /// <devdoc> /// <para>Creates a new picture with all default properties and no /// Image. The default PictureBox.SizeMode will be PictureBoxSizeMode.NORMAL. /// </para> /// </devdoc> public PictureBox() { // this class overrides GetPreferredSizeCore, let Control automatically cache the result SetState2(STATE2_USEPREFERREDSIZECACHE, true); pictureBoxState = new System.Collections.Specialized.BitVector32(PICTUREBOXSTATE_useDefaultErrorImage | PICTUREBOXSTATE_useDefaultInitialImage); SetStyle(ControlStyles.Opaque |ControlStyles.Selectable , false); SetStyle(ControlStyles.OptimizedDoubleBuffer|ControlStyles.SupportsTransparentBackColor, true); TabStop = false; savedSize = Size; }
public BitVector32(System.Collections.Specialized.BitVector32 value) { throw null; }
public static string ToString(System.Collections.Specialized.BitVector32 value) { throw null; }
/// <include file='doc\ToolBar.uex' path='docs/doc[@for="ToolBar.ToolBar"]/*' /> /// <devdoc> /// <para>Initializes a new instance of the <see cref='System.Windows.Forms.ToolBar'/> class.</para> /// </devdoc> public ToolBar() : base() { // Set this BEFORE calling any other methods so that these defaults will be propagated toolBarState = new System.Collections.Specialized.BitVector32(TOOLBARSTATE_autoSize | TOOLBARSTATE_showToolTips | TOOLBARSTATE_divider | TOOLBARSTATE_dropDownArrows | TOOLBARSTATE_wrappable); SetStyle(ControlStyles.UserPaint, false); SetStyle(ControlStyles.FixedHeight, AutoSize); SetStyle(ControlStyles.FixedWidth, false); TabStop = false; Dock = DockStyle.Top; buttonsCollection = new ToolBarButtonCollection(this); }
/// <include file='doc\ListView.uex' path='docs/doc[@for="ListView.ListView"]/*' /> /// <devdoc> /// Creates an empty ListView with default styles. /// </devdoc> public ListView() : base() { listViewState = new System.Collections.Specialized.BitVector32(LISTVIEWSTATE_scrollable | LISTVIEWSTATE_multiSelect | LISTVIEWSTATE_labelWrap | LISTVIEWSTATE_hideSelection | LISTVIEWSTATE_autoArrange | LISTVIEWSTATE_showGroups); listViewState1 = new System.Collections.Specialized.BitVector32(LISTVIEWSTATE1_useCompatibleStateImageBehavior); SetStyle(ControlStyles.UserPaint, false); SetStyle(ControlStyles.StandardClick, false); SetStyle(ControlStyles.UseTextForAccessibility, false); odCacheFont = Font; odCacheFontHandle = FontHandle; SetBounds(0,0,121,97); listItemCollection = new ListViewItemCollection(new ListViewNativeItemCollection(this)); columnHeaderCollection = new ColumnHeaderCollection(this); }
/// <include file='doc\TreeView.uex' path='docs/doc[@for="TreeView.TreeView"]/*' /> /// <devdoc> /// Creates a TreeView control /// </devdoc> public TreeView() : base() { this.treeViewState = new System.Collections.Specialized.BitVector32(TREEVIEWSTATE_showRootLines | TREEVIEWSTATE_showPlusMinus | TREEVIEWSTATE_showLines | TREEVIEWSTATE_scrollable | TREEVIEWSTATE_hideSelection); root = new TreeNode(this); // TreeView must always have an ImageIndex. SelectedImageIndexer.Index = 0; ImageIndexer.Index = 0; SetStyle(ControlStyles.UserPaint, false); SetStyle(ControlStyles.StandardClick, false); SetStyle(ControlStyles.UseTextForAccessibility, false); }
/// <include file='doc\TreeNode.uex' path='docs/doc[@for="TreeNode.TreeNode"]/*' /> /// <devdoc> /// Creates a TreeNode object. /// </devdoc> public TreeNode() { treeNodeState = new System.Collections.Specialized.BitVector32(); }
public static string ToString(System.Collections.Specialized.BitVector32 value) { return(default(string)); }
public BitVector32(System.Collections.Specialized.BitVector32 value) { throw new System.NotImplementedException(); }
internal IEEE_802_11RadiotapPacket(Frame parentFrame, int packetStartIndex, int packetEndIndex) : base(parentFrame, packetStartIndex, packetEndIndex, "IEEE 802.11 Radiotap") { //the most important part is to read the length in order to locate the starting point of the 802.11 packet this.radiotapHeaderLength = Utils.ByteConverter.ToUInt16(parentFrame.Data, packetStartIndex + 2, true); if (!this.ParentFrame.QuickParse) { base.Attributes.Add("Header length", radiotapHeaderLength.ToString()); } try { this.fieldsPresentFlags = new System.Collections.Specialized.BitVector32((int)Utils.ByteConverter.ToUInt32(parentFrame.Data, 4, 4, true)); int offset = packetStartIndex + 8; //try to find some interresting fields //http://netbsd.gw.com/cgi-bin/man-cgi?ieee80211_radiotap+9+NetBSD-current for (int i = 0; i < 8; i++) { if (this.fieldsPresentFlags[1 << i]) { if (i == 0)//IEEE80211_RADIOTAP_TSFT { offset += 8; } else if (i == 1)//IEEE80211_RADIOTAP_FLAGS { offset += 1; } else if (i == 2)//IEEE80211_RADIOTAP_RATE { offset += 1; } else if (i == 3)//IEEE80211_RADIOTAP_CHANNEL { this.frequency = Utils.ByteConverter.ToUInt16(parentFrame.Data, offset, true); if (!this.ParentFrame.QuickParse) { this.Attributes.Add("Frequency", "" + frequency + " MHz"); } offset += 4; } else if (i == 4)//IEEE80211_RADIOTAP_FHSS { offset += 2; } else if (i == 5)//IEEE80211_RADIOTAP_DBM_ANTSIGNAL //This field contains a single signed 8-bit value, which indicates //the RF signal power at the antenna, in decibels difference from //1mW. { this.signalStrength = parentFrame.Data[offset]; while (signalStrength > 70)//I don't expect to get more than 10kW !!! { signalStrength -= 256; } if (!this.ParentFrame.QuickParse) { this.Attributes.Add("Signal strength", "" + signalStrength + " dBm (" + Math.Pow(10, (signalStrength / 10.0)) + " mW)"); } offset += 1; } } } } catch { //do nothing } }
/// <include file='doc\TabControl.uex' path='docs/doc[@for="TabControl.TabControl"]/*' /> /// <devdoc> /// Constructs a TabBase object, usually as the base class for a TabStrip or TabControl. /// </devdoc> public TabControl() : base() { tabControlState = new System.Collections.Specialized.BitVector32(0x00000000); tabCollection = new TabPageCollection(this); SetStyle(ControlStyles.UserPaint, false); }