예제 #1
0
        ///////////////////////////////////////////////////////////////////////////////////////////////

        public static DialogResult Complain(
            string message
            )
        {
            if (IsInteractive() && GlobalState.IsPrimaryThread())
            {
                return(MessageBox.Show(
                           message, Application.ProductName,
                           MessageBoxButtons.OK, MessageBoxIcon.Error));
            }
            else
            {
                DebugOps.Log(0, DebugOps.DefaultCategory, String.Format(
                                 "{0}{1}", message, Environment.NewLine));

                return(DialogResult.OK);
            }
        }