void Form1_Load(object sender, EventArgs e) { request.Destination = new Destination("YM.MONITOR.EVENT.CHANGEPERIOD"); Event_ConfigInfo configInfo; configInfo = IniConfigHelpe.ReadConfigInfo(); ip = configInfo.Ip; port = configInfo.Port; svrId = configInfo.svrId; dic.Add("type", "OS"); dic.Add("period", ""); demo.logHelper = new TextLogHelper(label2, this, ip, port); demo2.logHelper = new TextLogHelper(label3, this, ip, port); radioButton1.Checked = true; demo.Visible = true; demo2.Visible = false; demo.c = 30; demo2.c = 30; demo.connect(); demo2.connect(); demo.IsShowHScrollBar = true; //交易耗时监控显示横向滚动条 demo2.IsShowHScrollBar = true; //成交笔数监控显示横向滚动条 demo.IsShowVScrollBar = true; //交易耗时监控显示纵向滚动条 demo2.IsShowVScrollBar = true; //成交笔数监控显示纵向滚动条 demo.IsShowPointValues = true; //显示鼠标所到处点的值 demo2.IsShowPointValues = true; }
/// <summary> /// 初始化 ip,port,svrid,topicStr,topichistoryStr /// </summary> private void initialize_ip_port_svrID() { Event_ConfigInfo configInfo; configInfo = IniConfigHelpe.ReadConfigInfo(); ip = configInfo.Ip; port = configInfo.Port; svrId = configInfo.svrId; topicStr = configInfo.topicStr2; topichistoryStr = configInfo.topichistoryStr2; }