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); }
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); }