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

            if (label1.Text.ToLower().Contains("enablelensartifact"))
            {
                byte byteVal = 0;
                if (trb.Checked)
                {
                    byteVal = 1;
                    XmlReadWrite.SetValue(str, byteVal.ToString());
                }
                else
                {
                    XmlReadWrite.SetValue(str, byteVal.ToString());
                }
            }
            else if (trb.Checked)
            {
                XmlReadWrite.SetValue(str, trb.Text.ToLower());
            }
            else
            {
                XmlReadWrite.SetValue(str, frb.Text.ToLower());
            }
        }
Exemple #2
0
        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);
            }
        }
Exemple #3
0
        void numericUpDown_ValueChanged(object sender, EventArgs e)
        {
            string str = this.parent + "." + label1.Text;

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