private void btn_back_1_Click(object sender, RoutedEventArgs e)
        {
            foreach (Window window in Application.Current.Windows)
            {
                if (window.GetType() == typeof(CentralaWindow))
                {
                    window.Close();
                }
            }
            Close();
            CentralaWindow centralaPogodowaWindow = new CentralaWindow();

            centralaPogodowaWindow.Show();
        }
        private void End()
        {
            foreach (Window window in Application.Current.Windows)
            {
                if (window.GetType() == typeof(CentralaWindow))
                {
                    window.Close();
                }
                //if (window.GetType() == typeof(StacjaWindow))
                //{
                //    window.Close();
                //}
            }
            Close();
            CentralaWindow centralaPogodowaWindow = new CentralaWindow();

            centralaPogodowaWindow.Show();
        }
Esempio n. 3
0
        private void Stacja_Pogodowa_Click(object sender, RoutedEventArgs e)
        {
            CentralaWindow centralaPogodowaWindow = new CentralaWindow();

            centralaPogodowaWindow.Show();
        }