Ejemplo n.º 1
0
 public MessageDataXML(SpoolerMessage message, string xmlsource, PopupMessageBox.XMLButtonCallback buttonCallback, object data, ElementStandardDelegate onUpdateCallback, PopupMessageBox.XMLOnShow onShowCallback)
 {
     this.message          = message;
     this.xmlsource        = xmlsource;
     this.buttonCallback   = buttonCallback;
     this.data             = data;
     this.onUpdateCallback = onUpdateCallback;
     this.onShowCallback   = onShowCallback;
 }
Ejemplo n.º 2
0
        public void CheckCriticalMessages()
        {
            if (Visible || hasmessage)
            {
                return;
            }

            PopupMessageBox.MessageData criticalMessage = GetCriticalMessage();
            if (criticalMessage == null)
            {
                return;
            }

            if (criticalMessage.GetMessageType() == PopupMessageBox.MessageBoxType.Critical)
            {
                var message_details = (PopupMessageBox.MessageDataStandard)criticalMessage;
                MessageCallback = message_details.OnSelection;
                MessageUserData = message_details.data;
                MessageText     = TranslateSpoolerMessage(message_details.message);
                SetMessageStandard(message_details);
                hasmessage = true;
                Visible    = true;
            }
            else if (criticalMessage.GetMessageType() == PopupMessageBox.MessageBoxType.XML)
            {
                var messageDataXml = (PopupMessageBox.MessageDataXML)criticalMessage;
                MessageUserData     = messageDataXml.data;
                XMLMessageCallback  = messageDataXml.buttonCallback;
                XMLOnUpdateCallback = messageDataXml.onUpdateCallback;
                SetMessageXML(messageDataXml.message, messageDataXml.xmlsource);
                messageDataXml.onShowCallback?.Invoke(this, child_frame, host, messageDataXml.data);

                hasmessage = true;
                Visible    = true;
            }
            Refresh();
        }
Ejemplo n.º 3
0
 public MessageDataXML(SpoolerMessage message, string xmlsource, PopupMessageBox.XMLButtonCallback buttonCallback, object data, ElementStandardDelegate onUpdateCallback)
     : this(message, xmlsource, buttonCallback, data, onUpdateCallback, null)
 {
 }
Ejemplo n.º 4
0
 public MessageDataXML(SpoolerMessage message, string xmlsource, PopupMessageBox.XMLButtonCallback buttonCallback, object data)
     : this(message, xmlsource, buttonCallback, data, null, null)
 {
 }
Ejemplo n.º 5
0
 public MessageDataXML(string xmlsource, PopupMessageBox.XMLButtonCallback buttonCallback, ElementStandardDelegate onUpdateCallback, PopupMessageBox.XMLOnShow onShowCallback, object state)
     : this(new SpoolerMessage(), xmlsource, buttonCallback, state, onUpdateCallback, onShowCallback)
 {
 }
Ejemplo n.º 6
0
 public MessageDataXML(string xmlsource, PopupMessageBox.XMLButtonCallback buttonCallback, ElementStandardDelegate onUpdateCallback, PopupMessageBox.XMLOnShow onShowCallback)
     : this(xmlsource, buttonCallback, onUpdateCallback, onShowCallback, null)
 {
 }