Ever heard of Wolfram|Alpha?
Released on May 15, 2009, Wolfram|Alpha is a recent answer engine developed by the Wolfram Research. It is an online service that aims to make all systematic knowledge immediately computable and accessible to everyone by computing the answer from structured data.
We aim to (…) make it possible to compute whatever can be computed about anything.
(…)
our goal is to create something that will stand as a major milestone of 21st century intellectual achievement.
At a first glance, Wolfram Alpha seems a very useful and an extraordinary project. For example, if you type “Ohm Law”, it immediately shows you the equation and it’s meaning, as well as a converter/calculator. If you type the name of a city, it shows you a map and a bunch of statistic and values (population, weather…) related to that same city.
It really is something to keep an eye on and take a look at. Try typing a domain name, a celebrity name, a date, a song,…anything.
It seems a fantastic project and I’m hoping that Wolfram Research goals will be successfully accomplished, since that means everyone wins…well almost everyone.
Unfortunately, to date, WPF does not have a Restart() function line in WinForms so one way to do this is by using…WinForms.
1
System.Windows.Forms.Application.Restart();
However, after running this code our application will not exit on it’s own, even though a new instance of the application is being created. Therefore, we must close it manually…for example by doing:
1
Application.Current.Shutdown();
If you don’t want to use WinForms with your application you can do something like:
1
2
3
4
5
//things to do before closing// ...//RestartSystem.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
Application.Current.Shutdown();
Where we create a new instance of our application, by using Process.Start, and immediately close the current one.