DispatchDrawingEvents() public method

Updates the sfml control periodically
public DispatchDrawingEvents ( ) : void
return void
Esempio n. 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new MainWindow());

            MainWindow mw = new MainWindow();
            mw.Show();
            while (mw.Visible)
            {
                Application.DoEvents();
                mw.DispatchDrawingEvents();
            }
        }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new MainWindow());

            MainWindow mw = new MainWindow();

            mw.Show();
            while (mw.Visible)
            {
                Application.DoEvents();
                mw.DispatchDrawingEvents();
            }
        }