public void demo()
        {
            demoMode = true;

            Point p = DodajManifestaciju_dugme.PointToScreen(new Point(0d, 0d));

            p.X += 20;
            p.Y += 10;

            LinearSmoothMove(p, 100);
            if (!demoMode)
            {
                return;
            }
            Thread.Sleep(500);
            if (!demoMode)
            {
                return;
            }
            ManifestacijaDodaj w2 = new ManifestacijaDodaj();

            w2.Show();
            Thread.Sleep(500);
            Application.Current.Dispatcher?.BeginInvoke(new Action(() =>
            {
                w2.beginDemo(this);
            }));
        }
        private void demo_Begin(object sender, RoutedEventArgs e)
        {
            demoMode = true;

            Point p = DodajManifestaciju_dugme.PointToScreen(new Point(0d, 0d));

            p.X += 20;
            p.Y += 10;

            if (demoMode)
            {
                LinearSmoothMove(p, 100);

                ManifestacijaDodaj w2 = new ManifestacijaDodaj();
                w2.Show();
                Thread.Sleep(500);
                Application.Current.Dispatcher?.BeginInvoke(new Action(() =>
                {
                    w2.beginDemo(this);
                }));
            }

            //Win32.ClientToScreen(this.Handle, ref p);
        }