Ejemplo n.º 1
0
        //
        // 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();
        }
Ejemplo n.º 2
0
        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;
        }