private void button4_Click(object sender, EventArgs e) { if (listBox1.SelectedIndex > -1) { frmObiettivo frm = new frmObiettivo(); frm.mainFrm = this; frm.Show(); /*if (DialogResult.OK == frm.ShowDialog()) { string[] coord = frm.txtDestination.Text.Split('-'); smartrack p = searchDevicebyDescription(listBox1.SelectedItem.ToString()); //smartrack p = sm_array[listBox1.SelectedIndex]; object[] ob = new object[4]; ob = new object[4]; ob[0] = p.Lat; ob[1] = p.Lon; ob[2] = coord[1]; ob[3] = coord[2]; frmSatelliteMap.satelliteMap.Invoke(new getDistanceToPointDelegate(getDistanceToPoint), new object[] { ob }); }*/ } }
private void bersagliToolStripMenuItem_Click(object sender, EventArgs e) { frm_obiettivo = new frmObiettivo(); frm_obiettivo.mainFrm = this; frm_obiettivo.olnyAdd = true; frm_obiettivo.Show(); }