public void CallIn(NetMessage.Message ms, 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 { xml.Value = b.GetType().GetProperty(xml.Property)?.GetValue(b); if (xml.Value?.GetType() == typeof(Color)) { xml.Value = new XMl.XmlColor((Color)xml.Value); } } catch (Exception e) { MessageBox.Show(e.Message + "\n\n" + e.StackTrace, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); } OnUpdateS(XMl.To_XML(xml)); }
private void CMDCall(string control, string property) => OnRequestS(XMl.To_XML(new XMl(control, property, "Call No User Input!")));
private void RPCCall(string control, string property, object value) => OnUpdateS(XMl.To_XML(new XMl(control, property, value)));