예제 #1
0
        // User selects a satellite
        private void Sats_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int TLE_pressed = Sats.IndexFromPoint(e.Location);

            Values.TLESat = TLE_handling.Get_TLE(TLE_pressed);
            Executions.Sat_Update(Sat_Name, Launch_Year, Catalog_Number);
        }
예제 #2
0
        // Updates the satellite information fields when a new satellite is clicked
        public static void Sat_Update(Label Sat_Name, Label Launch_Year, Label Cat_Num)
        {
            Sat_Name.Text      = Values.TLESat[0].ToString().Trim();
            Sat_Name.BackColor = Color.LightGreen;

            Launch_Year.Text      = TLE_handling.Get_Year();
            Launch_Year.BackColor = Color.LightGreen;

            Cat_Num.Text      = Values.TLESat[1].Substring(2, 5);
            Cat_Num.BackColor = Color.LightGreen;
        }
예제 #3
0
        // User selects TLE file to update/download
        private void TLE_Update_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int TLE_pressed = TLE_Update.IndexFromPoint(e.Location);

            string download = Values.DownloadPrefix + Values.tlenames[TLE_pressed];

            // Downloads TLE
            TLE_handling.TLEUpdate(download, TLE_pressed);

            // Re-updates listbox with available satellites
            Executions.TLEAvailPrint(TLE_Files);
        }