Ejemplo n.º 1
0
        private TabPageCustom InitTabPage(DsDevice dev)
        {
            TabPageCustom tabPage = new TabPageCustom(dev);

            AllProperties aProp = new AllProperties(dev)
            {
                Dock = DockStyle.Top,
            };

            aProp.CreateSelectedProperties += new EventHandler(CreateSelectedProperties);
            tabPage.Text = aProp.GetWebcamName();
            tabPage.Controls.Add(aProp);


            if (aProp.CountFavorites > 0)
            {
                SelectedProperties sProp = new SelectedProperties(dev)
                {
                    Dock = DockStyle.Top
                };
                main.Controls.Add(sProp);
                sProp.SetAllProp(aProp);
                aProp.SelectedPropertiesVar = sProp;
                aProp.AddPropertyUpdateHandler();
                tabPage.sProp = sProp;
            }
            return(tabPage);
        }
Ejemplo n.º 2
0
        private void CreateSelectedProperties(object sender, EventArgs e)
        {
            AllProperties      aProp = (AllProperties)sender;
            SelectedProperties sProp = new SelectedProperties(aProp.GetDevice())
            {
                Dock = DockStyle.Top
            };

            sProp.SetAllProp(aProp);
            main.Controls.Add(sProp);
            aProp.SelectedPropertiesVar = sProp;
            aProp.AddPropertyUpdateHandler();
        }
Ejemplo n.º 3
0
 private void WebcamConnectedImpl()
 {
     this.Controls.Clear();
     this.BackColor = Color.Transparent;
     aProp          = new AllProperties(webcam)
     {
         Dock = DockStyle.Top,
     };
     //aProp.CreateSelectedProperties += new EventHandler(CreateSelectedProperties);
     if (sProp != null)
     {
         sProp.SetAllProp(aProp);
         aProp.AddPropertyUpdateHandler(sProp);
         sProp.WebcamConnect();
     }
     this.Controls.Add(aProp);
 }