public Form_MsgDebug(string msgText, XDCProtocolType protocolType, DataType dataType = DataType.Message, string subTitle = "", bool isdebug = false) { InitializeComponent(); XDCUnity.Initial(); rtb_Msg.Text = msgText; currentProtocolType = protocolType; isDebug = isdebug; if (!string.IsNullOrEmpty(subTitle)) { this.Text += " - [" + subTitle + "]"; } if (protocolType == XDCProtocolType.DDC) { rb_DDC.Checked = true; folderName = "DDC"; } else { rb_NDC.Checked = true; folderName = "NDC"; } if (dataType == DataType.Message) { rb_Message.Checked = true; } else if (dataType == DataType.State) { rb_State.Checked = true; } else if (dataType == DataType.Screen) { rb_Screen.Checked = true; } else if (dataType == DataType.Fit) { rb_Fit.Checked = true; } BeginPars(); }