Example #1
0
        private void findCityLabel_Click(object sender, EventArgs e)
        {
            //switch to find city screen
            Form f = this.FindForm();

            f.Controls.Remove(this);

            FindCityScreen fcs = new FindCityScreen();

            f.Controls.Add(fcs);
        }
Example #2
0
        public Form1()
        {
            InitializeComponent();

            //initial extract of stratford
            ExtractForecast("Stratford", "Ca");
            ExtractCurrent("Stratford", "Ca");

            // open choose city screen
            FindCityScreen fcs = new FindCityScreen();

            this.Controls.Add(fcs);
        }