Ejemplo n.º 1
0
        ///TUTORIJAL

        private void TutorBtn_Click(object sender, RoutedEventArgs e)
        {
            bool isWindowsOpen = false;

            foreach (Window w in Application.Current.Windows)
            {
                if (w is Tutorial.Tutor)
                {
                    isWindowsOpen = true;
                    w.Activate();
                }
            }

            if (!isWindowsOpen)
            {
                var tut = new Tutorial.Tutor();
                tut.pocetak();
                tut.Show();
            }
        }
Ejemplo n.º 2
0
        private void AddSpom_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            bool isWindowsOpen = false;

            foreach (Window w in Application.Current.Windows)
            {
                if (w is Spomenik.DodajSpomenik)
                {
                    isWindowsOpen = true;
                    w.Activate();
                    if (w.WindowState == WindowState.Minimized)
                    {
                        w.WindowState = WindowState.Normal;
                    }
                }
            }

            if (!isWindowsOpen)
            {
                var dodaj = new Spomenik.DodajSpomenik();
                dodaj.Show();
            }

            foreach (Window w in Application.Current.Windows)
            {
                if (w is Tutorial.Tutor)
                {
                    Tutorial.Tutor tutor = w as Tutorial.Tutor;
                    if (tutor.korak == 1)
                    {
                        w.Activate();
                        tutor.UnosOznake();
                    }
                }
            }
        }