Beispiel #1
0
 public Cartographer()
 {
     ge = new ApplicationGEClass();
     ShowWindowAsync(ge.GetMainHwnd(), 0);
     InitializeComponent();
     SetParent(ge.GetRenderHwnd(), this.Handle.ToInt32());
     ResizeGoogleControl();
 }
Beispiel #2
0
 public void GPSstart()
 {
     try
     {
         ge = new ApplicationGEClass();
         if (ge != null)
         {
             ge.OpenKmlFile(plikGPS, 0);
         }
     }catch (Exception e)
     {
     }
 }
Beispiel #3
0
        public Cartographer()
        {
            m_Electorates = new List<Electorate>();
            ge = new ApplicationGEClass();
            ShowWindowAsync(ge.GetMainHwnd(), 0);
            InitializeComponent();
            SetParent(ge.GetRenderHwnd(), this.Handle.ToInt32());
            ResizeGoogleControl();
            ElectorateImporter g_elecImporter = new ElectorateImporter();
            g_elecImporter.ParseXLS();
            g_elecImporter.ParseMID("data/QLD_Federal_Electoral_Boundaries.mid");
            g_elecImporter.ParseMIF("data/QLD_Federal_Electoral_Boundaries.mif");
            m_Electorates = g_elecImporter.MergeData();

            Dms _test = new Dms(-27.579269);
            Console.Out.WriteLine(_test.m_minutes);
        }
Beispiel #4
0
        private void ArdupilotSim_Load(object sender, EventArgs e)
        {
            Comports.DataSource = SerialPort.GetPortNames();
            GPSrate.SelectedValue = "200";

            xmlconfig(false);

            talk.SpeakAsync("Hello.");

            if (displayfull)
            {
                //1076, 795
                this.Width = 1076;
                this.Height = 795;

                zg1.Visible = true;
                CreateChart(zg1);

                ge = new ApplicationGEClass();

                ShowWindowAsync(ge.GetMainHwnd(), 0);
                SetParent(ge.GetRenderHwnd(), Googleearthpanel.Handle.ToInt32());
                ResizeGoogleControl();
            }
            else
            {
                //651, 457
                this.Width = 651;
                this.Height = 457;

                timer1.Stop();
                zg1.Visible = false;

                airSpeedIndicatorInstrumentControl1.Visible = false;
                attitudeIndicatorInstrumentControl1.Visible = false;
                altimeterInstrumentControl1.Visible = false;
                headingIndicatorInstrumentControl1.Visible = false;
            }
        }