示例#1
0
        private void tsmiOptions_Click(object sender, EventArgs e)
        {
            FormOptions fo = new FormOptions();

            fo.IPAddrCamera   = Properties.Settings.Default.IPAdressCamera;
            fo.SimulateCamera = Properties.Settings.Default.SimulateCamera;
            DialogResult res = fo.ShowDialog();

            if (res == DialogResult.OK)
            {
                Properties.Settings.Default.IPAdressCamera = fo.IPAddrCamera;
                Properties.Settings.Default.SimulateCamera = fo.SimulateCamera;
                toolStripStatusLabel1.Text = Properties.Settings.Default.IPAdressCamera;
            }
        }
示例#2
0
 private void tsmiOptions_Click(object sender, EventArgs e)
 {
     FormOptions fo = new FormOptions();
     fo.IPAddrCamera = Properties.Settings.Default.IPAdressCamera;
     fo.SimulateCamera = Properties.Settings.Default.SimulateCamera;
     DialogResult res = fo.ShowDialog();
     if (res == DialogResult.OK)
     {
         Properties.Settings.Default.IPAdressCamera = fo.IPAddrCamera;
         Properties.Settings.Default.SimulateCamera = fo.SimulateCamera;
         toolStripStatusLabel1.Text = Properties.Settings.Default.IPAdressCamera;
     }
 }