コード例 #1
0
ファイル: Form1.cs プロジェクト: Mabloza/GPS-Vehicle-Tracking
        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 });
                }*/
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Mabloza/GPS-Vehicle-Tracking
 private void bersagliToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frm_obiettivo = new frmObiettivo();
     frm_obiettivo.mainFrm = this;
     frm_obiettivo.olnyAdd = true;
     frm_obiettivo.Show();
 }