示例#1
0
 public static frmMapIt GetChildInstance()
 {
     if (m_SChildform == null)
     {
         m_SChildform = new frmMapIt();
     }
     return(m_SChildform);
 }
示例#2
0
 internal frmMapIt CreateGoogleMapWindow()
 {
     if (!base.IsDisposed)
     {
         string str = "Google Map";
         if ((this._SiRFMap == null) || this._SiRFMap.IsDisposed)
         {
             this._SiRFMap           = new frmMapIt(this._length, this._lat, this._lon);
             this._SiRFMap.MdiParent = base.MdiParent;
             this._SiRFMap.Show();
         }
         this._SiRFMap.Text = str;
         this._SiRFMap.BringToFront();
     }
     return(this._SiRFMap);
 }
示例#3
0
 internal frmMapIt CreateGoogleMapWindow()
 {
     if (!base.IsDisposed)
     {
         string str = "Google Map";
         if ((this._SiRFMap == null) || this._SiRFMap.IsDisposed)
         {
             this._SiRFMap = new frmMapIt(this._length, this._lat, this._lon);
             this._SiRFMap.MdiParent = base.MdiParent;
             this._SiRFMap.Show();
         }
         this._SiRFMap.Text = str;
         this._SiRFMap.BringToFront();
     }
     return this._SiRFMap;
 }
示例#4
0
 public static frmMapIt GetChildInstance()
 {
     if (m_SChildform == null)
     {
         m_SChildform = new frmMapIt();
     }
     return m_SChildform;
 }
示例#5
0
 private void button_MapIt_Click(object sender, EventArgs e)
 {
     if (!InternetCS.IsConnectedToInternet())
     {
         MessageBox.Show("No internet connection!", "Info", MessageBoxButtons.OK);
     }
     else if (this.comm.dataGui.Positions.PositionList.Count >= 1)
     {
         if (MessageBox.Show("\"Location data\" is about to be sent to Google Maps... Proceed?", "Information", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             this._SiRFMap = this.CreateGoogleMapWindow();
         }
     }
 }
示例#6
0
 internal frmMapIt CreateGoogleMapWindow()
 {
     EventHandler method = null;
     if (!base.IsDisposed)
     {
         if (this.comm != null)
         {
             if (method == null)
             {
                 method = delegate {
                     string str = this.comm.sourceDeviceName + ": GoogleMap";
                     if ((this._SiRFMap == null) || this._SiRFMap.IsDisposed)
                     {
                         this._SiRFMap = new frmMapIt(this.comm);
                         this._SiRFMap.MdiParent = base.MdiParent;
                         this._SiRFMap.Show();
                     }
                     this._SiRFMap.Text = str;
                     this._SiRFMap.BringToFront();
                 };
             }
             base.Invoke(method);
         }
         else
         {
             MessageBox.Show("COM window not initialized!", "Information");
         }
     }
     return this._SiRFMap;
 }