void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MainPanel = ((System.Windows.Controls.ZoomableCanvas)(target)); return; } this._contentLoaded = true; }
private static object CoerceRenderTransform(DependencyObject d, object value) { ZoomableCanvas zoomableCanvas = d as ZoomableCanvas; if (zoomableCanvas != null && zoomableCanvas.ApplyTransform) { TransformGroup transformGroup = new TransformGroup(); transformGroup.Children.Add(new ScaleTransform()); transformGroup.Children.Add(new TranslateTransform()); return(transformGroup); } return(value); }
private static object CoerceActualViewbox(DependencyObject d, object value) { ZoomableCanvas zoomableCanvas = d as ZoomableCanvas; if (zoomableCanvas != null) { Point offset = zoomableCanvas.Offset; double scale = zoomableCanvas.Scale; Size renderSize = zoomableCanvas.RenderSize; value = new Rect(offset.X / scale, offset.Y / scale, renderSize.Width / scale, renderSize.Height / scale); } return(value); }
private static void OnOffsetChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { d.CoerceValue(ActualViewboxProperty); ZoomableCanvas zoomableCanvas = d as ZoomableCanvas; if (zoomableCanvas != null) { zoomableCanvas.OffsetOverride((Point)e.NewValue); if (ZoomableCanvas.Refresh != null) { ZoomableCanvas.Refresh(d, e); } } }
private static void OnPositioningChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { DependencyObject parent = VisualTreeHelper.GetParent(d); ZoomableCanvas zoomableCanvas = parent as ZoomableCanvas; if (zoomableCanvas != null) { zoomableCanvas.InvalidateArrange(); } else { (parent as Canvas)?.InvalidateArrange(); } }
private static object CoerceOffset(DependencyObject d, object value) { ZoomableCanvas zoomableCanvas = d as ZoomableCanvas; if (zoomableCanvas != null) { Rect viewbox = zoomableCanvas.Viewbox; if (!viewbox.IsEmpty) { double scale = zoomableCanvas.Scale; Size renderSize = zoomableCanvas.RenderSize; value = new Point((viewbox.X + viewbox.Width / 2.0) * scale - renderSize.Width / 2.0, (viewbox.Y + viewbox.Height / 2.0) * scale - renderSize.Height / 2.0); } } return(value); }
private static object CoerceScale(DependencyObject d, object value) { double num = (double)value; ZoomableCanvas zoomableCanvas = d as ZoomableCanvas; if (zoomableCanvas != null) { Size renderSize = zoomableCanvas.RenderSize; if (renderSize.Width > 0.0 && renderSize.Height > 0.0) { Rect viewbox = zoomableCanvas.Viewbox; if (!viewbox.IsEmpty) { switch (zoomableCanvas.Stretch) { case Stretch.Uniform: num = Math.Min(renderSize.Width / viewbox.Width, renderSize.Height / viewbox.Height); break; case Stretch.UniformToFill: num = Math.Max(renderSize.Width / viewbox.Width, renderSize.Height / viewbox.Height); break; } switch (zoomableCanvas.StretchDirection) { case StretchDirection.DownOnly: num = num.AtMost((double)value); break; case StretchDirection.UpOnly: num = num.AtLeast((double)value); break; } } } } return(num); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\MainWindow.xaml" ((AGV_WPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 10 "..\..\..\MainWindow.xaml" ((AGV_WPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this._loading = ((NS_LoadingWait.LoadingWait)(target)); return; case 3: this.menu = ((System.Windows.Controls.Menu)(target)); return; case 4: this.MenuAGVManager = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.AGVPara = ((System.Windows.Controls.MenuItem)(target)); #line 40 "..\..\..\MainWindow.xaml" this.AGVPara.Click += new System.Windows.RoutedEventHandler(this.AGVPara_Click); #line default #line hidden return; case 6: this.Mark = ((System.Windows.Controls.MenuItem)(target)); #line 45 "..\..\..\MainWindow.xaml" this.Mark.Click += new System.Windows.RoutedEventHandler(this.Mark_Click); #line default #line hidden return; case 7: this.Route = ((System.Windows.Controls.MenuItem)(target)); #line 50 "..\..\..\MainWindow.xaml" this.Route.Click += new System.Windows.RoutedEventHandler(this.Route_Click); #line default #line hidden return; case 8: this.Traffic = ((System.Windows.Controls.MenuItem)(target)); #line 55 "..\..\..\MainWindow.xaml" this.Traffic.Click += new System.Windows.RoutedEventHandler(this.Traffic_Click); #line default #line hidden return; case 9: this.WorkLine = ((System.Windows.Controls.MenuItem)(target)); #line 60 "..\..\..\MainWindow.xaml" this.WorkLine.Click += new System.Windows.RoutedEventHandler(this.WorkLine_Click); #line default #line hidden return; case 10: this.DockArea = ((System.Windows.Controls.MenuItem)(target)); #line 65 "..\..\..\MainWindow.xaml" this.DockArea.Click += new System.Windows.RoutedEventHandler(this.DockArea_Click); #line default #line hidden return; case 11: this.MenuSystemManage = ((System.Windows.Controls.MenuItem)(target)); return; case 12: #line 72 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.UserManage_Click); #line default #line hidden return; case 13: #line 79 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PassWord_Click); #line default #line hidden return; case 14: #line 86 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exception_Click); #line default #line hidden return; case 15: #line 93 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click); #line default #line hidden return; case 16: #line 99 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click); #line default #line hidden return; case 17: this.lblTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 18: this.lblusername = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 19: this.imgSystem = ((System.Windows.Controls.Image)(target)); return; case 20: this.lblsystemstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 21: this.lblservicestate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 22: this.background = ((System.Windows.Controls.Image)(target)); return; case 23: this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target)); return; case 24: this.marquee = ((NS_Marquee.Marquee)(target)); return; case 25: this.dataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 26: this.expanderMain = ((System.Windows.Controls.Expander)(target)); #line 249 "..\..\..\MainWindow.xaml" this.expanderMain.MouseEnter += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseEnter); #line default #line hidden #line 249 "..\..\..\MainWindow.xaml" this.expanderMain.MouseLeave += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseLeave); #line default #line hidden return; case 27: this.textBlock12 = ((System.Windows.Controls.TextBlock)(target)); return; case 28: this.cb_AgvNum = ((System.Windows.Controls.ComboBox)(target)); #line 282 "..\..\..\MainWindow.xaml" this.cb_AgvNum.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_AgvNum_SelectionChanged); #line default #line hidden return; case 29: this.textBlock9 = ((System.Windows.Controls.TextBlock)(target)); return; case 30: this.cb_Operation = ((System.Windows.Controls.ComboBox)(target)); return; case 31: this.label1 = ((System.Windows.Controls.TextBlock)(target)); return; case 32: this.cb_Speed = ((System.Windows.Controls.ComboBox)(target)); return; case 33: this.textBlock11 = ((System.Windows.Controls.TextBlock)(target)); return; case 34: this.cb_LineNum = ((System.Windows.Controls.ComboBox)(target)); return; case 35: this.btnControl = ((System.Windows.Controls.Button)(target)); #line 303 "..\..\..\MainWindow.xaml" this.btnControl.Click += new System.Windows.RoutedEventHandler(this.btnControl_Click); #line default #line hidden return; case 36: this.cbautoshift = ((System.Windows.Controls.CheckBox)(target)); #line 311 "..\..\..\MainWindow.xaml" this.cbautoshift.Checked += new System.Windows.RoutedEventHandler(this.cbautoshift_Checked); #line default #line hidden #line 311 "..\..\..\MainWindow.xaml" this.cbautoshift.Unchecked += new System.Windows.RoutedEventHandler(this.cbautoshift_Unchecked); #line default #line hidden return; case 37: this.tbpageinterval = ((System.Windows.Controls.TextBox)(target)); #line 314 "..\..\..\MainWindow.xaml" this.tbpageinterval.AddHandler(System.Windows.DataObject.PastingEvent, new System.Windows.DataObjectPastingEventHandler(this.tbpageinterval_Pasting)); #line default #line hidden #line 314 "..\..\..\MainWindow.xaml" this.tbpageinterval.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.tbpageinterval_PreviewKeyDown); #line default #line hidden #line 314 "..\..\..\MainWindow.xaml" this.tbpageinterval.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.tbpageinterval_PreviewTextInput); #line default #line hidden #line 314 "..\..\..\MainWindow.xaml" this.tbpageinterval.LostFocus += new System.Windows.RoutedEventHandler(this.tbpageinterval_LostFocus); #line default #line hidden return; case 38: this.btn_OpenSystem = ((System.Windows.Controls.Button)(target)); #line 327 "..\..\..\MainWindow.xaml" this.btn_OpenSystem.Click += new System.Windows.RoutedEventHandler(this.btn_OpenSystem_Click); #line default #line hidden return; case 39: this.btn_CloseSystem = ((System.Windows.Controls.Button)(target)); #line 328 "..\..\..\MainWindow.xaml" this.btn_CloseSystem.Click += new System.Windows.RoutedEventHandler(this.btn_CloseSystem_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void ZoomableCanvas_Loaded(object sender, RoutedEventArgs e) { // Store the canvas in a local variable since x:Name doesn't work. zoomCanvas = (ZoomableCanvas)sender; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\RouteManage.xaml" ((AGV_WPF.RouteManage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded); #line default #line hidden #line 9 "..\..\..\RouteManage.xaml" ((AGV_WPF.RouteManage)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Page_Unloaded); #line default #line hidden return; case 2: this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target)); return; case 3: this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target)); #line 27 "..\..\..\RouteManage.xaml" this.dataGrid1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGrid1_SelectionChanged); #line default #line hidden return; case 4: this.ModifyRecord = ((System.Windows.Controls.Button)(target)); #line 44 "..\..\..\RouteManage.xaml" this.ModifyRecord.Click += new System.Windows.RoutedEventHandler(this.ModifyRecord_Click); #line default #line hidden return; case 5: this.DeleteRecord = ((System.Windows.Controls.Button)(target)); #line 45 "..\..\..\RouteManage.xaml" this.DeleteRecord.Click += new System.Windows.RoutedEventHandler(this.DeleteRecord_Click); #line default #line hidden return; case 6: this.DeleteAll = ((System.Windows.Controls.Button)(target)); #line 46 "..\..\..\RouteManage.xaml" this.DeleteAll.Click += new System.Windows.RoutedEventHandler(this.DeleteAll_Click); #line default #line hidden return; case 7: this.CopyRoute = ((System.Windows.Controls.Button)(target)); #line 47 "..\..\..\RouteManage.xaml" this.CopyRoute.Click += new System.Windows.RoutedEventHandler(this.CopyRoute_Click); #line default #line hidden return; case 8: this.cbRoute = ((System.Windows.Controls.ComboBox)(target)); #line 48 "..\..\..\RouteManage.xaml" this.cbRoute.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbRoute_SelectionChanged); #line default #line hidden return; case 9: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 10: this.labelOrder = ((System.Windows.Controls.Label)(target)); return; case 11: this.labelMarkID = ((System.Windows.Controls.Label)(target)); return; case 12: this.tbOrder = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.tbMarkID = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.btnAdd = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\..\RouteManage.xaml" this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click); #line default #line hidden return; case 15: this.labelDistance = ((System.Windows.Controls.Label)(target)); return; case 16: this.tbDistance = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.labelNewRoute = ((System.Windows.Controls.Label)(target)); return; case 18: this.tbNewRoute = ((System.Windows.Controls.TextBox)(target)); return; case 19: this.btn_Shift = ((System.Windows.Controls.Button)(target)); #line 59 "..\..\..\RouteManage.xaml" this.btn_Shift.Click += new System.Windows.RoutedEventHandler(this.btn_Shift_Click); #line default #line hidden return; case 20: this.labelWorkLine = ((System.Windows.Controls.Label)(target)); return; case 21: this.cbWorkLine = ((System.Windows.Controls.ComboBox)(target)); return; case 22: this.labelMark = ((System.Windows.Controls.Label)(target)); return; case 23: this.tbMark = ((System.Windows.Controls.TextBox)(target)); return; case 24: this.CancelCopy = ((System.Windows.Controls.Button)(target)); #line 64 "..\..\..\RouteManage.xaml" this.CancelCopy.Click += new System.Windows.RoutedEventHandler(this.CancelCopy_Click); #line default #line hidden return; case 25: this.cbRoute_WorkLine = ((System.Windows.Controls.ComboBox)(target)); #line 65 "..\..\..\RouteManage.xaml" this.cbRoute_WorkLine.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbRoute_WorkLine_SelectionChanged); #line default #line hidden return; case 26: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 27: this.EVirtualMark = ((System.Windows.Shapes.Ellipse)(target)); #line 69 "..\..\..\RouteManage.xaml" this.EVirtualMark.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.EVirtualMark_MouseLeftButtonDown); #line default #line hidden return; case 28: this.ENotVirtualMark = ((System.Windows.Shapes.Ellipse)(target)); #line 70 "..\..\..\RouteManage.xaml" this.ENotVirtualMark.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ENotVirtualMark_MouseLeftButtonDown); #line default #line hidden return; case 29: this.label6 = ((System.Windows.Controls.Label)(target)); return; case 30: this.label7 = ((System.Windows.Controls.Label)(target)); return; case 31: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 32: this.RecRoute = ((System.Windows.Shapes.Rectangle)(target)); #line 74 "..\..\..\RouteManage.xaml" this.RecRoute.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.RecRoute_MouseLeftButtonDown); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\TrafficManage.xaml" ((AGV_WPF.TrafficManage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded); #line default #line hidden #line 9 "..\..\..\TrafficManage.xaml" ((AGV_WPF.TrafficManage)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Page_Unloaded); #line default #line hidden return; case 2: this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target)); return; case 3: this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target)); #line 30 "..\..\..\TrafficManage.xaml" this.dataGrid1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGrid1_SelectionChanged); #line default #line hidden return; case 4: this.groupBox1 = ((System.Windows.Controls.GroupBox)(target)); return; case 5: this.tbMark = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.labelMark = ((System.Windows.Controls.Label)(target)); return; case 7: this.cbWorkLine = ((System.Windows.Controls.ComboBox)(target)); return; case 8: this.labelWorkLine = ((System.Windows.Controls.Label)(target)); return; case 9: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 10: this.labelMarkID = ((System.Windows.Controls.Label)(target)); return; case 11: this.btn_Shift = ((System.Windows.Controls.Button)(target)); #line 46 "..\..\..\TrafficManage.xaml" this.btn_Shift.Click += new System.Windows.RoutedEventHandler(this.btn_Shift_Click); #line default #line hidden return; case 12: this.tbMarkID = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.cbTraffic = ((System.Windows.Controls.ComboBox)(target)); #line 50 "..\..\..\TrafficManage.xaml" this.cbTraffic.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbTraffic_SelectionChanged); #line default #line hidden return; case 14: this.btnDeleteTraffic = ((System.Windows.Controls.Button)(target)); #line 51 "..\..\..\TrafficManage.xaml" this.btnDeleteTraffic.Click += new System.Windows.RoutedEventHandler(this.btnDeleteTraffic_Click); #line default #line hidden return; case 15: this.btnAdd = ((System.Windows.Controls.Button)(target)); #line 52 "..\..\..\TrafficManage.xaml" this.btnAdd.Click += new System.Windows.RoutedEventHandler(this.btnAdd_Click); #line default #line hidden return; case 16: this.btnModify = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\..\TrafficManage.xaml" this.btnModify.Click += new System.Windows.RoutedEventHandler(this.btnModify_Click); #line default #line hidden return; case 17: this.btnDelete = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\..\TrafficManage.xaml" this.btnDelete.Click += new System.Windows.RoutedEventHandler(this.btnDelete_Click); #line default #line hidden return; case 18: this.EVirtualMark = ((System.Windows.Shapes.Ellipse)(target)); #line 55 "..\..\..\TrafficManage.xaml" this.EVirtualMark.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.EVirtualMark_MouseLeftButtonDown); #line default #line hidden return; case 19: this.ENotVirtualMark = ((System.Windows.Shapes.Ellipse)(target)); #line 56 "..\..\..\TrafficManage.xaml" this.ENotVirtualMark.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ENotVirtualMark_MouseLeftButtonDown); #line default #line hidden return; case 20: this.label6 = ((System.Windows.Controls.Label)(target)); return; case 21: this.label7 = ((System.Windows.Controls.Label)(target)); return; case 22: this.textBlock1 = ((System.Windows.Controls.TextBlock)(target)); return; case 23: this.ETrafficMark = ((System.Windows.Shapes.Ellipse)(target)); #line 60 "..\..\..\TrafficManage.xaml" this.ETrafficMark.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ETrafficMark_MouseLeftButtonDown); #line default #line hidden return; case 24: this.label1 = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\MainWindow - 复制.xaml" ((AGV_WPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 9 "..\..\..\MainWindow - 复制.xaml" ((AGV_WPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.scrolls = ((System.Windows.Controls.ScrollViewer)(target)); return; case 3: this.numberedItemsStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 4: this._loading = ((NS_LoadingWait.LoadingWait)(target)); return; case 5: this.dockPanel1 = ((System.Windows.Controls.DockPanel)(target)); return; case 6: this.menu = ((System.Windows.Controls.Menu)(target)); return; case 7: this.MenuAGVManager = ((System.Windows.Controls.MenuItem)(target)); return; case 8: this.AGVPara = ((System.Windows.Controls.MenuItem)(target)); #line 31 "..\..\..\MainWindow - 复制.xaml" this.AGVPara.Click += new System.Windows.RoutedEventHandler(this.AGVPara_Click); #line default #line hidden return; case 9: this.Mark = ((System.Windows.Controls.MenuItem)(target)); #line 36 "..\..\..\MainWindow - 复制.xaml" this.Mark.Click += new System.Windows.RoutedEventHandler(this.Mark_Click); #line default #line hidden return; case 10: this.Route = ((System.Windows.Controls.MenuItem)(target)); #line 41 "..\..\..\MainWindow - 复制.xaml" this.Route.Click += new System.Windows.RoutedEventHandler(this.Route_Click); #line default #line hidden return; case 11: this.Traffic = ((System.Windows.Controls.MenuItem)(target)); #line 46 "..\..\..\MainWindow - 复制.xaml" this.Traffic.Click += new System.Windows.RoutedEventHandler(this.Traffic_Click); #line default #line hidden return; case 12: this.WorkLine = ((System.Windows.Controls.MenuItem)(target)); #line 51 "..\..\..\MainWindow - 复制.xaml" this.WorkLine.Click += new System.Windows.RoutedEventHandler(this.WorkLine_Click); #line default #line hidden return; case 13: this.DockArea = ((System.Windows.Controls.MenuItem)(target)); #line 56 "..\..\..\MainWindow - 复制.xaml" this.DockArea.Click += new System.Windows.RoutedEventHandler(this.DockArea_Click); #line default #line hidden return; case 14: this.ChargeArea = ((System.Windows.Controls.MenuItem)(target)); #line 61 "..\..\..\MainWindow - 复制.xaml" this.ChargeArea.Click += new System.Windows.RoutedEventHandler(this.ChargeArea_Click); #line default #line hidden return; case 15: this.Speed = ((System.Windows.Controls.MenuItem)(target)); #line 66 "..\..\..\MainWindow - 复制.xaml" this.Speed.Click += new System.Windows.RoutedEventHandler(this.Speed_Click); #line default #line hidden return; case 16: this.Custom = ((System.Windows.Controls.MenuItem)(target)); #line 71 "..\..\..\MainWindow - 复制.xaml" this.Custom.Click += new System.Windows.RoutedEventHandler(this.Custom_Click); #line default #line hidden return; case 17: this.MenuCallManage = ((System.Windows.Controls.MenuItem)(target)); return; case 18: #line 78 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallManage_Click); #line default #line hidden return; case 19: #line 83 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallAddressSet_Click); #line default #line hidden return; case 20: this.MenuSystemManage = ((System.Windows.Controls.MenuItem)(target)); return; case 21: #line 90 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.UserManage_Click); #line default #line hidden return; case 22: this.MenuSettings = ((System.Windows.Controls.MenuItem)(target)); return; case 23: this.ControlCOM = ((System.Windows.Controls.MenuItem)(target)); #line 97 "..\..\..\MainWindow - 复制.xaml" this.ControlCOM.Click += new System.Windows.RoutedEventHandler(this.ControlCOM_Click); #line default #line hidden return; case 24: this.MCallCOM = ((System.Windows.Controls.MenuItem)(target)); #line 102 "..\..\..\MainWindow - 复制.xaml" this.MCallCOM.Click += new System.Windows.RoutedEventHandler(this.CallCOM_Click); #line default #line hidden return; case 25: #line 109 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PassWord_Click); #line default #line hidden return; case 26: #line 116 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exception_Click); #line default #line hidden return; case 27: #line 123 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click); #line default #line hidden return; case 28: this.lblTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 29: this.lblusername = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 30: this.imgSystem = ((System.Windows.Controls.Image)(target)); return; case 31: this.lblsystemstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 32: this.imgCOM = ((System.Windows.Controls.Image)(target)); return; case 33: this.lblcomstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 34: this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target)); return; case 35: this.mScaleTf = ((System.Windows.Media.ScaleTransform)(target)); return; case 36: this.mTranslateTf = ((System.Windows.Media.TranslateTransform)(target)); return; case 37: this.dataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 38: this.textBlock12 = ((System.Windows.Controls.TextBlock)(target)); return; case 39: this.cb_AgvNum = ((System.Windows.Controls.ComboBox)(target)); #line 309 "..\..\..\MainWindow - 复制.xaml" this.cb_AgvNum.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_AgvNum_SelectionChanged); #line default #line hidden return; case 40: this.textBlock9 = ((System.Windows.Controls.TextBlock)(target)); return; case 41: this.cb_Operation = ((System.Windows.Controls.ComboBox)(target)); return; case 42: this.label1 = ((System.Windows.Controls.TextBlock)(target)); return; case 43: this.cb_Speed = ((System.Windows.Controls.ComboBox)(target)); return; case 44: this.textBlock11 = ((System.Windows.Controls.TextBlock)(target)); return; case 45: this.cb_LineNum = ((System.Windows.Controls.ComboBox)(target)); return; case 46: this.btnControl = ((System.Windows.Controls.Button)(target)); #line 330 "..\..\..\MainWindow - 复制.xaml" this.btnControl.Click += new System.Windows.RoutedEventHandler(this.btnControl_Click); #line default #line hidden return; case 47: this.btn_OpenSystem = ((System.Windows.Controls.Button)(target)); #line 341 "..\..\..\MainWindow - 复制.xaml" this.btn_OpenSystem.Click += new System.Windows.RoutedEventHandler(this.btn_OpenSystem_Click); #line default #line hidden return; case 48: this.btn_CloseSystem = ((System.Windows.Controls.Button)(target)); #line 342 "..\..\..\MainWindow - 复制.xaml" this.btn_CloseSystem.Click += new System.Windows.RoutedEventHandler(this.btn_CloseSystem_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\MainWindow - 复制.xaml" ((AGV_WPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 10 "..\..\..\MainWindow - 复制.xaml" ((AGV_WPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this._loading = ((NS_LoadingWait.LoadingWait)(target)); return; case 3: this.menu = ((System.Windows.Controls.Menu)(target)); return; case 4: this.MenuAGVManager = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.AGVPara = ((System.Windows.Controls.MenuItem)(target)); #line 32 "..\..\..\MainWindow - 复制.xaml" this.AGVPara.Click += new System.Windows.RoutedEventHandler(this.AGVPara_Click); #line default #line hidden return; case 6: this.Mark = ((System.Windows.Controls.MenuItem)(target)); #line 37 "..\..\..\MainWindow - 复制.xaml" this.Mark.Click += new System.Windows.RoutedEventHandler(this.Mark_Click); #line default #line hidden return; case 7: this.Route = ((System.Windows.Controls.MenuItem)(target)); #line 42 "..\..\..\MainWindow - 复制.xaml" this.Route.Click += new System.Windows.RoutedEventHandler(this.Route_Click); #line default #line hidden return; case 8: this.Traffic = ((System.Windows.Controls.MenuItem)(target)); #line 47 "..\..\..\MainWindow - 复制.xaml" this.Traffic.Click += new System.Windows.RoutedEventHandler(this.Traffic_Click); #line default #line hidden return; case 9: this.WorkLine = ((System.Windows.Controls.MenuItem)(target)); #line 52 "..\..\..\MainWindow - 复制.xaml" this.WorkLine.Click += new System.Windows.RoutedEventHandler(this.WorkLine_Click); #line default #line hidden return; case 10: this.DockArea = ((System.Windows.Controls.MenuItem)(target)); #line 57 "..\..\..\MainWindow - 复制.xaml" this.DockArea.Click += new System.Windows.RoutedEventHandler(this.DockArea_Click); #line default #line hidden return; case 11: this.ChargeArea = ((System.Windows.Controls.MenuItem)(target)); #line 62 "..\..\..\MainWindow - 复制.xaml" this.ChargeArea.Click += new System.Windows.RoutedEventHandler(this.ChargeArea_Click); #line default #line hidden return; case 12: this.Speed = ((System.Windows.Controls.MenuItem)(target)); #line 67 "..\..\..\MainWindow - 复制.xaml" this.Speed.Click += new System.Windows.RoutedEventHandler(this.Speed_Click); #line default #line hidden return; case 13: this.Custom = ((System.Windows.Controls.MenuItem)(target)); #line 72 "..\..\..\MainWindow - 复制.xaml" this.Custom.Click += new System.Windows.RoutedEventHandler(this.Custom_Click); #line default #line hidden return; case 14: this.MenuCallManage = ((System.Windows.Controls.MenuItem)(target)); return; case 15: #line 79 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallManage_Click); #line default #line hidden return; case 16: #line 84 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallAddressSet_Click); #line default #line hidden return; case 17: this.MenuSystemManage = ((System.Windows.Controls.MenuItem)(target)); return; case 18: #line 91 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.UserManage_Click); #line default #line hidden return; case 19: this.MenuSettings = ((System.Windows.Controls.MenuItem)(target)); return; case 20: this.ControlCOM = ((System.Windows.Controls.MenuItem)(target)); #line 98 "..\..\..\MainWindow - 复制.xaml" this.ControlCOM.Click += new System.Windows.RoutedEventHandler(this.ControlCOM_Click); #line default #line hidden return; case 21: this.MCallCOM = ((System.Windows.Controls.MenuItem)(target)); #line 103 "..\..\..\MainWindow - 复制.xaml" this.MCallCOM.Click += new System.Windows.RoutedEventHandler(this.CallCOM_Click); #line default #line hidden return; case 22: #line 110 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PassWord_Click); #line default #line hidden return; case 23: #line 117 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exception_Click); #line default #line hidden return; case 24: #line 124 "..\..\..\MainWindow - 复制.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click); #line default #line hidden return; case 25: this.lblTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 26: this.lblusername = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 27: this.imgSystem = ((System.Windows.Controls.Image)(target)); return; case 28: this.lblsystemstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 29: this.imgCOM = ((System.Windows.Controls.Image)(target)); return; case 30: this.lblcomstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 31: this.background = ((System.Windows.Controls.Image)(target)); return; case 32: this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target)); return; case 33: this.mScaleTf = ((System.Windows.Media.ScaleTransform)(target)); return; case 34: this.mTranslateTf = ((System.Windows.Media.TranslateTransform)(target)); return; case 35: this.marquee = ((NS_Marquee.Marquee)(target)); return; case 36: this.dataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 37: this.textBlock12 = ((System.Windows.Controls.TextBlock)(target)); return; case 38: this.cb_AgvNum = ((System.Windows.Controls.ComboBox)(target)); #line 374 "..\..\..\MainWindow - 复制.xaml" this.cb_AgvNum.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_AgvNum_SelectionChanged); #line default #line hidden return; case 39: this.textBlock9 = ((System.Windows.Controls.TextBlock)(target)); return; case 40: this.cb_Operation = ((System.Windows.Controls.ComboBox)(target)); return; case 41: this.label1 = ((System.Windows.Controls.TextBlock)(target)); return; case 42: this.cb_Speed = ((System.Windows.Controls.ComboBox)(target)); return; case 43: this.textBlock11 = ((System.Windows.Controls.TextBlock)(target)); return; case 44: this.cb_LineNum = ((System.Windows.Controls.ComboBox)(target)); return; case 45: this.btnControl = ((System.Windows.Controls.Button)(target)); #line 395 "..\..\..\MainWindow - 复制.xaml" this.btnControl.Click += new System.Windows.RoutedEventHandler(this.btnControl_Click); #line default #line hidden return; case 46: this.cbautoshift = ((System.Windows.Controls.CheckBox)(target)); #line 403 "..\..\..\MainWindow - 复制.xaml" this.cbautoshift.Checked += new System.Windows.RoutedEventHandler(this.cbautoshift_Checked); #line default #line hidden return; case 47: this.tbpageinterval = ((System.Windows.Controls.TextBox)(target)); return; case 48: this.btn_OpenSystem = ((System.Windows.Controls.Button)(target)); #line 419 "..\..\..\MainWindow - 复制.xaml" this.btn_OpenSystem.Click += new System.Windows.RoutedEventHandler(this.btn_OpenSystem_Click); #line default #line hidden return; case 49: this.btn_CloseSystem = ((System.Windows.Controls.Button)(target)); #line 420 "..\..\..\MainWindow - 复制.xaml" this.btn_CloseSystem.Click += new System.Windows.RoutedEventHandler(this.btn_CloseSystem_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void ZoomableCanvasLoaded(object sender, RoutedEventArgs e) { _zoomableCanvas = sender as ZoomableCanvas; if (_zoomableCanvas != null) { _zoomableCanvas.RealizationPriority = DispatcherPriority.Background; _zoomableCanvas.RealizationRate = 10; InitializeCanvas(); } }
public override void OnApplyTemplate() { base.OnApplyTemplate(); IsManipulationEnabled = true; _zoomableCanvas = this.GetTemplateChild("PATH_ZoomableCanvas") as ZoomableCanvas; MouseTouchDevice.RegisterEvents(_zoomableCanvas); _floorPlanImage = this.GetTemplateChild("FloorPlanImage") as Image; if (_floorPlanImage != null) { _floorPlanImage.SizeChanged += Image_SizeChanged; } _thumb = this.GetTemplateChild("HoverThumb") as Thumb; if (_thumb != null) { _thumb.DragDelta += OnThumbDragDelta; } _thumbCanvas = this.GetTemplateChild("ToolTipLocationPicker") as ZoomableCanvas; if (ToolTipLocation == null && _thumbCanvas != null) { _thumbCanvas.Visibility = System.Windows.Visibility.Collapsed; } DependencyPropertyDescriptor descriptor = DependencyPropertyDescriptor.FromProperty(ZoomableHeatMapControl.ScaleProperty, typeof(ZoomableHeatMapControl)); descriptor.AddValueChanged(this, new EventHandler(OnScaleChanged)); descriptor = DependencyPropertyDescriptor.FromProperty(ZoomableHeatMapControl.SaveImageFilePathProperty, typeof(ZoomableHeatMapControl)); descriptor.AddValueChanged(this, new EventHandler(OnImageFilePathChanged)); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\MainWindow.xaml" ((AGV_WPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 10 "..\..\..\MainWindow.xaml" ((AGV_WPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this._loading = ((NS_LoadingWait.LoadingWait)(target)); return; case 3: this.menu = ((System.Windows.Controls.Menu)(target)); return; case 4: this.MenuAGVManager = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.AGVPara = ((System.Windows.Controls.MenuItem)(target)); #line 40 "..\..\..\MainWindow.xaml" this.AGVPara.Click += new System.Windows.RoutedEventHandler(this.AGVPara_Click); #line default #line hidden return; case 6: this.Mark = ((System.Windows.Controls.MenuItem)(target)); #line 45 "..\..\..\MainWindow.xaml" this.Mark.Click += new System.Windows.RoutedEventHandler(this.Mark_Click); #line default #line hidden return; case 7: this.Route = ((System.Windows.Controls.MenuItem)(target)); #line 50 "..\..\..\MainWindow.xaml" this.Route.Click += new System.Windows.RoutedEventHandler(this.Route_Click); #line default #line hidden return; case 8: this.Traffic = ((System.Windows.Controls.MenuItem)(target)); #line 55 "..\..\..\MainWindow.xaml" this.Traffic.Click += new System.Windows.RoutedEventHandler(this.Traffic_Click); #line default #line hidden return; case 9: this.WorkLine = ((System.Windows.Controls.MenuItem)(target)); #line 60 "..\..\..\MainWindow.xaml" this.WorkLine.Click += new System.Windows.RoutedEventHandler(this.WorkLine_Click); #line default #line hidden return; case 10: this.DockArea = ((System.Windows.Controls.MenuItem)(target)); #line 65 "..\..\..\MainWindow.xaml" this.DockArea.Click += new System.Windows.RoutedEventHandler(this.DockArea_Click); #line default #line hidden return; case 11: this.ChargeArea = ((System.Windows.Controls.MenuItem)(target)); #line 70 "..\..\..\MainWindow.xaml" this.ChargeArea.Click += new System.Windows.RoutedEventHandler(this.ChargeArea_Click); #line default #line hidden return; case 12: this.Speed = ((System.Windows.Controls.MenuItem)(target)); #line 75 "..\..\..\MainWindow.xaml" this.Speed.Click += new System.Windows.RoutedEventHandler(this.Speed_Click); #line default #line hidden return; case 13: this.Custom = ((System.Windows.Controls.MenuItem)(target)); #line 80 "..\..\..\MainWindow.xaml" this.Custom.Click += new System.Windows.RoutedEventHandler(this.Custom_Click); #line default #line hidden return; case 14: this.MenuCallManage = ((System.Windows.Controls.MenuItem)(target)); return; case 15: #line 87 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallManage_Click); #line default #line hidden return; case 16: #line 92 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallAddressSet_Click); #line default #line hidden return; case 17: this.MenuSystemManage = ((System.Windows.Controls.MenuItem)(target)); return; case 18: #line 99 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.UserManage_Click); #line default #line hidden return; case 19: this.MenuSettings = ((System.Windows.Controls.MenuItem)(target)); return; case 20: this.ControlCOM = ((System.Windows.Controls.MenuItem)(target)); #line 106 "..\..\..\MainWindow.xaml" this.ControlCOM.Click += new System.Windows.RoutedEventHandler(this.ControlCOM_Click); #line default #line hidden return; case 21: this.MCallCOM = ((System.Windows.Controls.MenuItem)(target)); #line 111 "..\..\..\MainWindow.xaml" this.MCallCOM.Click += new System.Windows.RoutedEventHandler(this.CallCOM_Click); #line default #line hidden return; case 22: #line 118 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PassWord_Click); #line default #line hidden return; case 23: #line 125 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exception_Click); #line default #line hidden return; case 24: #line 132 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click); #line default #line hidden return; case 25: #line 138 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click); #line default #line hidden return; case 26: this.lblTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 27: this.lblusername = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 28: this.imgSystem = ((System.Windows.Controls.Image)(target)); return; case 29: this.lblsystemstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 30: this.imgCOM = ((System.Windows.Controls.Image)(target)); return; case 31: this.lblcomstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 32: this.imgService = ((System.Windows.Controls.Image)(target)); return; case 33: this.lblservicestate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 34: this.imgClient = ((System.Windows.Controls.Image)(target)); return; case 35: this.lblclientnum = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 36: this.background = ((System.Windows.Controls.Image)(target)); return; case 37: this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target)); return; case 38: this.marquee = ((NS_Marquee.Marquee)(target)); return; case 39: this.dataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 40: this.expanderMain = ((System.Windows.Controls.Expander)(target)); #line 301 "..\..\..\MainWindow.xaml" this.expanderMain.MouseEnter += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseEnter); #line default #line hidden #line 301 "..\..\..\MainWindow.xaml" this.expanderMain.MouseLeave += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseLeave); #line default #line hidden return; case 41: this.textBlock12 = ((System.Windows.Controls.TextBlock)(target)); return; case 42: this.cb_AgvNum = ((System.Windows.Controls.ComboBox)(target)); #line 334 "..\..\..\MainWindow.xaml" this.cb_AgvNum.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_AgvNum_SelectionChanged); #line default #line hidden return; case 43: this.textBlock9 = ((System.Windows.Controls.TextBlock)(target)); return; case 44: this.cb_Operation = ((System.Windows.Controls.ComboBox)(target)); return; case 45: this.label1 = ((System.Windows.Controls.TextBlock)(target)); return; case 46: this.cb_Speed = ((System.Windows.Controls.ComboBox)(target)); return; case 47: this.textBlock11 = ((System.Windows.Controls.TextBlock)(target)); return; case 48: this.cb_LineNum = ((System.Windows.Controls.ComboBox)(target)); return; case 49: this.btnControl = ((System.Windows.Controls.Button)(target)); #line 355 "..\..\..\MainWindow.xaml" this.btnControl.Click += new System.Windows.RoutedEventHandler(this.btnControl_Click); #line default #line hidden return; case 50: this.cbautoshift = ((System.Windows.Controls.CheckBox)(target)); #line 363 "..\..\..\MainWindow.xaml" this.cbautoshift.Checked += new System.Windows.RoutedEventHandler(this.cbautoshift_Checked); #line default #line hidden #line 363 "..\..\..\MainWindow.xaml" this.cbautoshift.Unchecked += new System.Windows.RoutedEventHandler(this.cbautoshift_Unchecked); #line default #line hidden return; case 51: this.tbpageinterval = ((System.Windows.Controls.TextBox)(target)); #line 366 "..\..\..\MainWindow.xaml" this.tbpageinterval.AddHandler(System.Windows.DataObject.PastingEvent, new System.Windows.DataObjectPastingEventHandler(this.tbpageinterval_Pasting)); #line default #line hidden #line 366 "..\..\..\MainWindow.xaml" this.tbpageinterval.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.tbpageinterval_PreviewKeyDown); #line default #line hidden #line 366 "..\..\..\MainWindow.xaml" this.tbpageinterval.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.tbpageinterval_PreviewTextInput); #line default #line hidden #line 366 "..\..\..\MainWindow.xaml" this.tbpageinterval.LostFocus += new System.Windows.RoutedEventHandler(this.tbpageinterval_LostFocus); #line default #line hidden return; case 52: this.btn_OpenSystem = ((System.Windows.Controls.Button)(target)); #line 379 "..\..\..\MainWindow.xaml" this.btn_OpenSystem.Click += new System.Windows.RoutedEventHandler(this.btn_OpenSystem_Click); #line default #line hidden return; case 53: this.btn_CloseSystem = ((System.Windows.Controls.Button)(target)); #line 380 "..\..\..\MainWindow.xaml" this.btn_CloseSystem.Click += new System.Windows.RoutedEventHandler(this.btn_CloseSystem_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void ProviniaCanvas_Loaded(object sender, RoutedEventArgs e) { // Store the canvas in a local variable since x:Name doesn't work. ProviniaCanvas = (ZoomableCanvas)sender; ProviniaCanvas.Offset = new Point(6000, 3000); // Set the canvas as the DataContext so our overlays can bind to it. DataContext = ProviniaCanvas; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\..\MarkManage.xaml" ((AGV_WPF.MarkManage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded); #line default #line hidden #line 8 "..\..\..\MarkManage.xaml" ((AGV_WPF.MarkManage)(target)).MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Page_MouseRightButtonDown); #line default #line hidden #line 8 "..\..\..\MarkManage.xaml" ((AGV_WPF.MarkManage)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Page_Unloaded); #line default #line hidden return; case 2: this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target)); return; case 3: this.EVirtualMark = ((System.Windows.Shapes.Ellipse)(target)); #line 27 "..\..\..\MarkManage.xaml" this.EVirtualMark.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.EVirtualMark_MouseLeftButtonDown); #line default #line hidden return; case 4: this.ENotVirtualMark = ((System.Windows.Shapes.Ellipse)(target)); #line 28 "..\..\..\MarkManage.xaml" this.ENotVirtualMark.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ENotVirtualMark_MouseLeftButtonDown); #line default #line hidden return; case 5: this.label6 = ((System.Windows.Controls.Label)(target)); return; case 6: this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target)); #line 30 "..\..\..\MarkManage.xaml" this.dataGrid1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dataGrid1_SelectionChanged); #line default #line hidden return; case 7: this.AddRecord = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\..\MarkManage.xaml" this.AddRecord.Click += new System.Windows.RoutedEventHandler(this.AddRecord_Click); #line default #line hidden return; case 8: this.ModifyRecord = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\..\MarkManage.xaml" this.ModifyRecord.Click += new System.Windows.RoutedEventHandler(this.ModifyRecord_Click); #line default #line hidden return; case 9: this.DeleteRecord = ((System.Windows.Controls.Button)(target)); #line 42 "..\..\..\MarkManage.xaml" this.DeleteRecord.Click += new System.Windows.RoutedEventHandler(this.DeleteRecord_Click); #line default #line hidden return; case 10: this.DeleteAll = ((System.Windows.Controls.Button)(target)); #line 43 "..\..\..\MarkManage.xaml" this.DeleteAll.Click += new System.Windows.RoutedEventHandler(this.DeleteAll_Click); #line default #line hidden return; case 11: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 12: this.tbWorkLine = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 14: this.tbMark = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.label4 = ((System.Windows.Controls.Label)(target)); return; case 16: this.tbXPos = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.tbYPos = ((System.Windows.Controls.TextBox)(target)); return; case 18: this.label3 = ((System.Windows.Controls.Label)(target)); return; case 19: this.rbIsVirtual = ((System.Windows.Controls.RadioButton)(target)); return; case 20: this.rbNotVirtual = ((System.Windows.Controls.RadioButton)(target)); return; case 21: this.label5 = ((System.Windows.Controls.Label)(target)); return; case 22: this.label7 = ((System.Windows.Controls.Label)(target)); return; case 23: this.btnQuickAdd = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\..\MarkManage.xaml" this.btnQuickAdd.Click += new System.Windows.RoutedEventHandler(this.btnQuickAdd_Click); #line default #line hidden return; case 24: this.btnQuickGet = ((System.Windows.Controls.Button)(target)); #line 57 "..\..\..\MarkManage.xaml" this.btnQuickGet.Click += new System.Windows.RoutedEventHandler(this.btnQuickGet_Click); #line default #line hidden return; case 25: this.groupBox1 = ((System.Windows.Controls.GroupBox)(target)); return; } this._contentLoaded = true; }
private void ZoomCanvas_Loaded(object sender, RoutedEventArgs e) { _zoomableCanvas = sender as ZoomableCanvas; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\GraphicPanelControl.xaml" ((MathGraphics.GraphicPanelControl)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden #line 10 "..\..\GraphicPanelControl.xaml" ((MathGraphics.GraphicPanelControl)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.UserControl_KeyDown); #line default #line hidden #line 10 "..\..\GraphicPanelControl.xaml" ((MathGraphics.GraphicPanelControl)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.UserControl_KeyUp); #line default #line hidden #line 10 "..\..\GraphicPanelControl.xaml" ((MathGraphics.GraphicPanelControl)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.UserControl_SizeChanged); #line default #line hidden return; case 2: this.userControlGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.drawCanvasParent = ((System.Windows.Controls.ScrollViewer)(target)); return; case 4: this.drawCanvas = ((System.Windows.Controls.ZoomableCanvas)(target)); #line 1386 "..\..\GraphicPanelControl.xaml" this.drawCanvas.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.DrawCanvas_MouseLeftButtonDown); #line default #line hidden #line 1386 "..\..\GraphicPanelControl.xaml" this.drawCanvas.MouseMove += new System.Windows.Input.MouseEventHandler(this.DrawCanvas_MouseMove); #line default #line hidden #line 1386 "..\..\GraphicPanelControl.xaml" this.drawCanvas.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.DrawCanvas_MouseLeftButtonUp); #line default #line hidden #line 1386 "..\..\GraphicPanelControl.xaml" this.drawCanvas.KeyDown += new System.Windows.Input.KeyEventHandler(this.drawCanvas_KeyDown); #line default #line hidden #line 1386 "..\..\GraphicPanelControl.xaml" this.drawCanvas.MouseEnter += new System.Windows.Input.MouseEventHandler(this.drawCanvas_MouseEnter); #line default #line hidden #line 1386 "..\..\GraphicPanelControl.xaml" this.drawCanvas.MouseLeave += new System.Windows.Input.MouseEventHandler(this.drawCanvas_MouseLeave); #line default #line hidden #line 1386 "..\..\GraphicPanelControl.xaml" this.drawCanvas.SizeChanged += new System.Windows.SizeChangedEventHandler(this.drawCanvas_SizeChanged); #line default #line hidden return; } this._contentLoaded = true; }