示例#1
0
        private void bnDecodeAs_Click(object sender, EventArgs e)
        {
            this.MessageType = (string)cbType.SelectedItem;
            this.ProtoFile   = txtProtoFile.Text;

            this.Data = ProtoBufUtil.DecodeWithProto(this.ProtobufBytes, this.MessageType, this.ProtoFile);
        }
示例#2
0
        void bnDecodeAs_Click(object sender, EventArgs e)
        {
            MessageType = (string)cbType.SelectedItem;
            ProtoFile   = txtProtoFile.Text;

            if (!string.IsNullOrWhiteSpace(ProtoFile) &&
                !string.IsNullOrWhiteSpace(MessageType))
            {
                Data = ProtoBufUtil.DecodeWithProto(ProtobufBytes, MessageType, ProtoFile);
            }

            ProtoMiddlerState.Serialize(this);
        }