void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GoogleMapsUC1 = ((PL.GoogleMapsUC)(target));
                return;

            case 2:
                this.MainMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 3:
                this.MapModeButten = ((System.Windows.Controls.Button)(target));

            #line 12 "..\..\GoogleMapsUC.xaml"
                this.MapModeButten.Click += new System.Windows.RoutedEventHandler(this.MapModeButten_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.StatlliteModeButten = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\GoogleMapsUC.xaml"
                this.StatlliteModeButten.Click += new System.Windows.RoutedEventHandler(this.StatlliteModeButten_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 2
0
        public void UpdateAll(string fallId, GoogleMapsUC googleMapsUC)
        {
            List <Fall> falls = CurrentVM.Falls.ToList();
            Fall        fall  = null;

            foreach (Fall item in falls)
            {
                if (item.id.ToString() == fallId)
                {
                    fall = item;
                }
            }
            if (fall != null)
            {
                googleMapsUC.Update(Convert.ToInt32(fallId));
            }
        }
Esempio n. 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow1 = ((PL.MainWindow)(target));
                return;

            case 2:
                this.Images = ((PL.FallsImagesUC)(target));
                return;

            case 3:
                this.Map = ((PL.GoogleMapsUC)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainWindow1 = ((PL.MainWindow)(target));
                return;

            case 2:
                this.NewReportElement = ((PL.NewReportUC)(target));
                return;

            case 3:
                this.MainMap = ((PL.GoogleMapsUC)(target));
                return;

            case 4:

            #line 22 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Ellipse)(target)).PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Ellipse_PreviewMouseUp);

            #line default
            #line hidden
                return;

            case 5:

            #line 27 "..\..\MainWindow.xaml"
                ((System.Windows.Shapes.Ellipse)(target)).PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Ellipse_PreviewMouseUp);

            #line default
            #line hidden
                return;

            case 6:

            #line 36 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TabItem)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.statisticsGotFocus);

            #line default
            #line hidden
                return;

            case 7:
                this.StatisticsElement = ((PL.StatisticsUC)(target));
                return;

            case 8:
                this.PieChartElement = ((PL.ChartUC)(target));
                return;

            case 9:
                this.GraphElement = ((PL.GraphUC)(target));
                return;

            case 10:

            #line 45 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TabItem)(target)).GotFocus += new System.Windows.RoutedEventHandler(this.FallsInformationGotFocus);

            #line default
            #line hidden
                return;

            case 11:
                this.fallImageElement = ((PL.FallsImagesUC)(target));
                return;

            case 12:
                this.secondMapElement = ((PL.GoogleMapsUC)(target));
                return;
            }
            this._contentLoaded = true;
        }