private void TimeOnElapsed(object sender, ElapsedEventArgs elapsedEventArgs) { Dispatcher.UIThread.InvokeAsync (() => { Startup (); }); }