Exemple #1
0
        public void CallBack(NetMessage.Message _message, string data)
        {
            var xml = XMl.From_XML <XMl>(data);

            if (xml.Value.GetType() == typeof(XMl.XmlColor))
            {
                xml.Value = ((XMl.XmlColor)xml.Value).ToColor();
            }

            var b = this.Controls.Find(xml.Control, true)[0];

            try {
                b.GetType().GetProperty(xml.Property)?.SetValue(b, xml.Value);
            } catch (Exception e) {
                MessageBox.Show(e.Message + "\n\n" + e.StackTrace, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemple #2
0
 private void CMDCall(string control, string property) => OnRequestS(XMl.To_XML(new XMl(control, property, "Call No User Input!")));
Exemple #3
0
 private void RPCCall(string control, string property, object value) => OnUpdateS(XMl.To_XML(new XMl(control, property, value)));