Пример #1
0
        void trb_CheckedChanged(object sender, EventArgs e)
        {
            string str = this.parent + "." + label1.Text;

            if (trb.Checked)
            {
                XmlReadWrite.SetValue(str, (byte)1);
            }
            else
            {
                XmlReadWrite.SetValue(str, (byte)0);
            }
        }
Пример #2
0
        void textBox_TextChanged(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);
                }
            }
        }
Пример #3
0
        void numericUpDown_ValueChanged(object sender, EventArgs e)
        {
            string str = this.parent + "." + label1.Text;

            XmlReadWrite.SetValue(str, numericUpDown.Value);
        }
Пример #4
0
        void comboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            string str = this.parent + "." + label1.Text;

            XmlReadWrite.SetValue(str, comboBox.Text);
        }