Example #1
0
        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);
                }
            }
        }
Example #2
0
        void numericUpDown_TextChanged(object sender, EventArgs e)
        {
            string str = this.parent + "." + label1.Text;

            XmlReadWrite.SetValue(str, numericUpDown.Value.ToString());
        }