private void BarButtonRouteForm_ItemClick(object sender, ItemClickEventArgs e) { RouteForm xform1 = new RouteForm(_FlexSys) { MdiParent = this }; xform1.Show(); }
private void toolStripMenuItem1_Click(object sender, EventArgs e) { if (IsRouteSearch) { if (routeForm != null) { routeForm.Hide(); } IsRouteSearch = false; } else { routeForm = new RouteForm(axMapControl1); routeForm.Show(); IsRouteSearch = true; } }