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(); }
public ServicemanOnMapViewModel() { InitializeMapControl.Execute(null); gmaps_contol.IgnoreMarkerOnMouseWheel = true; FillServicemanCommand.Execute(null); FilterServicemanFlyoutVisible = true; }
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); }