Example #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TimeZoneBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.CountryCodeBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 3:
                this.Map = ((Microsoft.Maps.MapControl.WPF.Map)(target));

            #line 25 "..\..\LocationDisplay.xaml"
                this.Map.Loaded += new System.Windows.RoutedEventHandler(this.MapLoaded);

            #line default
            #line hidden
                return;

            case 4:
                this.Pin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 2:
                this.theEstimatePin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 3:
                this.realFallPin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 4:
                this.MapPolyline = ((Microsoft.Maps.MapControl.WPF.MapPolyline)(target));
                return;

            case 5:

            #line 49 "..\..\..\View\MapsUC.xaml"
                ((System.Windows.Controls.DatePicker)(target)).SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.DatePicker_SelectedDateChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.FallsComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 50 "..\..\..\View\MapsUC.xaml"
                this.FallsComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FallsComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.NoReprtTxt = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.buttonHow = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\..\View\MapsUC.xaml"
                this.buttonHow.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.page = ((System.Windows.Controls.ContentControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mapView = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 2:
                this.pushpin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 3:
                this.background = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.TimeTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.TimeTextBox = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.Coordinate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.LatitudeTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.LongitudeTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.waterlevel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 10:
                this.WaterLevelTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.WaterLevelSlider = ((System.Windows.Controls.Slider)(target));
                return;

            case 12:
                this.listbox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 13:
                this.Save_Button = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.airplane = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
         return;
     }
     this._contentLoaded = true;
 }
Example #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.reporterViewModel = ((BL.ViewModels.ReporterViewModel)(target));
                return;

            case 2:
                this.GridTest = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.textBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.stackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 6:
                this.AddReporterButton = ((System.Windows.Controls.Button)(target));
                return;

            case 7:
                this.SuccessLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.FailedLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.checkBox1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 10:
                this.checkBox2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 11:
                this.BingMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 12:
                this.LocationPin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #6
0
        //Add a pin to give visual feedback of the selected location
        private void PlacePin(double latitude, double longitude)
        {
            selectedLatitute  = latitude;
            selectedLongitude = longitude;


            pin          = new Microsoft.Maps.MapControl.WPF.Pushpin();
            pin.Location = new Microsoft.Maps.MapControl.WPF.Location(latitude, longitude);

            myMap.Children.Add(pin);
        }
Example #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.StartPointTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.StartLocationsListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 3:
                this.StartLocationsLoadingImage = ((System.Windows.Controls.Image)(target));
                return;

            case 4:
                this.DestinationTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.DestinationLocationsListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 6:
                this.DestinationLocationsLoadingImage = ((System.Windows.Controls.Image)(target));
                return;

            case 7:
                this.TripsMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 8:
                this.PushPinMe = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 9:
                this.StartPushpin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 10:
                this.DestinationPushpin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.myUC = ((Hits.Views.Grids.ReportGrid)(target));
                return;

            case 2:
                this.GridTest = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 4:
                this.SuccessLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.FailedLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.checkBox1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 7:
                this.checkBox2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 8:
                this.BingMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 9:
                this.LocationPin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.theMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 2:
                this.PushPinMe = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 3:

            #line 115 "..\..\..\Views\BakuBusMainView.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.map = ((Microsoft.Maps.MapControl.WPF.Map)(target));

            #line 10 "..\..\..\MainWindow.xaml"
                this.map.MouseMove += new System.Windows.Input.MouseEventHandler(this.map_MouseMove);

            #line default
            #line hidden
                return;

            case 2:
                this.mapLayer = ((Microsoft.Maps.MapControl.WPF.MapLayer)(target));
                return;

            case 3:
                this.pin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #11
0
        public void RetrieveCoordsFromMousePosition()
        {
            //If Pin is checked, add pin at mouse coords
            if (btnPin.IsChecked.Value)
            {
                Point mousePosition = Mouse.GetPosition(this);
                //Convert the mouse coordinates to a locatoin on the map
                Microsoft.Maps.MapControl.WPF.Location pinLocation = myMap.ViewportPointToLocation(mousePosition);

                // The pushpin to add to the map.
                Microsoft.Maps.MapControl.WPF.Pushpin pin = new Microsoft.Maps.MapControl.WPF.Pushpin();
                pin.Location = pinLocation;

                // Adds the pushpin to the map.
                myMap.Children.Add(pin);
                vListLastPins.Add(new LastPinAdded()
                {
                    _Latitude = pin.Location.Latitude.ToString(),
                    _Longitude = pin.Location.Longitude.ToString()
                });
                btnSendCoords.IsEnabled = true;
                btnSendCoords.Visibility = System.Windows.Visibility.Visible;
                btnPin.IsChecked = false;
            }
        }
Example #12
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mapView = ((Microsoft.Maps.MapControl.WPF.Map)(target));

            #line 30 "..\..\..\View\OtherView.xaml"
                this.mapView.MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.mapViewMouseUp);

            #line default
            #line hidden

            #line 31 "..\..\..\View\OtherView.xaml"
                this.mapView.MouseMove += new System.Windows.Input.MouseEventHandler(this.mapViewMouseMove);

            #line default
            #line hidden
                return;

            case 2:
                this.pushpin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 3:
                this.background = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.TimeTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.TimeTextBox = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 6:
                this.Coordinate = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 7:
                this.LatitudeTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 8:
                this.LongitudeTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.imgPhoto = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.btnLoad = ((System.Windows.Controls.Button)(target));
                return;

            case 11:
                this.Save_Button = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Map = ((Microsoft.Maps.MapControl.WPF.Map)(target));

            #line 22 "..\..\WeatherMap.xaml"
                this.Map.Loaded += new System.Windows.RoutedEventHandler(this.MapLoaded);

            #line default
            #line hidden

            #line 22 "..\..\WeatherMap.xaml"
                this.Map.ViewChangeOnFrame += new System.EventHandler <Microsoft.Maps.MapControl.WPF.MapEventArgs>(this.Map_ViewChangeFrame);

            #line default
            #line hidden
                return;

            case 2:
                this.Pin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 3:
                this.Clouds = ((System.Windows.Controls.RadioButton)(target));

            #line 25 "..\..\WeatherMap.xaml"
                this.Clouds.Checked += new System.Windows.RoutedEventHandler(this.CloudsChecked);

            #line default
            #line hidden
                return;

            case 4:
                this.Temp = ((System.Windows.Controls.RadioButton)(target));

            #line 26 "..\..\WeatherMap.xaml"
                this.Temp.Checked += new System.Windows.RoutedEventHandler(this.TempChecked);

            #line default
            #line hidden
                return;

            case 5:
                this.Precipation = ((System.Windows.Controls.RadioButton)(target));

            #line 27 "..\..\WeatherMap.xaml"
                this.Precipation.Checked += new System.Windows.RoutedEventHandler(this.PrecChecked);

            #line default
            #line hidden
                return;

            case 6:
                this.Pressure = ((System.Windows.Controls.RadioButton)(target));

            #line 28 "..\..\WeatherMap.xaml"
                this.Pressure.Checked += new System.Windows.RoutedEventHandler(this.PressChecked);

            #line default
            #line hidden
                return;

            case 7:
                this.Wind = ((System.Windows.Controls.RadioButton)(target));

            #line 29 "..\..\WeatherMap.xaml"
                this.Wind.Checked += new System.Windows.RoutedEventHandler(this.WindChecked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GridTest = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.updateGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.FirstGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.date = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 5:
                this.UpdateButton = ((System.Windows.Controls.Button)(target));
                return;

            case 6:
                this.SecondGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.kuk = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 8:
                this.newLocation = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 9:
                this.newLocationPin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 10:
                this.SuccessLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.FailedLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 12:
                this.checkBox1 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 13:
                this.checkBox2 = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 14:
                this.SendUpdateButton = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Example #15
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.LoadDataBtn = ((System.Windows.Controls.Button)(target));
     
     #line 16 "..\..\MainWindow.xaml"
     this.LoadDataBtn.Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 2:
     this.GlascontainerListBox = ((System.Windows.Controls.ListBox)(target));
     
     #line 17 "..\..\MainWindow.xaml"
     this.GlascontainerListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.GlascontainerListBox_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 3:
     this.SearchTxB = ((System.Windows.Controls.TextBox)(target));
     return;
     case 4:
     this.SearchListBox = ((System.Windows.Controls.ListBox)(target));
     return;
     case 5:
     this.SearchBtn = ((System.Windows.Controls.Button)(target));
     
     #line 42 "..\..\MainWindow.xaml"
     this.SearchBtn.Click += new System.Windows.RoutedEventHandler(this.SearchBtn_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.MapGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 7:
     this.leMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
     return;
     case 8:
     this.CustomPushpin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
     return;
     case 9:
     this.BalloonTip = ((System.Windows.Controls.ToolTip)(target));
     return;
     }
     this._contentLoaded = true;
 }
Example #16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.主页 = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.查找产品TBX = ((System.Windows.Controls.TextBox)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.查找产品TBX.GotFocus += new System.Windows.RoutedEventHandler(this.MyGotFocus);

            #line default
            #line hidden

            #line 57 "..\..\MainWindow.xaml"
                this.查找产品TBX.LostFocus += new System.Windows.RoutedEventHandler(this.MyLostFocus1);

            #line default
            #line hidden

            #line 58 "..\..\MainWindow.xaml"
                this.查找产品TBX.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MyPreviewMouseDown);

            #line default
            #line hidden
                return;

            case 3:
                this.地区选择TBX = ((System.Windows.Controls.TextBox)(target));

            #line 84 "..\..\MainWindow.xaml"
                this.地区选择TBX.GotFocus += new System.Windows.RoutedEventHandler(this.MyGotFocus);

            #line default
            #line hidden

            #line 85 "..\..\MainWindow.xaml"
                this.地区选择TBX.LostFocus += new System.Windows.RoutedEventHandler(this.MyLostFocus1);

            #line default
            #line hidden

            #line 86 "..\..\MainWindow.xaml"
                this.地区选择TBX.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MyPreviewMouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.工食一下Btn = ((System.Windows.Controls.Button)(target));

            #line 95 "..\..\MainWindow.xaml"
                this.工食一下Btn.Click += new System.Windows.RoutedEventHandler(this.工食一下Btn_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.次级 = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.colum1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 7:
                this.查找产品TBX_次级 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.地区选择TBX_次级 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.供应量级TBX = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.地图模式Btn = ((System.Windows.Controls.Button)(target));

            #line 234 "..\..\MainWindow.xaml"
                this.地图模式Btn.Click += new System.Windows.RoutedEventHandler(this.地图模式Btn_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.列表模式Btn = ((System.Windows.Controls.Button)(target));

            #line 258 "..\..\MainWindow.xaml"
                this.列表模式Btn.Click += new System.Windows.RoutedEventHandler(this.列表模式Btn_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.地图层 = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.myMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));

            #line 296 "..\..\MainWindow.xaml"
                this.myMap.ViewChangeOnFrame += new System.EventHandler <Microsoft.Maps.MapControl.WPF.MapEventArgs>(this.Map_ViewChangeEnd);

            #line default
            #line hidden
                return;

            case 14:
                this.myPin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));

            #line 303 "..\..\MainWindow.xaml"
                this.myPin.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.MyPin_MouseUp);

            #line default
            #line hidden
                return;

            case 15:
                this.列表层 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 16:
                this.region_次级 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.Fac_Num = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 18:
                this.列表 = ((System.Windows.Controls.ListBox)(target));

            #line 341 "..\..\MainWindow.xaml"
                this.列表.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.列表_SelectionChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.详情 = ((System.Windows.Controls.Grid)(target));
                return;

            case 21:
                this.返回次级页面 = ((System.Windows.Controls.Button)(target));

            #line 522 "..\..\MainWindow.xaml"
                this.返回次级页面.Click += new System.Windows.RoutedEventHandler(this.返回次级页面_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.基本信息 = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.ImageBoder = ((System.Windows.Controls.Border)(target));
                return;

            case 24:
                this.详情_工厂名称 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.详情_最终评分 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.case_三级 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.详情_site = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.详情_tel = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 29:
                this.详情_position = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.加入对比 = ((System.Windows.Controls.Button)(target));

            #line 661 "..\..\MainWindow.xaml"
                this.加入对比.Click += new System.Windows.RoutedEventHandler(this.加入对比_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.详情_cnpg = ((MaterialDesignThemes.Wpf.RatingBar)(target));
                return;

            case 32:
                this.详情_营业额 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.详情_月产量 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 34:
                this.详情_推测月产量 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 35:
                this.详情_sczl = ((MaterialDesignThemes.Wpf.RatingBar)(target));
                return;

            case 36:
                this.详情_case = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 37:
                this.详情_sku = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.详情_客户评价 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.详情_舆情评价 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 40:
                this.详情_重复购买 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 41:
                this.详情_舆情关键词 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.详情_jgys = ((MaterialDesignThemes.Wpf.RatingBar)(target));
                return;

            case 43:
                this.详情_商品价格 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.详情_是否需要冷链 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 45:
                this.详情_预估运输成本 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 46:
                this.详情_经销商地址 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 47:
                this.详情_与工厂距离 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 48:
                this.详情_与目的地距离 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 49:

            #line 1103 "..\..\MainWindow.xaml"
                ((Microsoft.Maps.MapControl.WPF.Map)(target)).ViewChangeOnFrame += new System.EventHandler <Microsoft.Maps.MapControl.WPF.MapEventArgs>(this.Map_ViewChangeEnd);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\MainWindow.xaml"
                ((WSN_Forest_Project.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.buttonexit = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.buttonexit.Click += new System.Windows.RoutedEventHandler(this.Buttonexit_Click);

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\MainWindow.xaml"
                this.buttonMinimize.Click += new System.Windows.RoutedEventHandler(this.ButtonMinimize_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.comboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OnSelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.comboPicture = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 6:
                this.startButton = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\MainWindow.xaml"
                this.startButton.Click += new System.Windows.RoutedEventHandler(this.OnStartButtonClick);

            #line default
            #line hidden
                return;

            case 7:
                this.stopButton = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\MainWindow.xaml"
                this.stopButton.Click += new System.Windows.RoutedEventHandler(this.OnStopButtonClick);

            #line default
            #line hidden
                return;

            case 8:
                this.imageButton = ((System.Windows.Controls.Button)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.imageButton.Click += new System.Windows.RoutedEventHandler(this.OnImageButtonClick);

            #line default
            #line hidden
                return;

            case 9:
                this.webCameraControl = ((WebEye.Controls.Wpf.WebCameraControl)(target));
                return;

            case 10:
                this.MyMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 11:
                this.DefaultPin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 12:
                this.MyPushPin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;

            case 13:
                this.defaultlocbtn = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\MainWindow.xaml"
                this.defaultlocbtn.Click += new System.Windows.RoutedEventHandler(this.defaultlocbtn_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.GridGrafik = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.grafikLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.TinggiPlot = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target));
                return;

            case 17:
                this.AccPlot = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target));
                return;

            case 18:
                this.GyroPlot = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target));
                return;

            case 19:
                this.yprButton = ((System.Windows.Controls.Button)(target));

            #line 98 "..\..\MainWindow.xaml"
                this.yprButton.Click += new System.Windows.RoutedEventHandler(this.yprButton_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.elevasiButton = ((System.Windows.Controls.Button)(target));

            #line 99 "..\..\MainWindow.xaml"
                this.elevasiButton.Click += new System.Windows.RoutedEventHandler(this.elevasiButton_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.ketinggianButton = ((System.Windows.Controls.Button)(target));

            #line 100 "..\..\MainWindow.xaml"
                this.ketinggianButton.Click += new System.Windows.RoutedEventHandler(this.ketinggianButton_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.GridTerminal = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.terminalText = ((System.Windows.Controls.TextBox)(target));

            #line 106 "..\..\MainWindow.xaml"
                this.terminalText.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.terminalText_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 24:
                this.visualButton = ((System.Windows.Controls.Button)(target));

            #line 117 "..\..\MainWindow.xaml"
                this.visualButton.Click += new System.Windows.RoutedEventHandler(this.visualButton_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.logButton = ((System.Windows.Controls.Button)(target));

            #line 118 "..\..\MainWindow.xaml"
                this.logButton.Click += new System.Windows.RoutedEventHandler(this.logButton_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.tabVisual = ((System.Windows.Controls.Grid)(target));
                return;

            case 27:
                this.gridKoneksi = ((System.Windows.Controls.Grid)(target));
                return;

            case 28:
                this.portCombo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 29:
                this.baudCombo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 30:
                this.databitCombo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 31:
                this.stopbitCombo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 32:
                this.parityCombo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 33:
                this.handshakeCombo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 34:
                this.delayCombo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 35:
                this.portLauncher = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 36:
                this.konekButton = ((System.Windows.Controls.Button)(target));

            #line 155 "..\..\MainWindow.xaml"
                this.konekButton.Click += new System.Windows.RoutedEventHandler(this.konekButton_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.gridUtama = ((System.Windows.Controls.Grid)(target));
                return;

            case 38:
                this.barKetinggian = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 39:
                this.barElevasi = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 40:
                this.barTemperatur = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 41:
                this.barTekanan = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 42:
                this.barYaw = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 43:
                this.barPitch = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 44:
                this.barRoll = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 45:
                this.lblLatitude = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.lblLongitude = ((System.Windows.Controls.Label)(target));
                return;

            case 47:
                this.lblKetinggian = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.lblElevasi = ((System.Windows.Controls.Label)(target));
                return;

            case 49:
                this.lblTemperatur = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.lblTekanan = ((System.Windows.Controls.Label)(target));
                return;

            case 51:
                this.lblYaw = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.lblPitch = ((System.Windows.Controls.Label)(target));
                return;

            case 53:
                this.lblRoll = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.lblTimer = ((System.Windows.Controls.Label)(target));
                return;

            case 55:
                this.btnRefresh = ((System.Windows.Controls.Button)(target));

            #line 225 "..\..\MainWindow.xaml"
                this.btnRefresh.Click += new System.Windows.RoutedEventHandler(this.btnRefresh_Click);

            #line default
            #line hidden
                return;

            case 56:
                this.tabLog = ((System.Windows.Controls.Grid)(target));
                return;

            case 57:
                this.datagridLog = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 58:
                this.Landasan3D = ((System.Windows.Controls.Viewport3D)(target));
                return;

            case 59:
                this.DefaultGroup = ((System.Windows.Media.Media3D.ModelVisual3D)(target));
                return;

            case 60:
                this.group = ((System.Windows.Media.Media3D.Model3DGroup)(target));
                return;

            case 61:
                this.rocket3D = ((System.Windows.Media.Media3D.GeometryModel3D)(target));
                return;

            case 62:
                this.myQuaternionRotation3D = ((System.Windows.Media.Media3D.QuaternionRotation3D)(target));
                return;

            case 63:
                this.btnPutus = ((System.Windows.Controls.Button)(target));

            #line 2195 "..\..\MainWindow.xaml"
                this.btnPutus.Click += new System.Windows.RoutedEventHandler(this.btnPutus_Click);

            #line default
            #line hidden
                return;

            case 64:
                this.btnCapture = ((System.Windows.Controls.Button)(target));

            #line 2197 "..\..\MainWindow.xaml"
                this.btnCapture.Click += new System.Windows.RoutedEventHandler(this.btnCapture_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Example #18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DockPanelMenu = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 3:
                this.BackButton = ((System.Windows.Controls.MenuItem)(target));

            #line 43 "..\..\..\Views\SignalView.xaml"
                this.BackButton.Click += new System.Windows.RoutedEventHandler(this.Back_OnClickack_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.AccidentButton = ((System.Windows.Controls.MenuItem)(target));

            #line 45 "..\..\..\Views\SignalView.xaml"
                this.AccidentButton.Click += new System.Windows.RoutedEventHandler(this.Accidents_OnClick);

            #line default
            #line hidden
                return;

            case 5:
                this.MapButton = ((System.Windows.Controls.MenuItem)(target));

            #line 46 "..\..\..\Views\SignalView.xaml"
                this.MapButton.Click += new System.Windows.RoutedEventHandler(this.Maps_OnClick);

            #line default
            #line hidden
                return;

            case 6:
                this.AccidentsList = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.AccidentListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 8:
                this.DeleteSignal = ((System.Windows.Controls.MenuItem)(target));

            #line 55 "..\..\..\Views\SignalView.xaml"
                this.DeleteSignal.Click += new System.Windows.RoutedEventHandler(this.DeleteSignal_OnClick);

            #line default
            #line hidden
                return;

            case 9:
                this.DeleteAllSignals = ((System.Windows.Controls.MenuItem)(target));

            #line 56 "..\..\..\Views\SignalView.xaml"
                this.DeleteAllSignals.Click += new System.Windows.RoutedEventHandler(this.DeleteAllSignals_OnClick);

            #line default
            #line hidden
                return;

            case 10:
                this.SignalCode = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 11:
                this.SignalTime = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 12:
                this.Latitude = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 13:
                this.Longtitude = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 14:
                this.Map = ((System.Windows.Controls.Grid)(target));
                return;

            case 15:
                this.TheMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 17:
                this.ServiceLocationPushPin = ((Microsoft.Maps.MapControl.WPF.Pushpin)(target));
                return;
            }
            this._contentLoaded = true;
        }
        //Add a pin to give visual feedback of the selected location
        private void PlacePin(double latitude, double longitude)
        {
            selectedLatitute = latitude;
            selectedLongitude = longitude;


            pin = new Microsoft.Maps.MapControl.WPF.Pushpin();
            pin.Location = new Microsoft.Maps.MapControl.WPF.Location(latitude, longitude);

            myMap.Children.Add(pin);
        }