示例#1
0
        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();
        }
示例#2
0
        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();
        }