Example #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();
        }
 void ReleaseDesignerOutlets()
 {
     if (CommentsView != null)
     {
         CommentsView.Dispose();
         CommentsView = null;
     }
     if (CommentTextBox != null)
     {
         CommentTextBox.Dispose();
         CommentTextBox = null;
     }
     if (CostLabel != null)
     {
         CostLabel.Dispose();
         CostLabel = null;
     }
     if (DateLabel != null)
     {
         DateLabel.Dispose();
         DateLabel = null;
     }
     if (DistanceLabel != null)
     {
         DistanceLabel.Dispose();
         DistanceLabel = null;
     }
     if (DriverLabel != null)
     {
         DriverLabel.Dispose();
         DriverLabel = null;
     }
     if (EndLabel != null)
     {
         EndLabel.Dispose();
         EndLabel = null;
     }
     if (FromLabel != null)
     {
         FromLabel.Dispose();
         FromLabel = null;
     }
     if (MakerLabel != null)
     {
         MakerLabel.Dispose();
         MakerLabel = null;
     }
     if (ModelLabel != null)
     {
         ModelLabel.Dispose();
         ModelLabel = null;
     }
     if (RateLabel != null)
     {
         RateLabel.Dispose();
         RateLabel = null;
     }
     if (ResumeView != null)
     {
         ResumeView.Dispose();
         ResumeView = null;
     }
     if (SegmentedControl != null)
     {
         SegmentedControl.Dispose();
         SegmentedControl = null;
     }
     if (StartLabel != null)
     {
         StartLabel.Dispose();
         StartLabel = null;
     }
     if (ToLabel != null)
     {
         ToLabel.Dispose();
         ToLabel = null;
     }
     if (VehicleImage != null)
     {
         VehicleImage.Dispose();
         VehicleImage = null;
     }
 }