private void fixedLengthToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_type != null)
            {
                if (listViewEntries.SelectedItems.Count > 0)
                {
                    MemberEntry entry = listViewEntries.SelectedItems[0].Tag as MemberEntry;
                    ArrayMemberEntry arrayEntry = null;

                    if (entry is IntegerPrimitiveMemberEntry)
                    {
                        arrayEntry = new FixedLengthPrimitiveArrayMemberEntry((IntegerPrimitiveMemberEntry)entry);

                    }
                    else if(entry is IMemberReaderWriter)
                    {
                        arrayEntry = new FixedLengthGenericArrayMemberEntry((IMemberReaderWriter)entry);
                    }

                    if (arrayEntry != null)
                    {
                        _type.ReplaceMember(entry, arrayEntry);
                        listViewEntries.SelectedItems[0].Tag = arrayEntry;

                        UpdateType();
                        UpdateSelection();
                    }
                }
            }
        }
 private void fixedLengthToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (_type != null)
     {
         MemberEntry entry = new FixedLengthPrimitiveArrayMemberEntry(
             new IntegerPrimitiveMemberEntry(GetMemberName(), typeof(byte), _type.DefaultEndian));
         _type.AddMember(entry);
         AddMember(entry, true);
     }
 }