there is no builtin app Restart equivalent in WPF
using the Windows Forms Application.Restart doesn't quit the app properly either so it's not a proper "solution"
This commit is contained in:
parent
c34b51cff5
commit
6b75e24b0b
|
@ -28,7 +28,6 @@ public void Show()
|
|||
|
||||
MenuItem[] menuItems = new[] {
|
||||
new MenuItem("Configure", TriggerConfigure),
|
||||
new MenuItem("Restart", TriggerRestart),
|
||||
new MenuItem("Refresh", TriggerRefresh),
|
||||
new MenuItem("Exit", TriggerExit)
|
||||
};
|
||||
|
@ -43,11 +42,7 @@ public void Close()
|
|||
_icon = null;
|
||||
}
|
||||
|
||||
private void TriggerRestart(object sender, EventArgs e)
|
||||
{
|
||||
Application.Restart();
|
||||
}
|
||||
private void TriggerConfigure(object sender, EventArgs e)
|
||||
private void TriggerConfigure(object sender, EventArgs e)
|
||||
{
|
||||
(new Configuration()).Show();
|
||||
}
|
||||
|
|
Reference in a new issue