public MainGraphVisualization_form() { InitializeComponent(); InitializeGraphVisualizatio_form(); TLE_dataBase_form tle_database_form = TLE_dataBase_form.GetInstance(_tle_scrap, _tle_dataset); tle_database_form._tle_sat_selected_event += _tle_sat_selected_triggered; }
public MainForm() { InitializeComponent(); tle_scrap = new TLE_Scrap(); tle_dataset = TLE_MultiSat_DataSet.GetInstance(); tle_database_form = TLE_dataBase_form.GetInstance(tle_scrap, tle_dataset); mainGraphVisualization_form = MainGraphVisualization_form.GetInstance(tle_scrap, tle_dataset); // Only when a satellite is selected this form would be available historicTLEDataToolStripMenuItem.Enabled = false; orbitModificationToolStripButton.Enabled = false; TLESatelliteDataGroupBox.Enabled = false; }
private void loadDatabaseToolStripMenuItem_Click(object sender, EventArgs e) { tle_database_form = TLE_dataBase_form.GetInstance(tle_scrap, tle_dataset); // Events are loaded here because if the window is closed, the instance is null, so the new all to get an instance would get a NEW instance without this definition of events made tle_database_form._tle_loaded_event += _tle_loaded_triggered; tle_database_form._tle_sat_selected_event += _tle_sat_selected_triggered; if (!tle_database_form.Visible) { tle_database_form.Show(); } else { tle_database_form.BringToFront(); } }