private void Form1_Load(object sender, EventArgs e) { ovd = new OverViewDisplayer(panel1); svd = new SideViewDisplayer(pnl_sideView); controller = new SystemController(ovd); controller.ConnectDataSource("UDP", MakeIpAddressAndPortString()); //默认链接UDP数据 //dgvd = new DataGridViewDisplayer(pnl_gridView); textDisplayer = new TextDisplayer(pnl_gridView); ovd.RegisterObserver(this); svd.Distance = 500; ovd.Distance = 5000; btn_WaveGate.Enabled = false; MouseWheel += OnMouseWheel; ShowTrackHeight(); rb_5.Checked = true; }
private void btn_start_Click(object sender, EventArgs e) => controller.ConnectDataSource("BIN", tb_filePath.Text);