// 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); }
public Form() { InitializeComponent(); // Updates updatable and available sats after initializing form Executions.TLEUpdatePrint(TLE_Update); Executions.TLEAvailPrint(TLE_Files); }
// User selects TLE file private void TLE_Files_MouseDoubleClick(object sender, MouseEventArgs e) { int TLE_pressed = TLE_Files.IndexFromPoint(e.Location); Executions.Sat_print(TLE_pressed, Sats); Executions.TLEAvailPrint(TLE_Files); Values.ClickedTLE = Values.TLEDownloaded[TLE_pressed]; label4.Text = System.IO.Path.GetFileName(Values.TLEDownloaded[TLE_pressed]); }
// 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); }
// Sets custom TLE given by user private void CustomSatUpdate_Click(object sender, EventArgs e) { string[] TLE = CustomTLE.Lines; Values.TLESat = TLE; Executions.Sat_Update(Sat_Name, Launch_Year, Catalog_Number); }