void textBox_Leave(object sender, EventArgs e) { string str = this.parent + "." + label1.Text; if (!label1.Text.Equals("Header Text")) { XmlReadWrite.SetValue(str, textBox.Text); } else { if (!string.IsNullOrEmpty(textBox.Text)) { XmlReadWrite.SetValue(str, textBox.Text); } } }
void numericUpDown_TextChanged(object sender, EventArgs e) { string str = this.parent + "." + label1.Text; XmlReadWrite.SetValue(str, numericUpDown.Value.ToString()); }