//HomeScreen -> Earth
        public void ButtonEarth(object sender, EventArgs e)
        {
            userControlEarth = new DigiScriptor.UserControlEarth();
            userControlEarth.btnEarthBack.Click += ButtonEarthBack;

            this.btnSubmit.Hide();
            this.Controls.Add(userControlEarth);
            userControlEarth.Show();
            userControlEarth.BringToFront();
            this.userControlHome.Hide();
        }
예제 #2
0
        public EditPopularEarthLocationsPopup(UserControlEarth EarthP)
        {
            InitializeComponent();

            //make the SqlConnection with local file path
            connect = new SqlConnection(sqlPath);

            //Load earth favorites table into data grid
            LoadTable();

            earthPanel = EarthP;
        }