Exemplo n.º 1
0
        public CameraView()
        {
            this.Build();

            devicelistStore = new Gtk.ListStore(typeof(string), typeof(IDevice));
            CellRendererText ct = new CellRendererText();


            source_box.PackStart(ct, false);
            source_box.AddAttribute(ct, "text", 0);
            source_box.Model = devicelistStore;

            textColor = new Gdk.Color();
            bgColor   = new Gdk.Color();

            Gdk.Color.Parse("white", ref textColor);
            Gdk.Color.Parse("black", ref bgColor);

            bgstats.ModifyBg(StateType.Normal, bgColor);
            bgstats.ModifyBase(StateType.Normal, bgColor);

            IPaddresLabel.ModifyBase(StateType.Normal, bgColor);
            IPaddresLabel.ModifyBg(StateType.Normal, bgColor);
            IPaddresLabel.ModifyFg(StateType.Normal, textColor);

            NameLabel.ModifyFg(StateType.Normal, textColor);
            FpsLabel.ModifyFg(StateType.Normal, textColor);
            DriverLabel.ModifyFg(StateType.Normal, textColor);

            timer = new Stopwatch();
            timer.Start();
        }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (PathToRectangleAppField != null)
            {
                PathToRectangleAppField.Dispose();
                PathToRectangleAppField = null;
            }

            if (TimeoutField != null)
            {
                TimeoutField.Dispose();
                TimeoutField = null;
            }

            if (TestFinishedLabel != null)
            {
                TestFinishedLabel.Dispose();
                TestFinishedLabel = null;
            }

            if (StatusLabel != null)
            {
                StatusLabel.Dispose();
                StatusLabel = null;
            }

            if (StatusValueLabel != null)
            {
                StatusValueLabel.Dispose();
                StatusValueLabel = null;
            }

            if (DetailsLabel != null)
            {
                DetailsLabel.Dispose();
                DetailsLabel = null;
            }

            if (CurrentAngelLabel != null)
            {
                CurrentAngelLabel.Dispose();
                CurrentAngelLabel = null;
            }

            if (CurrentAngelValueLabel != null)
            {
                CurrentAngelValueLabel.Dispose();
                CurrentAngelValueLabel = null;
            }

            if (FpsLabel != null)
            {
                FpsLabel.Dispose();
                FpsLabel = null;
            }

            if (FpsValueLabel != null)
            {
                FpsValueLabel.Dispose();
                FpsValueLabel = null;
            }

            if (ShowStatisticsButton != null)
            {
                ShowStatisticsButton.Dispose();
                ShowStatisticsButton = null;
            }

            if (StartTestButton != null)
            {
                StartTestButton.Dispose();
                StartTestButton = null;
            }

            if (DetailsTextView != null)
            {
                DetailsTextView.Dispose();
                DetailsTextView = null;
            }
        }