Beispiel #1
0
        /// <summary>
        /// constructor
        /// </summary>
        public GMapControl()
        {
            fCore = new MapCore(this);

            Overlays = new ObservableCollectionThreadSafe <MapOverlay>();

            InvertedMouseWheelZooming = false;
            MaxZoom = 17;
            MinZoom = 2;
            Zoom    = 0;

            if (!IsDesignerHosted)
            {
                SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
                SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                SetStyle(ControlStyles.UserPaint, true);
                SetStyle(ControlStyles.Opaque, true);
                ResizeRedraw = true;

                TileFlipXYAttributes.SetWrapMode(WrapMode.TileFlipXY);

                CenterFormat.Alignment     = StringAlignment.Center;
                CenterFormat.LineAlignment = StringAlignment.Center;

                BottomFormat.Alignment     = StringAlignment.Center;
                BottomFormat.LineAlignment = StringAlignment.Far;

                Overlays.CollectionChanged += Overlays_CollectionChanged;
            }
        }
Beispiel #2
0
 protected MapOverlay()
 {
     Markers  = new ObservableCollectionThreadSafe <MapMarker>();
     Routes   = new ObservableCollectionThreadSafe <MapRoute>();
     Polygons = new ObservableCollectionThreadSafe <MapPolygon>();
     CreateEvents();
 }
Beispiel #3
0
        public AlignmentArgsBase(SystemService Service)
        {
            Log            = new ObservableCollectionThreadSafe <string>();
            ScanCurveGroup = new ScanCurveGroup();

            Properties   = new ObservableCollectionEx <Property>();
            this.Service = Service;
        }
Beispiel #4
0
 public MonitorViewModel(MonitorWnd monitorWindow)
 {
     monitorWnd                     = monitorWindow;
     monitorWnd.Closed             += MonitorWnd_Closed;
     MapConfigAttributes            = new ObservableCollection <MapConfigAttribute>();
     TextMarkerList                 = new ObservableCollectionThreadSafe <GMapMarker>();
     CameraMarkerList               = new ObservableCollectionThreadSafe <GMapMarker>();
     monitorWnd.MapControl.Loaded  += MapControl_Loaded;
     monitorWnd.MapControl.MouseUp += MapControl_MouseUp;
 }
        public SpiralScanArgs()
        {
            ScanCurve = new ObservableCollectionThreadSafe <Point3D>();

            Target      = 0;
            MaxCycles   = 1;
            Gap         = 10;
            Range       = 100;
            MoveSpeed   = 100;
            AspectRatio = new Size3D(1, 1, 1);

            Random r = new Random();

            for (int x = 0; x < 100; x++)
            {
                for (int y = 0; y < 100; y++)
                {
                    ScanCurve.Add(new Point3D(x, y, r.NextDouble()));
                }
            }
        }
 public Alignment1DArgs()
 {
     ScanCurve = new ObservableCollectionThreadSafe <Point>();
 }
 public AllJoynModel()
 {
     VariableListViewModel = new VariableListViewModel();
     AllJoynServices       = new ObservableCollectionThreadSafe <AllJoynService>();
 }
Beispiel #8
0
 public VariableListViewModel()
 {
     Items = new ObservableCollectionThreadSafe <VariableType>();
 }