Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot is not render when use thread #3

Open
RodrigoPereyraDiaz opened this issue Feb 15, 2018 · 0 comments
Open

Plot is not render when use thread #3

RodrigoPereyraDiaz opened this issue Feb 15, 2018 · 0 comments

Comments

@RodrigoPereyraDiaz
Copy link

RodrigoPereyraDiaz commented Feb 15, 2018

I have and Application that show an splash on separeted thead, when the splash finish invoke the main window application, and not show the plot.
Splash code. https://github.com/hamekoz/hamekoz-sharp/blob/master/Hamekoz.UI/Splash.cs
MainWindowUI contains the plot view that not render de plot.

using System;
using Hamekoz.Core;
using Hamekoz.UI;
using Xwt;

namespace Hamekoz.App
{
	class MainClass
	{
		[STAThread]
		public static void Main (string[] args)
		{
			Application.Initialize ();

			var splash = new Splash {
				SplashImage = Resources.Splash,
			};

			splash.OnPreload += () => {
				splash.SetInfo ("Working...");
                                //do some work
			};

			splash.OnFinish += delegate {
				Application.Invoke (() => new MainWindowsUI ());
			};

			splash.Run ();

			Application.Run ();
			Application.Dispose ();
		}
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant