// // Events for moving between UserControl Panels // //HomeScreen -> Galaxies public void ButtonGalaxies(object sender, EventArgs e) { userControlGalaxies = new DigiScriptor.UserControlGalaxies(); userControlGalaxies.btnGalaxiesBack.Click += ButtonGalaxiesBack; this.btnSubmit.Hide(); this.Controls.Add(userControlGalaxies); userControlGalaxies.Show(); userControlGalaxies.BringToFront(); this.userControlHome.Hide(); }
public SearchGalaxiesPopup(UserControlGalaxies galaxiesPage) { InitializeComponent(); //make the SqlConnection with local file path connect = new SqlConnection(sqlPath); //Load nebulae database table into data grid LoadTable(); galaxiesPanel = galaxiesPage; }