void textBox2_Leave(object sender, EventArgs e) { string str = this.parent + "." + label1.Text; if (label1.Text.Contains("Device")) { XmlReadWrite.SetValue(str, textBox2.Text + textBox1.Text + textBox.Text); } }
void numericUpDown_ValueChanged(object sender, EventArgs e) { string str = this.parent + "." + label1.Text; XmlReadWrite.SetValue(str, numericUpDown.Value.ToString()); }