Пример #1
0
        public static void CauseError(string msg)
        {
            errorMessage handler = new errorMessage();

            handler.Error(msg);
            handler.ShowDialog();
        }
Пример #2
0
        public static void CauseError(string msg, string button, ErrorButtonCallback cb)
        {
            errorMessage handler = new errorMessage();

            handler.Error(msg);
            handler.ShowButton(button, cb);
            handler.ShowDialog();
        }
Пример #3
0
        public static void CauseError(string msg, string title, string firstButton, string secondButton,
                                      ErrorButtonCallback cb)
        {
            errorMessage handler = new errorMessage();

            handler.Error(msg);
            handler.ShowButton(secondButton, cb);
            handler.ChangeFirstButton(firstButton);
            handler.ChangeTitle(title);
            handler.ShowDialog();
        }