static void ShowRestartMessage(string message) { var form = new TextBlockMessage("workspacer", "workspacer will be restarted", message, new List <Tuple <string, Action> >() { new Tuple <string, Action>("restart", Restart), }); form.ShowDialog(); }
static void ShowExceptionMessage(string message) { var form = new TextBlockMessage("workspacer exception", "an exception occurred while running workspacer", message, new List <Tuple <string, Action> >() { new Tuple <string, Action>("quit workspacer", Quit), new Tuple <string, Action>("restart workspacer", Restart), }); form.ShowDialog(); }