コード例 #1
0
        static public void SendUserError(string text, string anchor, int displayTime, bool includeBeep, object objin, WorldEditor appin)
        {
            app  = appin;
            link = anchor;
            if (includeBeep)
            {
                SystemSounds.Beep.Play();
            }
            obj = objin;

            if (showing == false)
            {
                showing = true;
                toolStripErrorMessage                  = new ToolStripLabel(text, null, false);
                toolStripErrorMessage.ForeColor        = Color.Red;
                toolStripErrorMessage.Click           += toolStripErrorMessage_clicked;
                toolStripErrorMessage.IsLink           = true;
                toolStripErrorMessage.ActiveLinkColor  = Color.Red;
                toolStripErrorMessage.LinkBehavior     = LinkBehavior.AlwaysUnderline;
                toolStripErrorMessage.LinkColor        = Color.Red;
                toolStripErrorMessage.VisitedLinkColor = Color.Red;
                toolStripErrorMessageItem              = toolStripErrorMessage as ToolStripItem;
                app.StatusBarAddItem(toolStripErrorMessageItem);
                timeOutErrorMessage(toolStripErrorMessageItem, displayTime);
            }
        }