コード例 #1
0
        public GuardsOnMapViewModel()
        {
            InitializeMapControl.Execute(null);
            InitializeColorList.Execute(null);
            ContextMenuIsOpen             = true;
            ManualAddress                 = false;
            IsReadOnlyAddress             = false;
            SetLabelGuardObjectVisibility = true;
            ShowAllGroupsCommand.Execute(null);
            CalculateRoutesVisibleCommand.Execute(null);
            Loading = false;

            gmaps_contol.IgnoreMarkerOnMouseWheel = true;

            PointLatLng point  = new PointLatLng(Convert.ToDouble(0), Convert.ToDouble(0));
            GMapMarker  marker = new GMapMarker(point);

            marker.Shape = new Image()
            {
                Source  = Conv.ToImageSource(Properties.Resources.Icon),
                Stretch = Stretch.UniformToFill
            };
            gmaps_contol.Markers.Add(marker);
            gmaps_contol.UpdateLayout();
        }
コード例 #2
0
 public ServicemanOnMapViewModel()
 {
     InitializeMapControl.Execute(null);
     gmaps_contol.IgnoreMarkerOnMouseWheel = true;
     FillServicemanCommand.Execute(null);
     FilterServicemanFlyoutVisible = true;
 }
コード例 #3
0
        public ServiceOrdersViewModel()
        {
            InitializeMapControl.Execute(null);

            FilterDate = NewServiceOrderDate = OrderDate = DateTime.Now;
            //FlyoutFilterOpened = true;

            SelectedMarkers   = new ObservableCollection <GMapMarker>();
            ServicemanList    = new ObservableCollection <NewServicemanExtensionBase>();
            ServiceOrdersList = new ObservableCollection <ServiceOrdersModel>();
            SelectedOrders    = new ObservableCollection <ServiceOrdersModel>();
            GetServicemansCommand.Execute(null);

            notificationManager = new NotificationManager();

            //ShowServiceOrderOnMapCommand.Execute(null);
        }