private void linkLabelConfigCamera_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            if (bs.Current == null)
            {
                return;
            }

            Camera cam = bs.Current as Camera;

            if (string.IsNullOrEmpty(cam.IpAddress))
            {
                return;
            }

            using (FormConfigCamera form = new FormConfigCamera())
            {
                StringBuilder sb = new StringBuilder(form.Text);
                sb.Append("-[");
                sb.Append(cam.IpAddress);
                sb.Append("]");

                form.Navigate(cam.IpAddress);
                form.Text = sb.ToString();
                form.ShowDialog(this);
            }
        }
Example #2
0
        private void linkLabelConfigCamera_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var selectedCam = Cameras.FirstOrDefault();

            if (selectedCam != null)
            {
                using (var form = new FormConfigCamera())
                {
                    var sb = new StringBuilder(form.Text);
                    sb.Append("-[");
                    sb.Append(selectedCam.Location.ToString());
                    sb.Append("]");

                    form.Navigate(selectedCam.Location.ToString());
                    form.Text = sb.ToString();
                    form.ShowDialog(this);
                }
            }
        }
Example #3
0
        private void linkLabelConfigCamera_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            var selectedCam = Cameras.FirstOrDefault();
            if (selectedCam != null)
            {
                using (var form = new FormConfigCamera())
                {
                    var sb = new StringBuilder(form.Text);
                    sb.Append("-[");
                    sb.Append(selectedCam.Location.ToString());
                    sb.Append("]");

                    form.Navigate(selectedCam.Location.ToString());
                    form.Text = sb.ToString();
                    form.ShowDialog(this);
                }
            }
        }
Example #4
0
        private void linkLabelConfigCamera_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            if (bs.Current == null)
            {
                return;
            }

            Camera cam = bs.Current as Camera;
            if (string.IsNullOrEmpty(cam.IpAddress))
            {
                return;
            }

            using (FormConfigCamera form = new FormConfigCamera())
            {
                StringBuilder sb = new StringBuilder(form.Text);
                sb.Append("-[");
                sb.Append(cam.IpAddress);
                sb.Append("]");

                form.Navigate(cam.IpAddress);
                form.Text = sb.ToString();
                form.ShowDialog(this);
            }
        }