예제 #1
0
 private void Track_Click(object sender, EventArgs e)
 {
     // Checks if satellite has been selected
     if (Values.TLESat == null)
     {
         MessageBox.Show("Please select a satellite first!");
     }
     else
     {
         try
         {
             Socket socket = Socket_handling.Get_socket(5050);
             Socket_handling.Send_data(socket, Values.TLESat);
         }
         catch (Exception)
         {
             MessageBox.Show("Please run \"Track.py\" first");
         }
     }
 }
예제 #2
0
 private void Active_sats_Click(object sender, EventArgs e)
 {
     // Checks if TLE has been selected
     if (Values.ClickedTLE == null)
     {
         MessageBox.Show("Please select a TLE first!");
     }
     else
     {
         try
         {
             Socket   socket = Socket_handling.Get_socket(6060);
             string[] data   = new string[] { Values.ClickedTLE };
             Socket_handling.Send_data(socket, data);
         }
         catch
         {
             MessageBox.Show("Please run \"Visible_sats.py\" first");
         }
     }
 }