Exemplo n.º 1
0
        private void btn_Enter_Click(object sender, EventArgs e)
        {
            int             direction    = cb_Direction.SelectedIndex;
            int             devicenumber = (int)ud_DeviceNumber.Value;
            SaveCameraParam param        = new SaveCameraParam()
            {
                CameraIp  = SaveParam.CameraIp,
                DeviceId  = devicenumber,
                Direction = direction
            };

            this.Tag = param;
            Close();
        }
Exemplo n.º 2
0
        private void btn_Enter_Click(object sender, EventArgs e)
        {
            if (cb_Camera.SelectedIndex == -1)
            {
                cb_Camera.DroppedDown = true;
                return;
            }
            string          ip           = cb_Camera.Text;
            int             direction    = cb_Direction.SelectedIndex;
            int             devicenumber = (int)ud_DeviceNumber.Value;
            SaveCameraParam param        = new SaveCameraParam()
            {
                CameraIp  = ip,
                DeviceId  = devicenumber,
                Direction = direction
            };

            this.Tag = param;
            Close();
        }