public void boardCanvas_MouseDown(object sender, MouseButtonEventArgs e) { boardCanvas.CaptureMouse(); sP = e.GetPosition(boardCanvas); newAtr.Color = (Color)colorStroke.SelectedColor; newAtr.Height = newAtr.Width = slider.Value; boardCanvas.DefaultDrawingAttributes = newAtr; if (tempTool == pencilImage.Name || tempTool == eraserImage.Name || tempTool == circleImage.Name || tempTool == rectangleImage.Name) { if (tempTool == circleImage.Name) { ellipse = new Ellipse(); } else if (tempTool == rectangleImage.Name) { rect = new Rectangle(); } } else if (tempTool == lineImage.Name) { line_C = new Line(); } else if (tempTool == textBoxImage.Name) { tB = new TextBox(); } //eP = new Point(0, 0); }
public DraggableCanvas() { m_handles = new Ellipse[4]; for (int i = 0; i < m_handles.Length; i++) { m_handles[i] = new Ellipse(); this.Children.Add(m_handles[i]); m_handles[i].Height = SizingHandleSize; m_handles[i].Width = SizingHandleSize; m_handles[i].StrokeThickness = 2; m_handles[i].Fill = new SolidColorBrush(Color.FromArgb(32, 255, 255, 255)); m_handles[i].Stroke = Brushes.Red; m_handles[i].Opacity = 0; m_handles[i].IsEnabled = false; Canvas.SetZIndex(m_handles[i], 100); } m_handles[(int)SizingHandles.TopLeft].Cursor = Cursors.SizeNWSE; m_handles[(int)SizingHandles.TopRight].Cursor = Cursors.SizeNESW; m_handles[(int)SizingHandles.BottomLeft].Cursor = Cursors.SizeNESW; m_handles[(int)SizingHandles.BottomRight].Cursor = Cursors.SizeNWSE; }
private async void ShowMyLocationOnTheMap() { // Get my current location. Geolocator myGeolocator = new Geolocator(); Geoposition myGeoposition = await myGeolocator.GetGeopositionAsync(); Geocoordinate myGeocoordinate = myGeoposition.Coordinate; GeoCoordinate myGeoCoordinate = CoordinateConverter.ConvertGeocoordinate(myGeocoordinate); // Make my current location the center of the Map. this.mapWithMyLocation.Center = myGeoCoordinate; this.mapWithMyLocation.ZoomLevel = 13; // Create a small circle to mark the current location. Ellipse myCircle = new Ellipse(); myCircle.Fill = new SolidColorBrush(Colors.Red); myCircle.Height = 20; myCircle.Width = 20; myCircle.Opacity = 50; // Create a MapOverlay to contain the circle. MapOverlay myLocationOverlay = new MapOverlay(); myLocationOverlay.Content = myCircle; myLocationOverlay.PositionOrigin = new Point(0.5, 0.5); myLocationOverlay.GeoCoordinate = myGeoCoordinate; // Create a MapLayer to contain the MapOverlay. MapLayer myLocationLayer = new MapLayer(); myLocationLayer.Add(myLocationOverlay); // Add the MapLayer to the Map. mapWithMyLocation.Layers.Add(myLocationLayer); txTop.Text = ("My Location - Lat " + myGeoCoordinate.Latitude.ToString("0.0000") + " Lon " + myGeoCoordinate.Longitude.ToString("0.0000")); }
public OrganismVisual(Organism source, Ellipse organism, Polygon sight, PointCollection boundaries, TextBlock energy) { this.source = source; source.OnDeath += source_OnDeath; this.organism = organism; this.boundaries = boundaries; this.energy = energy; organism.Dispatcher.Invoke(new Action(() => organism.Fill = new SolidColorBrush(Colors.Red))); organism.Dispatcher.Invoke(new Action(() => organism.Height = source.getSize())); organism.Dispatcher.Invoke(new Action(() => organism.Width = source.getSize())); this.sight = sight; sight.Dispatcher.Invoke(new Action(() => sight.Fill = new SolidColorBrush(Color.FromArgb(50, 200, 200, 200)))); sight.Dispatcher.Invoke(new Action(() => sight.Points = boundaries)); energy.Dispatcher.Invoke(new Action(() => energy.Foreground = new SolidColorBrush(Colors.White))); energy.Dispatcher.Invoke(new Action(() => energy.HorizontalAlignment = HorizontalAlignment.Center)); energy.Dispatcher.Invoke(new Action(() => energy.VerticalAlignment = VerticalAlignment.Center)); energy.Dispatcher.Invoke(new Action(() => energy.TextAlignment = TextAlignment.Center)); energy.Dispatcher.Invoke(new Action(() => energy.Height = 15)); energy.Dispatcher.Invoke(new Action(() => energy.Width = 40)); constructPointCollection(); }
void webClient_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e) { var rootObject = JsonConvert.DeserializeObject<Rootobject>(e.Result); double lat, longitude; MapPolyline line = new MapPolyline(); line.StrokeColor = Colors.Green; line.StrokeThickness = 2; double[] coord = new double[2 * rootObject.direction[0].stop.Length]; for (int i = 0; i < rootObject.direction[0].stop.Length; i++) { lat = Convert.ToDouble(rootObject.direction[0].stop[i].stop_lat); longitude = Convert.ToDouble(rootObject.direction[0].stop[i].stop_lon); line.Path.Add(new GeoCoordinate(lat, longitude)); Ellipse myCircle = new Ellipse(); myCircle.Fill = new SolidColorBrush(Colors.Green); myCircle.Height = 15; myCircle.Width = 15; myCircle.Opacity = 60; MapOverlay myLocationOverlay = new MapOverlay(); myLocationOverlay.Content = myCircle; myLocationOverlay.PositionOrigin = new Point(0.5, 0.5); myLocationOverlay.GeoCoordinate = new GeoCoordinate(lat, longitude, 200); MapLayer myLocationLayer = new MapLayer(); myLocationLayer.Add(myLocationOverlay); map.Layers.Add(myLocationLayer); } map.MapElements.Add(line); }
public MensSpeler() : base() { kleur = "Red"; bol = new Ellipse(); bol.Fill = new SolidColorBrush((Color)ColorConverter.ConvertFromString(kleur)); bol.Width = grote; bol.Height = grote; xRand = new Random(); yRand = new Random(); positie.X = xRand.Next(0, 631); positie.Y = yRand.Next(0, 278); xChange = xRand.Next(-2, 2); while(xChange == 0) { xChange = xRand.Next(-2, 2); } yChange = yRand.Next(-2, 2); while (xChange == 0) { yChange = yRand.Next(-2, 2); } }
private void canvasDrawingArea_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { Shape shapeToRender = null; // Configure the correct shape to draw. switch (currentShape) { case SelectedShape.Circle: shapeToRender = new Ellipse() { Fill = Brushes.Green, Height = 35, Width = 35 }; break; case SelectedShape.Rectangle: shapeToRender = new Rectangle() { Fill = Brushes.Red, Height = 35, Width = 35, RadiusX = 10, RadiusY = 10 }; break; case SelectedShape.Line: shapeToRender = new Line() { Fill = Brushes.Blue, StrokeThickness = 10, X1 = 0, X2 = 50, Y1 = 0, Y2 = 50 }; break; default: return; } // Set top/left position to draw in the canvas. Canvas.SetLeft(shapeToRender, e.GetPosition(canvasDrawingArea).X); Canvas.SetTop(shapeToRender, e.GetPosition(canvasDrawingArea).Y); // Draw shape! canvasDrawingArea.Children.Add(shapeToRender); }
void Update(CallTreeNodeViewModel item) { Debug.WriteLine("RingDiagram.Update: new root = " + item); task.Cancel(); Debug.WriteLine("hierarchyStack count: " + hierarchyStack.Count); while (hierarchyStack.Count > 0 && !hierarchyStack.Peek().IsAncestorOf(item)) { hierarchyStack.Pop(); } Debug.Assert(hierarchyStack.Count == 0 || hierarchyStack.Peek().IsAncestorOf(item)); Children.Clear(); if (item == null) return; List<Shape> newItems = new List<Shape>(); Ellipse ell = new Ellipse(); ell.Width = 40; ell.Height = 40; ell.VerticalAlignment = VerticalAlignment.Center; ell.HorizontalAlignment = HorizontalAlignment.Center; ell.Fill = Brushes.Gray; ell.Stroke = Brushes.Black; ell.ToolTip = item.CreateToolTip(Translation); ell.Tag = item; ell.MouseLeftButtonDown += (sender, e) => { if (hierarchyStack.Count > 1 && hierarchyStack.Peek().Level > 1) { var oldItem = hierarchyStack.Pop(); SelectedRoot = hierarchyStack.Peek(); SelectedRoot.IsSelected = true; SelectedRoot.IsExpanded = true; oldItem.IsSelected = false; } }; if (hierarchyStack.Count == 0 || hierarchyStack.Peek() != item) hierarchyStack.Push(item); List<PiePieceDescriptor> pieces = new List<PiePieceDescriptor>(); task.Execute( () => { if (item.CpuCyclesSpent > 0) CreateTree(pieces, item, 0, item.CpuCyclesSpent, 0); }, () => { Children.Add(ell); Children.AddRange(pieces.Select(p => CreatePiePiece(p.Radius, p.WedgeAngle, p.RotationAngle, p.Level, p.Node))); item.BringIntoView(); }, delegate { } ); }
/// <summary> /// Método que obtiene una instancia 'Player' a partir de un Ellipse /// </summary> /// <param name="ellipse">Instancia Ellipse que será representada como clase 'Player'</param> /// <returns>Instancia Player</returns> public static Player GetMovingPlayer(Ellipse ellipse) { Player currentPlayer = new Player(); // Se obtiene el color del ellipse SolidColorBrush brush = ellipse.Fill as SolidColorBrush; // Color que se comparará con el del Ellipse Color colorToCompare = new Color() { A=255, B=170, G=178, R=32 }; if (brush.Color == colorToCompare) { // Es el jugador 1 currentPlayer.PlayerNumber = PlayerNum.PlayerOne; } else { // Es el jugador 2 currentPlayer.PlayerNumber = PlayerNum.PlayerTwo; } // Se guarda el Ellipse en la instancia Player currentPlayer.Shape = ellipse; return currentPlayer; }
private void AddPoint(Map controlMap, GeoCoordinate geo) { // With the new Map control: // Map -> MapLayer -> MapOverlay -> UIElements // - Add a MapLayer to the Map // - Add an MapOverlay to that layer // - We can add a single UIElement to that MapOverlay.Content MapLayer ml = new MapLayer(); MapOverlay mo = new MapOverlay(); // Add an Ellipse UI Ellipse r = new Ellipse(); r.Fill = new SolidColorBrush(Color.FromArgb(255, 240, 5, 5)); // the item is placed on the map at the top left corner so // in order to center it, we change the margin to a negative // margin equal to half the width and height r.Width = r.Height = 12; r.Margin = new Thickness(-6, -6, 0, 0); // Add the Ellipse to the Content mo.Content = r; // Set the GeoCoordinate of that content mo.GeoCoordinate = geo; // Add the MapOverlay to the MapLayer ml.Add(mo); // Add the MapLayer to the Map controlMap.Layers.Add(ml); }
private void UpdateCircleColour(Brush brush, Ellipse circle) { if (!brush.Equals(Gray) && !circle.Fill.Equals(Gray)) circle.Fill = Violet; else circle.Fill = brush; }
public KinectController(DrawController dController, Image image, SoundController sController, Ellipse[] buttons) { debugImage = image; drawController = dController; soundController = sController; this.buttons = buttons; }
int trackedSkeletonsCount; // The number of skeletons that are recognized #endregion Fields #region Constructors public MainWindow() { box1 = new Box(); box1.Left = canvasWidth / 2 - box1.BoxRect.Width / 2; box1.Top = canvasHeight / 2 - box1.BoxRect.Height / 2; prevBox1 = new Box(); prevBox1.Left = canvasWidth / 2 - prevBox1.BoxRect.Width / 2; prevBox1.Top = canvasHeight / 2 - prevBox1.BoxRect.Height / 2; rightCircle = new Ellipse(); rightCircle.Stroke = System.Windows.Media.Brushes.MediumBlue; rightCircle.Fill = System.Windows.Media.Brushes.Black; rightCircle.Opacity = 0.8; rightCircle.StrokeThickness = 5; rightCircle.Width = 20f; rightCircle.Height = 20f; leftCircle = new Ellipse(); leftCircle.Stroke = System.Windows.Media.Brushes.Maroon; leftCircle.Fill = System.Windows.Media.Brushes.Black; leftCircle.Opacity = 0.8; leftCircle.StrokeThickness = 5; leftCircle.Width = 20f; leftCircle.Height = 20f; InitializeComponent(); setupKinect(); }
/// <summary> /// Initializes a new instance of the <see cref="MainWindow"/> class. /// </summary> public MainWindow() { this.InitializeComponent(); CompositionTarget.Rendering += this.CompositionTargetRendering; const int N = 9; for (int i = -N; i <= N; i++) { for (int j = -N; j <= N; j++) { var circle = new Ellipse { Width = 4, Height = 4, Fill = Brushes.Tomato }; var text = new TextBlock { Text = "(" + i + "," + j + ")" }; Overlay.SetPosition3D(circle, new Point3D(i, j, 0)); Overlay.SetPosition3D(text, new Point3D(i, j, 0)); this.overlay1.Children.Add(circle); this.overlay1.Children.Add(text); } } var text1 = new TextBlock { Text = "Hello world!", FontWeight = FontWeights.Bold, FontSize = 16, Foreground = Brushes.YellowGreen, Background = Brushes.Gray, Padding = new Thickness(4) }; Overlay.SetPosition3D(text1, new Point3D(0, 0, 10)); this.overlay1.Children.Add(text1); }
public Star() { centerX = 285; centerY = 285; starGFX = new Ellipse(); starSEL = new Ellipse(); starCanvas = new Canvas(); starLabel = new Label(); starSEL.Visibility = Visibility.Hidden; starGFX.Fill = backgroundBrush; starLabel.FontFamily = new FontFamily(new Uri("pack://application:,,,/Fonts/"), "./#Euro Caps"); starLabel.Foreground = backgroundBrush; starCanvas.Children.Add(starGFX); starCanvas.Children.Add(starLabel); starCanvas.Children.Add(starSEL); movePoint = new Point3D(0,0,0); rotaPoint = new Point3D(0,0,0); starCanvas.PreviewMouseDown += MoveToSystem; }
public void DrawTwoDPoints(IDictionary<int, string> graphInfo) { foreach (int k in graphInfo.Keys) { Ellipse e = new Ellipse() { Width = 20, Height = 20, Stroke = new SolidColorBrush(Colors.Black), StrokeThickness = 1, Name = k.ToString(), }; e.MouseEnter += new MouseEventHandler(EllipseHover); e.MouseLeave += new MouseEventHandler(EllipseMouseLeave); e.MouseLeftButtonDown += new MouseButtonEventHandler(EllipseClick); TwoDRepresentation.Children.Add(e); TwoDRepresenters.Add(k, e); e.AddEllipseToStoryBoard(); Fills.Add(k, new TwoColors()); Canvas c = new Canvas() { Visibility = Visibility.Collapsed, }; c.Children.Add(new TextBlock() { Text = graphInfo[k] }); TwoDInfo.Add(k, c); TwoDRepresentation.Children.Add(c); } }
//public void DrawDrawing(Drawing drawing); public void DrawEllipse(Brush brush, Pen pen, Point center, double radiusX, double radiusY) { Ellipse ellipse = new Ellipse(); SetupShape(ellipse, center.X - radiusX, center.Y - radiusY, radiusX * 2, radiusY * 2, brush, pen); ellipse.Fill = brush; _canvas.Children.Add(ellipse); }
public Star() { starColor = foregroundBrush; starGFX = new Ellipse(); starSEL = new Ellipse(); starCanvas = new Canvas(); starLabel = new Label(); starSEL.Visibility = Visibility.Hidden; starGFX.Fill = foregroundBrush; starLabel.FontFamily = new FontFamily(new Uri("pack://application:,,,/Fonts/"), "./#Euro Caps"); starLabel.Foreground = fontBrush; starCanvas.Children.Add(starLabel); starCanvas.Children.Add(starGFX); starCanvas.Children.Add(starSEL); movePoint = new Point3D(0,0,0); rotaPoint = new Point3D(0,0,0); starCanvas.MouseLeftButtonDown += SetSelection; starCanvas.MouseRightButtonDown +=TargetSelection; starCanvas.MouseEnter += ShowInfoSelection; starCanvas.MouseLeave += HideInfoSelection; }
public Board() { // Required to initialize variables InitializeComponent(); for (int y = 0; y < 6; y++) { for (int x = 0; x < 7; x++) { Ellipse ellipse = new Ellipse(); ellipse.Width = 32; ellipse.Height = 32; ellipse.Fill=blackBrush; ellipse.Stroke = borderBrush; ellipse.StrokeThickness = 3; Canvas.SetLeft(ellipse, 2 + x * 35); Canvas.SetTop(ellipse, 2 + y * 35); holes[x, y] = ellipse; LayoutRoot.Children.Add(ellipse); } } NewGame(); }
public Lock(Ellipse ellipse, Canvas canvas, double width) { _ellipse = ellipse; _canvas = canvas; _width = width; Position = 0; }
private void Window_Loaded(object sender, RoutedEventArgs e) { for (int i = 0; i < N; i++) { this.grid.RowDefinitions.Add(new RowDefinition()); } for (int i = 0; i < M; i++) { this.grid.ColumnDefinitions.Add(new ColumnDefinition()); } for (int i = 0; i < N; i++) { for (int j = 0; j < M; j++) { Ellipse ellipse = new Ellipse(); ellipse.Fill = Brushes.AliceBlue; ellipse.Stroke = Brushes.Black; ellipse.Margin = new Thickness(5); ellipse.MouseDown += ellipse_MouseDown; Grid.SetRow(ellipse, i); Grid.SetColumn(ellipse, j); this.grid.Children.Add(ellipse); } } }
void Plot(JointType centerID, JointType baseID, JointCollection joints) { float centerX; float centerY; GetCoordinates(centerID, joints, out centerX, out centerY); float baseX; float baseY; GetCoordinates(baseID, joints, out baseX, out baseY); double diameter = Math.Abs(baseY - centerY); Ellipse ellipse = new Ellipse { Width = diameter, Height = diameter, HorizontalAlignment = HorizontalAlignment.Left, VerticalAlignment = VerticalAlignment.Top, StrokeThickness = 4.0, Stroke = new SolidColorBrush(Colors.Green), StrokeLineJoin = PenLineJoin.Round }; Canvas.SetLeft(ellipse, centerX - ellipse.Width / 2); Canvas.SetTop(ellipse, centerY - ellipse.Height / 2); rootCanvas.Children.Add(ellipse); }
public MainWindow() { InitializeComponent(); ApplicationCommands.New.Text = "Новый"; ApplicationCommands.Open.Text = "Открыть..."; ApplicationCommands.Save.Text = "Сохранить как..."; ApplicationCommands.Close.Text = "Выход"; //ApplicationCommands.Close.InputGestures+= new InputGesture(); for (int i = 0; i < count; i++) { Ellipse ellipse = new Ellipse(); ellipse.Width = ellipse.Height = (100) * rand.NextDouble(); ellipse.Fill = Brushes.Silver; ellipse.Stroke = Brushes.Black; ellipse.MouseDown += Ellipse_MouseDown; stack_panel.Children.Add(ellipse); } /* // Построение начальнойтриангуляции для полосы. double r = 100000; ellipses.Add(new Circle(r, 0, 400 + r)); ellipses.Add(new Circle(r, -r, 0)); ellipses.Add(new Circle(r, 0, 200 - r)); triple = new Triple<Circle, DeloneCircle>(ellipses[0], ellipses[1], ellipses[2]); triple.CalculateDeloneCircle(); vd = new VD<Circle, DeloneCircle>(triple, null); BuildTriples(vd.triples, visual_triples.Data as GeometryGroup, true); */ //lv.DataContext = moves; }
private async void ShowMyLocationOnTheMap() { Geolocator myGeolocator = new Geolocator(); Geoposition myGeoposition = await myGeolocator.GetGeopositionAsync(); Geocoordinate myGeocoordinate = myGeoposition.Coordinate; GeoCoordinate myGeoCoordinate = CoordinateConverter.ConvertGeocoordinate(myGeocoordinate); this.BettingMap.Center = myGeoCoordinate; this.BettingMap.ZoomLevel = 15; Ellipse myCircle = new Ellipse(); myCircle.Fill = new SolidColorBrush(Colors.Blue); myCircle.Height = 20; myCircle.Width = 20; myCircle.Opacity = 50; MapOverlay myLocationOverlay = new MapOverlay(); myLocationOverlay.Content = myCircle; myLocationOverlay.PositionOrigin = new Point(0.5, 0.5); myLocationOverlay.GeoCoordinate = myGeoCoordinate; MapLayer myLocationLayer = new MapLayer(); myLocationLayer.Add(myLocationOverlay); BettingMap.Layers.Add(myLocationLayer); }
public TcpClientDebug(object obj) { Grid main_grid = obj as Grid; recv_box = main_grid.FindName("TcpClientReceiveControl") as TextBox; send_box = main_grid.FindName("TcpClientSendControl") as TextBox; led = main_grid.FindName("TcpClientStateLed") as Ellipse; }
protected override void OnRender(System.Windows.Media.DrawingContext drawingContext) { Random r = new Random(); Rect adornedElementRect = new Rect(this.AdornedElement.DesiredSize); Point stPt = new Point(adornedElementRect.X, adornedElementRect.Y); for (int x = 0; x < Number; x++) { Ellipse e = new Ellipse(); e.Width = 4; Brush b = new SolidColorBrush(new Color() { R =(byte) r.Next(0,255), G =(byte) r.Next(0,255),B =(byte) r.Next(0,255) }); Pen p = new Pen(Brushes.Black,1); int Rad = 3 ; drawingContext.DrawEllipse(b, p, stPt, Rad, Rad); stPt.X += (Rad * 2) + 1; if (stPt.X > adornedElementRect.Width) { stPt.X = 3; stPt.Y += 3; } } // Some arbitrary drawing implements. }
private Grid BuildAddButton() { Grid g = new Grid(); g.Width = 120; g.Height = 120; g.Margin = new Thickness(0, 0, 10, 10); Rectangle r = new Rectangle(); r.Fill = new SolidColorBrush(Color.FromArgb(0x33, 0xFF, 0xFF, 0xFF)); g.Children.Add(r); TextBlock t = new TextBlock(); t.Text = "+"; t.VerticalAlignment = VerticalAlignment.Center; t.HorizontalAlignment = HorizontalAlignment.Center; t.TextAlignment = TextAlignment.Center; t.FontSize = 60; t.Margin = new Thickness(0, -15, 0, 0); g.Children.Add(t); Ellipse e = new Ellipse(); e.Stroke = new SolidColorBrush(Colors.White); e.Fill = new SolidColorBrush(Colors.Transparent); e.StrokeThickness = 3; e.Margin = new Thickness(30); g.Children.Add(e); return g; }
public void DrawRpmCanvas(List<int> rpms, List<float> speeds) { _cachedRpms = rpms; _cachedSpeeds = speeds; RpmCanvas.Children.Clear(); if (rpms.Count == 0) { return; } int maxRpm = rpms.Max(); float maxSpeed = speeds.Max(); float yRatio = (CanvasHeight-40) / (float)maxRpm; float xRatio = (CanvasWidth-20) / (float)maxSpeed; for (int i = 0; i < rpms.Count; i++) { Ellipse e = new Ellipse(); e.Height = 2; e.Width = 2; e.Fill = Brushes.Blue; Canvas.SetTop(e, (CanvasHeight-40) - rpms[i] * yRatio); Canvas.SetLeft(e, speeds[i] * xRatio); RpmCanvas.Children.Add(e); } }
private void drawPoint(Point p, Canvas testCanvas) { //create shape System.Diagnostics.Debug.WriteLine("Creating shape"); Shape userShape; Shape shape = new Ellipse(); shape.SetValue(Canvas.LeftProperty, p.X); shape.SetValue(Canvas.TopProperty, p.Y); //shape.HorizontalAlignment = HorizontalAlignment.Left; //shape.VerticalAlignment = VerticalAlignment.Center; shape.Width = 4; shape.Height = 4; shape.Stroke = new SolidColorBrush(Colors.Black); shape.StrokeThickness = 3.0; GradientBrush gb = new LinearGradientBrush(); gb.GradientStops = new GradientStopCollection(); GradientStop g1 = new GradientStop(); g1.Color = Colors.Red; gb.GradientStops.Add(g1); g1 = new GradientStop(); g1.Color = Colors.Blue; g1.Offset = 2; gb.GradientStops.Add(g1); shape.Fill = gb; shape.Visibility = System.Windows.Visibility.Visible; shape.Opacity = 0.5; testCanvas.Children.Add(shape); }
public void Flush() { var thicknessAnimationUsingKeyFrames = new ThicknessAnimationUsingKeyFrames(); thicknessAnimationUsingKeyFrames.KeyFrames = new ThicknessKeyFrameCollection(); double delta = (Width - Height) / 2; var thicknessAnimation = new ThicknessAnimation() { From = new Thickness(delta, 0, delta, 0), To = new Thickness(delta - 500, -500, delta - 500, -500), Duration = new Duration(TimeSpan.FromSeconds(1)), AutoReverse = true }; thicknessAnimation.Completed += new EventHandler(animation_Completed); _flushEllipse = new Ellipse() { Fill = new SolidColorBrush(Colors.LightBlue), Stroke = new SolidColorBrush(Colors.Orange), StrokeThickness = 5, Opacity = 0.5 }; Children.Add(_flushEllipse); _flushEllipse.BeginAnimation(Ellipse.MarginProperty, thicknessAnimation); }
public static System.Windows.Shapes.Ellipse CircleRed() { System.Windows.Shapes.Ellipse Circle = new System.Windows.Shapes.Ellipse(); Circle.Width = 6; Circle.Height = 6; Circle.Stroke = Brushes.Red; Circle.StrokeThickness = 2; return(Circle); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\MainWindow.xaml" ((TradeLog.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.version = ((System.Windows.Documents.Run)(target)); return; case 3: this.loginbg = ((System.Windows.Shapes.Rectangle)(target)); return; case 4: this.passbg = ((System.Windows.Shapes.Rectangle)(target)); return; case 5: this.Login = ((System.Windows.Controls.Button)(target)); #line 119 "..\..\MainWindow.xaml" this.Login.Click += new System.Windows.RoutedEventHandler(this.Login_Click); #line default #line hidden return; case 6: this.Kilepes = ((System.Windows.Controls.Button)(target)); #line 120 "..\..\MainWindow.xaml" this.Kilepes.Click += new System.Windows.RoutedEventHandler(this.Kilepes_Click); #line default #line hidden return; case 7: #line 125 "..\..\MainWindow.xaml" ((System.Windows.Controls.Label)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_PreviewMouseDown); #line default #line hidden return; case 8: this.sql = ((System.Windows.Shapes.Ellipse)(target)); return; case 9: this.xml = ((System.Windows.Shapes.Ellipse)(target)); return; case 10: this.log = ((System.Windows.Controls.Label)(target)); return; case 11: this.password = ((System.Windows.Controls.PasswordBox)(target)); return; case 12: this.loginname = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.gridSplitter = ((System.Windows.Controls.GridSplitter)(target)); return; case 2: this.patient_button = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\..\..\pages\doctor\doctor_frame.xaml" this.patient_button.Click += new System.Windows.RoutedEventHandler(this.patient_button_Click); #line default #line hidden return; case 3: this.schedule_button = ((System.Windows.Controls.Button)(target)); #line 27 "..\..\..\..\pages\doctor\doctor_frame.xaml" this.schedule_button.Click += new System.Windows.RoutedEventHandler(this.schedule_button_Click); #line default #line hidden return; case 4: this.pharmacy_button = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\..\..\pages\doctor\doctor_frame.xaml" this.pharmacy_button.Click += new System.Windows.RoutedEventHandler(this.pharmacy_button_Click); #line default #line hidden return; case 5: this.appointments_button = ((System.Windows.Controls.Button)(target)); #line 55 "..\..\..\..\pages\doctor\doctor_frame.xaml" this.appointments_button.Click += new System.Windows.RoutedEventHandler(this.appointments_button_Click); #line default #line hidden return; case 6: this.image1 = ((System.Windows.Controls.Image)(target)); return; case 7: this.userLabel = ((System.Windows.Controls.Label)(target)); return; case 8: this.label1 = ((System.Windows.Controls.Label)(target)); #line 73 "..\..\..\..\pages\doctor\doctor_frame.xaml" this.label1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.label1_MouseLeftButtonDown); #line default #line hidden return; case 9: this.label2 = ((System.Windows.Controls.Label)(target)); return; case 10: this.settings = ((System.Windows.Controls.Button)(target)); #line 76 "..\..\..\..\pages\doctor\doctor_frame.xaml" this.settings.Click += new System.Windows.RoutedEventHandler(this.settings_Click); #line default #line hidden return; case 11: this.image = ((System.Windows.Controls.Image)(target)); return; case 12: this.statusText = ((System.Windows.Controls.Label)(target)); return; case 13: this.statusCircle = ((System.Windows.Shapes.Ellipse)(target)); return; case 14: this.searchBox = ((System.Windows.Controls.TextBox)(target)); #line 93 "..\..\..\..\pages\doctor\doctor_frame.xaml" this.searchBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.searchBox_KeyDown); #line default #line hidden return; case 15: this.searchBut = ((System.Windows.Controls.Label)(target)); #line 102 "..\..\..\..\pages\doctor\doctor_frame.xaml" this.searchBut.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.searchBut_Click); #line default #line hidden return; case 16: this.messages_button = ((System.Windows.Controls.Button)(target)); #line 107 "..\..\..\..\pages\doctor\doctor_frame.xaml" this.messages_button.Click += new System.Windows.RoutedEventHandler(this.messages_button_Click); #line default #line hidden return; case 17: this.pageTransitionControl = ((TeleMedTransition.PageTransition)(target)); return; } this._contentLoaded = true; }
private static Image <Hsv, Byte> processedred; //Casts bitmap to image<Hsv, byte> //Red Segmentation public static void Proc(BitmapSource Image, Canvas Canvas3, System.Windows.Controls.Image outputimage) { if (Image != null) { //Red Processing //Converts to image<> MemoryStream Streamred = new MemoryStream(); BitmapEncoder encodedred = new BmpBitmapEncoder(); encodedred.Frames.Add(BitmapFrame.Create(Image)); encodedred.Save(Streamred); System.Drawing.Bitmap myBmpred = new System.Drawing.Bitmap(Streamred); //Casts image to bitmap processedred = new Image <Hsv, Byte>(myBmpred); //Casts bitmap to image<Hsv, byte> //Main processing CvInvoke.Flip(processedred, processedred, Emgu.CV.CvEnum.FlipType.Horizontal); //Flips the image in the horizontal Image <Gray, Byte> Thrred; //Creates two Grayscale images that will be used when segmenting Thrred = processedred.InRange(new Hsv(165, 125, 120), new Hsv(180, 255, 255)); //Handles second range for RED //Handles noise and cleans image Mat kernel = Mat.Ones(3, 3, Emgu.CV.CvEnum.DepthType.Cv32F, 1); //Creates 3x3 kernelred for use as kernelred CvInvoke.MorphologyEx(Thrred, Thrred, Emgu.CV.CvEnum.MorphOp.Open, kernel, new System.Drawing.Point(0, 0), 1, Emgu.CV.CvEnum.BorderType.Default, new MCvScalar(1)); CvInvoke.MorphologyEx(Thrred, Thrred, Emgu.CV.CvEnum.MorphOp.Dilate, kernel, new System.Drawing.Point(0, 0), 1, Emgu.CV.CvEnum.BorderType.Default, new MCvScalar(1)); // Used to display red parts of original image //Extracts only RED parts from orignal image //Mat Mask; //Creates Mat for converting mask to Mat //Mask = Thrred.Mat; //Casts mask to Mat //Image<Hsv, byte> Redisolated = new Image<Hsv, byte>(processedred.Width, processedred.Height); //Creates Image<Hsv,byte> for final processedred image //CvInvoke.BitwiseAnd(processedred, processedred, Redisolated, Mask); //ANDS mask with orignal image to retain only portions that are RED //Extracts biggest blob //Variables double largestareared = 0; int largestcontourindexred = 0; Image <Hsv, Byte> Output = new Image <Hsv, Byte>(processedred.Width, processedred.Height); Image <Gray, Byte> ContourdrawnRed = new Image <Gray, Byte>(processedred.Width, processedred.Height); VectorOfVectorOfPoint ContoursRed = new VectorOfVectorOfPoint(); Mat HierarchyRed = new Mat(); //Processing CvInvoke.FindContours(Thrred, ContoursRed, HierarchyRed, Emgu.CV.CvEnum.RetrType.Ccomp, Emgu.CV.CvEnum.ChainApproxMethod.ChainApproxSimple); //Finds contours in image //Iterates through each contour for (int i = 0; i < ContoursRed.Size; i++) { double a = CvInvoke.ContourArea(ContoursRed[i], false); // Find the area of contour if (a > largestareared) { largestareared = a; largestcontourindexred = i; //Stores the index of largest contour boundingrectred = CvInvoke.BoundingRectangle(ContoursRed[i]); // Creates bounding rectangle for biggest contour } } //Compute centre of rectangle XRed = boundingrectred.X + (boundingrectred.Width / 2); YRed = boundingrectred.Y + (boundingrectred.Height / 2); //Old Method used for overlay //CvInvoke.DrawContours(processedred, ContoursRed, largestcontourindexred, new MCvScalar(255, 255, 255), 10, Emgu.CV.CvEnum.LineType.Filled, HierarchyRed, 0); //Draws biggest contour on blank image //processedred.Draw(boundingrectred,new Hsv(255,255,255), 3); //CvInvoke.Circle(processedred, new System.Drawing.Point(640-XRed, YRed), 4, new MCvScalar(255),2, Emgu.CV.CvEnum.LineType.Filled); //outputimage.Source = BitmapSourceConvert.ToBitmapSource1(processedred1); //Cleanup //Mask.Dispose(); Thrred.Dispose(); Streamred.Dispose(); myBmpred.Dispose(); //Blue Image <Gray, Byte> ThrBlue; //Creates two Grayscale images that will be used when segmenting ThrBlue = processedred.InRange(new Hsv(85, 110, 80), new Hsv(135, 230, 220)); //Handles second range for Blue //Handles noise and cleans image CvInvoke.MorphologyEx(ThrBlue, ThrBlue, Emgu.CV.CvEnum.MorphOp.Open, kernel, new System.Drawing.Point(0, 0), 1, Emgu.CV.CvEnum.BorderType.Default, new MCvScalar(1)); CvInvoke.MorphologyEx(ThrBlue, ThrBlue, Emgu.CV.CvEnum.MorphOp.Dilate, kernel, new System.Drawing.Point(0, 0), 1, Emgu.CV.CvEnum.BorderType.Default, new MCvScalar(1)); //Used to display blue parts of original image //Extracts only RED parts from orignal image //Mat Mask1; //Creates Mat for converting mask to Mat //Mask1 = ThrBlue.Mat; //Casts mask to Mat //Image<Hsv, byte> Bluleisolated = new Image<Hsv, byte>(processedred.Width, processedred.Height); //Creates Image<Hsv,byte> for final processedred image //CvInvoke.BitwiseAnd(processedred, processedred, Redisolated, Mask); //ANDS mask with orignal image to retain only portions that are RED //Extracts biggest blob //Variables double LargestAreaBlue = 0; int LargestContourIndexBlue = 0; MCvPoint2D64f CenterBlue = new MCvPoint2D64f(0, 0); Image <Gray, Byte> ContourDrawnBlue = new Image <Gray, Byte>(processedred.Width, processedred.Height); VectorOfVectorOfPoint ContoursBlue = new VectorOfVectorOfPoint(); Moments MomentsBlue = new Moments(); Mat HierarchyBlue = new Mat(); //Processing CvInvoke.FindContours(ThrBlue, ContoursBlue, HierarchyBlue, Emgu.CV.CvEnum.RetrType.Ccomp, Emgu.CV.CvEnum.ChainApproxMethod.ChainApproxSimple); //Finds contours in image //Iterates through each contour for (int i = 0; i < ContoursBlue.Size; i++) { double a = CvInvoke.ContourArea(ContoursBlue[i], false); // Find the area of contour if (a > LargestAreaBlue) { LargestAreaBlue = a; LargestContourIndexBlue = i; //Stores the index of largest contour boundingrectBlue = CvInvoke.BoundingRectangle(ContoursBlue[LargestContourIndexBlue]); // Creates bounding rectangle for biggest contour } } //Compute center of rectangle XBlue = boundingrectBlue.X + boundingrectBlue.Width / 2; YBlue = boundingrectBlue.Y + boundingrectBlue.Height / 2; //Cleanup //Mask1.Dispose(); ThrBlue.Dispose(); //Add point to images Canvas3.Children.Clear(); System.Windows.Shapes.Ellipse PointRed = CreateEllipse.CircleRed(); System.Windows.Shapes.Ellipse PointBlue = CreateEllipse.CircleBlue(); Canvas3.Children.Add(PointRed); Canvas3.Children.Add(PointBlue); PointRed.SetValue(Canvas.LeftProperty, (640 - XRed) * .6); //0.6 used as the stream sizes are 0.6 times the actual resolution PointRed.SetValue(Canvas.TopProperty, YRed * .6); PointBlue.SetValue(Canvas.LeftProperty, (640 - XBlue) * .6); PointBlue.SetValue(Canvas.TopProperty, YBlue * .6); return; } else { return; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.light = ((System.Windows.Shapes.Ellipse)(target)); return; case 2: this.SPortNoCombox = ((System.Windows.Controls.ComboBox)(target)); return; case 3: this.SPortBRCombox = ((System.Windows.Controls.ComboBox)(target)); return; case 4: this.SPortParityCombox = ((System.Windows.Controls.ComboBox)(target)); return; case 5: this.SPortStopbitCombox = ((System.Windows.Controls.ComboBox)(target)); return; case 6: this.btnOpenPort = ((System.Windows.Controls.Button)(target)); #line 55 "..\..\..\..\Pages\Settings\SetParam.xaml" this.btnOpenPort.Click += new System.Windows.RoutedEventHandler(this.btnOpenPort_Click); #line default #line hidden return; case 7: this.SpdTab = ((System.Windows.Controls.TabItem)(target)); return; case 8: this.dataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 9: this.curvePlot = ((Microsoft.Research.DynamicDataDisplay.ChartPlotter)(target)); return; case 10: this.setSpeedBtn = ((System.Windows.Controls.Button)(target)); #line 83 "..\..\..\..\Pages\Settings\SetParam.xaml" this.setSpeedBtn.Click += new System.Windows.RoutedEventHandler(this.setSpeedBtn_Click); #line default #line hidden return; case 11: this.spBox = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.stopMotoBtn = ((System.Windows.Controls.Button)(target)); #line 85 "..\..\..\..\Pages\Settings\SetParam.xaml" this.stopMotoBtn.Click += new System.Windows.RoutedEventHandler(this.stopMotoBtn_Click); #line default #line hidden return; case 13: this.constSpChecBox = ((System.Windows.Controls.CheckBox)(target)); #line 86 "..\..\..\..\Pages\Settings\SetParam.xaml" this.constSpChecBox.Unchecked += new System.Windows.RoutedEventHandler(this.constSpChecBox_Unchecked); #line default #line hidden #line 86 "..\..\..\..\Pages\Settings\SetParam.xaml" this.constSpChecBox.Checked += new System.Windows.RoutedEventHandler(this.constSpChecBox_Checked); #line default #line hidden return; case 14: this.svCurBtn = ((System.Windows.Controls.Button)(target)); #line 87 "..\..\..\..\Pages\Settings\SetParam.xaml" this.svCurBtn.Click += new System.Windows.RoutedEventHandler(this.svCurBtn_Click); #line default #line hidden return; case 15: this.impCurBtn = ((System.Windows.Controls.Button)(target)); #line 88 "..\..\..\..\Pages\Settings\SetParam.xaml" this.impCurBtn.Click += new System.Windows.RoutedEventHandler(this.impCurBtn_Click); #line default #line hidden return; case 16: this.clearBtn = ((System.Windows.Controls.Button)(target)); #line 89 "..\..\..\..\Pages\Settings\SetParam.xaml" this.clearBtn.Click += new System.Windows.RoutedEventHandler(this.clearBtn_Click); #line default #line hidden return; case 17: this.startMotoBtn = ((System.Windows.Controls.Button)(target)); #line 90 "..\..\..\..\Pages\Settings\SetParam.xaml" this.startMotoBtn.Click += new System.Windows.RoutedEventHandler(this.startMotoBtn_Click); #line default #line hidden return; case 18: this.AngTab = ((System.Windows.Controls.TabItem)(target)); return; case 19: this.angBox = ((System.Windows.Controls.TextBox)(target)); return; case 20: this.angSpBox = ((System.Windows.Controls.TextBox)(target)); return; case 21: this.directCombox = ((System.Windows.Controls.ComboBox)(target)); return; case 22: this.startMotoBtn2 = ((System.Windows.Controls.Button)(target)); #line 106 "..\..\..\..\Pages\Settings\SetParam.xaml" this.startMotoBtn2.Click += new System.Windows.RoutedEventHandler(this.startMotoBtn2_Click); #line default #line hidden return; case 23: this.stopMotoBtn2 = ((System.Windows.Controls.Button)(target)); #line 107 "..\..\..\..\Pages\Settings\SetParam.xaml" this.stopMotoBtn2.Click += new System.Windows.RoutedEventHandler(this.stopMotoBtn2_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 23 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.Button)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.ButtonMouseEnterHandler); #line default #line hidden #line 23 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.Button)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.ButtonMouseLeaveHandler); #line default #line hidden return; case 2: this.ConfigurateMenu = ((System.Windows.Controls.Menu)(target)); #line 33 "..\..\..\..\UI\Pages\Home.xaml" this.ConfigurateMenu.MouseEnter += new System.Windows.Input.MouseEventHandler(this.MenuMouseEnterHandler); #line default #line hidden #line 33 "..\..\..\..\UI\Pages\Home.xaml" this.ConfigurateMenu.MouseLeave += new System.Windows.Input.MouseEventHandler(this.MenuMouseLeaveHandler); #line default #line hidden return; case 3: #line 34 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PeriodOfStudyItemHandler); #line default #line hidden return; case 4: this.PeriodIndicator = ((System.Windows.Shapes.Ellipse)(target)); return; case 5: #line 58 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.Button)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.ButtonMouseEnterHandler1); #line default #line hidden #line 58 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.Button)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.ButtonMouseLeaveHandler1); #line default #line hidden return; case 6: this.DictionaryButtonList = ((System.Windows.Controls.Menu)(target)); #line 68 "..\..\..\..\UI\Pages\Home.xaml" this.DictionaryButtonList.MouseEnter += new System.Windows.Input.MouseEventHandler(this.MenuMouseEnterHandler); #line default #line hidden #line 68 "..\..\..\..\UI\Pages\Home.xaml" this.DictionaryButtonList.MouseLeave += new System.Windows.Input.MouseEventHandler(this.MenuMouseLeaveHandler); #line default #line hidden return; case 7: #line 69 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ClassesItemHandler); #line default #line hidden return; case 8: this.GroupsIndicator = ((System.Windows.Shapes.Ellipse)(target)); return; case 9: #line 82 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.TeachersItemHandler); #line default #line hidden return; case 10: this.TeachersIndicator = ((System.Windows.Shapes.Ellipse)(target)); return; case 11: #line 95 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AudiencesItemHandler); #line default #line hidden return; case 12: this.AudiencesIndicator = ((System.Windows.Shapes.Ellipse)(target)); return; case 13: #line 108 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SubjectsItemHandler); #line default #line hidden return; case 14: this.SubjectsIndicator = ((System.Windows.Shapes.Ellipse)(target)); return; case 15: #line 132 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.Button)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.ButtonMouseEnterHandler2); #line default #line hidden #line 132 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.Button)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.ButtonMouseLeaveHandler2); #line default #line hidden return; case 16: this.LoadButtonList = ((System.Windows.Controls.Menu)(target)); #line 142 "..\..\..\..\UI\Pages\Home.xaml" this.LoadButtonList.MouseEnter += new System.Windows.Input.MouseEventHandler(this.MenuMouseEnterHandler); #line default #line hidden #line 142 "..\..\..\..\UI\Pages\Home.xaml" this.LoadButtonList.MouseLeave += new System.Windows.Input.MouseEventHandler(this.MenuMouseLeaveHandler); #line default #line hidden return; case 17: #line 143 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.LessonsItemHandler); #line default #line hidden return; case 18: this.LessonsIndicator = ((System.Windows.Shapes.Ellipse)(target)); return; case 19: #line 167 "..\..\..\..\UI\Pages\Home.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GenerateButton_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 7 "..\..\MainWindow.xaml" ((System.Windows.Controls.Canvas)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Canvas_MouseDown_1); #line default #line hidden return; case 2: this.homebtn = ((System.Windows.Shapes.Ellipse)(target)); #line 12 "..\..\MainWindow.xaml" this.homebtn.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.homebtn_MouseLeftButtonUp_1); #line default #line hidden return; case 3: this.CloseBtn = ((System.Windows.Controls.Image)(target)); #line 13 "..\..\MainWindow.xaml" this.CloseBtn.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.CloseBtn_MouseLeftButtonUp_1); #line default #line hidden return; case 4: this.LoginCn = ((System.Windows.Controls.Canvas)(target)); return; case 5: this.usernametxt = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.Passtxt = ((System.Windows.Controls.PasswordBox)(target)); return; case 7: this.Loginbtn = ((System.Windows.Controls.TextBlock)(target)); #line 30 "..\..\MainWindow.xaml" this.Loginbtn.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Loginbtn_MouseLeftButtonUp_1); #line default #line hidden return; case 8: this.HomeCN = ((System.Windows.Controls.Canvas)(target)); return; case 9: this.ViewCourses = ((System.Windows.Controls.TextBlock)(target)); #line 36 "..\..\MainWindow.xaml" this.ViewCourses.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ViewCourses_MouseLeftButtonUp_1); #line default #line hidden return; case 10: this.ViewInstructors = ((System.Windows.Controls.TextBlock)(target)); #line 37 "..\..\MainWindow.xaml" this.ViewInstructors.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ViewInstructors_MouseLeftButtonUp_1); #line default #line hidden return; case 11: this.ViewStudents = ((System.Windows.Controls.TextBlock)(target)); #line 38 "..\..\MainWindow.xaml" this.ViewStudents.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ViewStudents_MouseLeftButtonUp_1); #line default #line hidden return; case 12: this.ViewCategories = ((System.Windows.Controls.TextBlock)(target)); #line 39 "..\..\MainWindow.xaml" this.ViewCategories.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.ViewCategories_MouseLeftButtonUp_1); #line default #line hidden return; case 13: this.InstructorsCn = ((System.Windows.Controls.Canvas)(target)); return; case 14: this.instnametxt = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.SaveInstbtn = ((System.Windows.Controls.TextBlock)(target)); #line 50 "..\..\MainWindow.xaml" this.SaveInstbtn.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.SaveInstbtn_MouseLeftButtonUp_1); #line default #line hidden return; case 16: this.CategoriesCn = ((System.Windows.Controls.Canvas)(target)); return; case 17: this.CategoryNametxt = ((System.Windows.Controls.TextBox)(target)); return; case 18: this.SaveCategory = ((System.Windows.Controls.TextBlock)(target)); #line 57 "..\..\MainWindow.xaml" this.SaveCategory.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.SaveCategory_MouseLeftButtonUp_1); #line default #line hidden return; case 19: this.Categories_List = ((System.Windows.Controls.ListBox)(target)); return; case 20: this.UpdateCategory = ((System.Windows.Controls.TextBlock)(target)); #line 59 "..\..\MainWindow.xaml" this.UpdateCategory.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.UpdateCategory_MouseLeftButtonUp_1); #line default #line hidden return; case 21: this.DelCat = ((System.Windows.Controls.TextBlock)(target)); #line 60 "..\..\MainWindow.xaml" this.DelCat.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.DelCat_MouseLeftButtonUp_1); #line default #line hidden return; case 22: this.CoursesCn = ((System.Windows.Controls.Canvas)(target)); return; case 23: this.CourseNametxt = ((System.Windows.Controls.TextBox)(target)); #line 65 "..\..\MainWindow.xaml" this.CourseNametxt.KeyUp += new System.Windows.Input.KeyEventHandler(this.CourseNametxt_KeyUp_1); #line default #line hidden #line 65 "..\..\MainWindow.xaml" this.CourseNametxt.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.CourseNametxt_TextChanged); #line default #line hidden return; case 24: this.SaveCourse = ((System.Windows.Controls.TextBlock)(target)); #line 66 "..\..\MainWindow.xaml" this.SaveCourse.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.SaveCourse_MouseLeftButtonUp_1); #line default #line hidden return; case 25: this.Pricetxt = ((System.Windows.Controls.TextBox)(target)); return; case 26: this.PeriodTxt = ((System.Windows.Controls.TextBox)(target)); return; case 27: this.Descriptiontxt = ((System.Windows.Controls.TextBox)(target)); return; case 28: this.CategoriesList = ((System.Windows.Controls.ComboBox)(target)); return; case 29: this.CoursesList = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.second = ((System.Windows.Shapes.Ellipse)(target)); return; case 2: this.FiveHours1 = ((System.Windows.Shapes.Rectangle)(target)); return; case 3: this.FiveHours2 = ((System.Windows.Shapes.Rectangle)(target)); return; case 4: this.FiveHours3 = ((System.Windows.Shapes.Rectangle)(target)); return; case 5: this.FiveHours4 = ((System.Windows.Shapes.Rectangle)(target)); return; case 6: this.OneHours1 = ((System.Windows.Shapes.Rectangle)(target)); return; case 7: this.OneHours2 = ((System.Windows.Shapes.Rectangle)(target)); return; case 8: this.OneHours3 = ((System.Windows.Shapes.Rectangle)(target)); return; case 9: this.OneHours4 = ((System.Windows.Shapes.Rectangle)(target)); return; case 10: this.FiveMinutes1 = ((System.Windows.Shapes.Rectangle)(target)); return; case 11: this.FiveMinutes2 = ((System.Windows.Shapes.Rectangle)(target)); return; case 12: this.FiveMinutes3 = ((System.Windows.Shapes.Rectangle)(target)); return; case 13: this.FiveMinutes4 = ((System.Windows.Shapes.Rectangle)(target)); return; case 14: this.FiveMinutes5 = ((System.Windows.Shapes.Rectangle)(target)); return; case 15: this.FiveMinutes6 = ((System.Windows.Shapes.Rectangle)(target)); return; case 16: this.FiveMinutes7 = ((System.Windows.Shapes.Rectangle)(target)); return; case 17: this.FiveMinutes8 = ((System.Windows.Shapes.Rectangle)(target)); return; case 18: this.FiveMinutes9 = ((System.Windows.Shapes.Rectangle)(target)); return; case 19: this.FiveMinutes10 = ((System.Windows.Shapes.Rectangle)(target)); return; case 20: this.FiveMinutes11 = ((System.Windows.Shapes.Rectangle)(target)); return; case 21: this.OneMinute1 = ((System.Windows.Shapes.Rectangle)(target)); return; case 22: this.OneMinute2 = ((System.Windows.Shapes.Rectangle)(target)); return; case 23: this.OneMinute3 = ((System.Windows.Shapes.Rectangle)(target)); return; case 24: this.OneMinute4 = ((System.Windows.Shapes.Rectangle)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\MainWindow.xaml" ((Server.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded); #line default #line hidden return; case 2: this.toogle = ((MahApps.Metro.Controls.ToggleSwitch)(target)); #line 15 "..\..\MainWindow.xaml" this.toogle.Checked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.toogle_Checked); #line default #line hidden #line 15 "..\..\MainWindow.xaml" this.toogle.Unchecked += new System.EventHandler <System.Windows.RoutedEventArgs>(this.toogle_Unchecked); #line default #line hidden return; case 3: this.lamp = ((System.Windows.Shapes.Ellipse)(target)); return; case 4: this.lampBtn = ((System.Windows.Controls.Button)(target)); #line 44 "..\..\MainWindow.xaml" this.lampBtn.Click += new System.Windows.RoutedEventHandler(this.LampBtn_Click); #line default #line hidden return; case 5: this.textTxt = ((System.Windows.Controls.TextBox)(target)); #line 62 "..\..\MainWindow.xaml" this.textTxt.SelectionChanged += new System.Windows.RoutedEventHandler(this.TextTxt_SelectionChanged); #line default #line hidden return; case 6: this.textBtn = ((System.Windows.Controls.Button)(target)); #line 63 "..\..\MainWindow.xaml" this.textBtn.Click += new System.Windows.RoutedEventHandler(this.TextBtn_Click); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.colorImageControl = ((System.Windows.Controls.Image)(target)); return; case 2: this.elbow_hand_left = ((System.Windows.Shapes.Line)(target)); return; case 3: this.elbow_hand_right = ((System.Windows.Shapes.Line)(target)); return; case 4: this.shoulder_elbow_left = ((System.Windows.Shapes.Line)(target)); return; case 5: this.shoulder_elbow_right = ((System.Windows.Shapes.Line)(target)); return; case 6: this.shoulder_center_left = ((System.Windows.Shapes.Line)(target)); return; case 7: this.shoulder_center_right = ((System.Windows.Shapes.Line)(target)); return; case 8: this.head_shoulder = ((System.Windows.Shapes.Line)(target)); return; case 9: this.leftHand = ((System.Windows.Shapes.Ellipse)(target)); return; case 10: this.rightHand = ((System.Windows.Shapes.Ellipse)(target)); return; case 11: this.head = ((System.Windows.Shapes.Ellipse)(target)); return; case 12: this.shoulder_center = ((System.Windows.Shapes.Ellipse)(target)); return; case 13: this.leftElbow = ((System.Windows.Shapes.Ellipse)(target)); return; case 14: this.rightElbow = ((System.Windows.Shapes.Ellipse)(target)); return; case 15: this.leftShoulder = ((System.Windows.Shapes.Ellipse)(target)); return; case 16: this.rightShoulder = ((System.Windows.Shapes.Ellipse)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ComPort = ((System.Windows.Controls.ComboBox)(target)); return; case 2: this.ComBaud = ((System.Windows.Controls.ComboBox)(target)); return; case 3: this.connectStatus = ((System.Windows.Shapes.Ellipse)(target)); return; case 4: this.btnConnect = ((System.Windows.Controls.Primitives.ToggleButton)(target)); return; case 5: this.bord_btn = ((System.Windows.Controls.Border)(target)); return; case 6: this.txt_AscCommand1 = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.btn_AscSend1 = ((System.Windows.Controls.Button)(target)); return; case 8: this.txt_AscCommand2 = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.btn_AscSend2 = ((System.Windows.Controls.Button)(target)); return; case 10: this.txt_HexCommand1 = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.btn_HexSend1 = ((System.Windows.Controls.Button)(target)); return; case 12: this.txt_HexCommand2 = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.btn_HexSend2 = ((System.Windows.Controls.Button)(target)); return; case 14: this.list_text = ((System.Windows.Controls.ListView)(target)); return; case 15: this.btn_clean = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 19 "..\..\..\Dashboard.xaml" ((Program.Dashboard)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown); #line default #line hidden return; case 2: this.user_img = ((System.Windows.Shapes.Ellipse)(target)); return; case 3: this.user_name = ((System.Windows.Controls.Label)(target)); return; case 4: this.user_position = ((System.Windows.Controls.Label)(target)); return; case 5: this.dashboard_btn = ((System.Windows.Controls.Button)(target)); #line 101 "..\..\..\Dashboard.xaml" this.dashboard_btn.Click += new System.Windows.RoutedEventHandler(this.dashboard_btn_Click); #line default #line hidden return; case 6: this.menu_btn = ((System.Windows.Controls.Button)(target)); #line 111 "..\..\..\Dashboard.xaml" this.menu_btn.Click += new System.Windows.RoutedEventHandler(this.menu_btn_Click); #line default #line hidden return; case 7: this.order_btn = ((System.Windows.Controls.Button)(target)); return; case 8: this.account_btn = ((System.Windows.Controls.Button)(target)); return; case 9: this.history_btn = ((System.Windows.Controls.Button)(target)); return; case 10: this.employee_btn = ((System.Windows.Controls.Button)(target)); return; case 11: this.exit_btn = ((System.Windows.Controls.Button)(target)); #line 161 "..\..\..\Dashboard.xaml" this.exit_btn.Click += new System.Windows.RoutedEventHandler(this.exit_btn_Click); #line default #line hidden return; case 12: this.SubPanel = ((System.Windows.Controls.Frame)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\HomeWindow.xaml" ((InstantScheduler.HomeWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.progressBar = ((System.Windows.Controls.ProgressBar)(target)); return; case 3: this.profileImage = ((System.Windows.Shapes.Ellipse)(target)); return; case 4: this.lblUsername = ((System.Windows.Controls.Label)(target)); return; case 5: this.txtSearchHere = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.btnSearch = ((System.Windows.Controls.Button)(target)); return; case 7: this.btnFeed = ((System.Windows.Controls.Button)(target)); #line 55 "..\..\HomeWindow.xaml" this.btnFeed.Click += new System.Windows.RoutedEventHandler(this.btnFeed_Click); #line default #line hidden return; case 8: this.btnProfile = ((System.Windows.Controls.Button)(target)); #line 58 "..\..\HomeWindow.xaml" this.btnProfile.Click += new System.Windows.RoutedEventHandler(this.btnProfile_Click); #line default #line hidden return; case 9: this.btnSchedules = ((System.Windows.Controls.Button)(target)); #line 61 "..\..\HomeWindow.xaml" this.btnSchedules.Click += new System.Windows.RoutedEventHandler(this.btnSchedules_Click); #line default #line hidden return; case 10: this.btnSearches = ((System.Windows.Controls.Button)(target)); #line 64 "..\..\HomeWindow.xaml" this.btnSearches.Click += new System.Windows.RoutedEventHandler(this.btnSearches_Click); #line default #line hidden return; case 11: this.btnTasks = ((System.Windows.Controls.Button)(target)); #line 67 "..\..\HomeWindow.xaml" this.btnTasks.Click += new System.Windows.RoutedEventHandler(this.btnTasks_Click); #line default #line hidden return; case 12: this.btnMessages = ((System.Windows.Controls.Button)(target)); #line 70 "..\..\HomeWindow.xaml" this.btnMessages.Click += new System.Windows.RoutedEventHandler(this.btnMessages_Click); #line default #line hidden return; case 13: this.btnLogout = ((System.Windows.Controls.Button)(target)); #line 73 "..\..\HomeWindow.xaml" this.btnLogout.Click += new System.Windows.RoutedEventHandler(this.btnLogout_Click); #line default #line hidden return; case 14: this.pnlMainContent = ((System.Windows.Controls.StackPanel)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.stcPanelData = ((System.Windows.Controls.StackPanel)(target)); return; case 2: this.txtbRadius = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.txtbTeta = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.txtbOmega = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.txtbTime = ((System.Windows.Controls.TextBox)(target)); return; case 6: #line 35 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 7: this.Xp = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.Yp = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.rysownik = ((System.Windows.Controls.Canvas)(target)); return; case 10: this.wahadlo = ((System.Windows.Shapes.Line)(target)); return; case 11: this.Mass = ((System.Windows.Shapes.Ellipse)(target)); return; case 12: this.Vxy = ((System.Windows.Shapes.Line)(target)); return; case 13: this.drawGraph = ((System.Windows.Controls.Canvas)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window_flighgear = ((FlightSimulator.PlaybackScreen)(target)); #line 9 "..\..\..\PlayControllerView - Copy.xaml" this.window_flighgear.Closing += new System.ComponentModel.CancelEventHandler(this.window_flightgear_closing); #line default #line hidden return; case 2: this.btn_open = ((System.Windows.Controls.Button)(target)); #line 15 "..\..\..\PlayControllerView - Copy.xaml" this.btn_open.Click += new System.Windows.RoutedEventHandler(this.btn_open_click); #line default #line hidden return; case 3: this.btn_back = ((System.Windows.Controls.Button)(target)); #line 17 "..\..\..\PlayControllerView - Copy.xaml" this.btn_back.Click += new System.Windows.RoutedEventHandler(this.btn_back_click); #line default #line hidden return; case 4: this.btn_play = ((System.Windows.Controls.Button)(target)); #line 19 "..\..\..\PlayControllerView - Copy.xaml" this.btn_play.Click += new System.Windows.RoutedEventHandler(this.btn_play_click); #line default #line hidden return; case 5: this.btn_foward = ((System.Windows.Controls.Button)(target)); #line 21 "..\..\..\PlayControllerView - Copy.xaml" this.btn_foward.Click += new System.Windows.RoutedEventHandler(this.btn_foward_click); #line default #line hidden return; case 6: this.btn_pause = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\..\PlayControllerView - Copy.xaml" this.btn_pause.Click += new System.Windows.RoutedEventHandler(this.btn_pause_click); #line default #line hidden return; case 7: this.slider_timesteps = ((System.Windows.Controls.Slider)(target)); #line 25 "..\..\..\PlayControllerView - Copy.xaml" this.slider_timesteps.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged); #line default #line hidden return; case 8: this.label_display_time = ((System.Windows.Controls.Label)(target)); return; case 9: this.txtbox_change_speed = ((System.Windows.Controls.TextBox)(target)); #line 27 "..\..\..\PlayControllerView - Copy.xaml" this.txtbox_change_speed.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtbox_change_speed_TextChanged); #line default #line hidden #line 27 "..\..\..\PlayControllerView - Copy.xaml" this.txtbox_change_speed.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtbox_change_speed_pressed); #line default #line hidden return; case 10: this.slider_rudder = ((System.Windows.Controls.Slider)(target)); return; case 11: this.slider_throttle = ((System.Windows.Controls.Slider)(target)); return; case 12: this.label_altimeter_name = ((System.Windows.Controls.Label)(target)); return; case 13: this.label_roll_name = ((System.Windows.Controls.Label)(target)); return; case 14: this.label_pitch_name = ((System.Windows.Controls.Label)(target)); return; case 15: this.label_heading_deg_name = ((System.Windows.Controls.Label)(target)); return; case 16: this.label_airspeed_name = ((System.Windows.Controls.Label)(target)); return; case 17: this.label_yaw_name = ((System.Windows.Controls.Label)(target)); return; case 18: this.label_altimeter = ((System.Windows.Controls.Label)(target)); return; case 19: this.label_roll = ((System.Windows.Controls.Label)(target)); return; case 20: this.label_pitch = ((System.Windows.Controls.Label)(target)); return; case 21: this.label_heading_deg = ((System.Windows.Controls.Label)(target)); return; case 22: this.label_airspeed = ((System.Windows.Controls.Label)(target)); return; case 23: this.label_yaw = ((System.Windows.Controls.Label)(target)); return; case 24: this.JoystickBigCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 25: this.CanvasLittleEllipse = ((System.Windows.Shapes.Ellipse)(target)); return; case 26: this.parameterList = ((System.Windows.Controls.ListBox)(target)); #line 61 "..\..\..\PlayControllerView - Copy.xaml" this.parameterList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListBox_SelectionChanged); #line default #line hidden return; case 27: this.JoystickLittleCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 28: this.JoystickLittleEllipse = ((System.Windows.Shapes.Ellipse)(target)); return; case 29: this.EllipseTransform = ((System.Windows.Media.TranslateTransform)(target)); return; } this._contentLoaded = true; }
public UXShape(UXOperation uxOperation, MainShape s, string shapeId, int checkPointNumber = 0, Operation operationType = Operation.NONE) { UxOperation = uxOperation; ShapeIdentifier = s.ShapeIdentifier; TranslationCoordinate = s.GetCenter().Clone(); AngleOfRotation = s.AngleOfRotation; CheckPointNumber = checkPointNumber; OperationType = operationType; var shapeFillBrush = new SolidColorBrush { Color = Color.FromArgb(Convert.ToByte(s.ShapeFill.R), Convert.ToByte(s.ShapeFill.G), Convert.ToByte(s.ShapeFill.B), 0) }; if (s.ShapeIdentifier == ShapeType.ELLIPSE) { var EllipseUXElement = new System.Windows.Shapes.Ellipse(); EllipseUXElement.Width = s.Width; EllipseUXElement.Height = s.Height; EllipseUXElement.Fill = shapeFillBrush; WindowsShape = EllipseUXElement; } else if (s.ShapeIdentifier == ShapeType.RECTANGLE) { var RectangleUXElement = new System.Windows.Shapes.Rectangle(); RectangleUXElement.Width = s.Width; RectangleUXElement.Height = s.Height; RectangleUXElement.Fill = shapeFillBrush; WindowsShape = RectangleUXElement; } else if (s.ShapeIdentifier == ShapeType.LINE) { System.Windows.Shapes.Line LineUXElement = new(); LineUXElement.X1 = s.Start.R; LineUXElement.Y1 = s.Start.C; LineUXElement.X2 = s.Start.R + s.Height; LineUXElement.Y2 = s.Start.R + s.Width; WindowsShape = LineUXElement; } else { var PolylineUXElement = new System.Windows.Shapes.Polyline(); var PolyLinePointCollection = new PointCollection(); foreach (var cord in s.GetPoints()) { PolyLinePointCollection.Add(new Point(cord.R, cord.C)); } PolylineUXElement.Points = PolyLinePointCollection; WindowsShape = PolylineUXElement; } WindowsShape.StrokeThickness = s.StrokeWidth; var StrokeBrush = new SolidColorBrush { Color = Color.FromArgb(Convert.ToByte(s.StrokeColor.R), Convert.ToByte(s.StrokeColor.G), Convert.ToByte(s.StrokeColor.B), 0) }; WindowsShape.Stroke = StrokeBrush; if (shapeId != null) { WindowsShape.Uid = shapeId; } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 18 "..\..\..\Controls\CircularProgressBar.xaml" ((System.Windows.Controls.Canvas)(target)).Loaded += new System.Windows.RoutedEventHandler(this.OnCanvasLoaded); #line default #line hidden #line 19 "..\..\..\Controls\CircularProgressBar.xaml" ((System.Windows.Controls.Canvas)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.OnCanvasUnloaded); #line default #line hidden return; case 2: this._circle0 = ((System.Windows.Shapes.Ellipse)(target)); return; case 3: this._circle1 = ((System.Windows.Shapes.Ellipse)(target)); return; case 4: this._circle2 = ((System.Windows.Shapes.Ellipse)(target)); return; case 5: this._circle3 = ((System.Windows.Shapes.Ellipse)(target)); return; case 6: this._circle4 = ((System.Windows.Shapes.Ellipse)(target)); return; case 7: this._circle5 = ((System.Windows.Shapes.Ellipse)(target)); return; case 8: this._circle6 = ((System.Windows.Shapes.Ellipse)(target)); return; case 9: this._circle7 = ((System.Windows.Shapes.Ellipse)(target)); return; case 10: this._circle8 = ((System.Windows.Shapes.Ellipse)(target)); return; case 11: this._spinnerRotate = ((System.Windows.Media.RotateTransform)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\MainWindow.xaml" ((Kooste.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 8 "..\..\MainWindow.xaml" ((Kooste.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden return; case 2: this.menuOpen = ((System.Windows.Controls.MenuItem)(target)); #line 12 "..\..\MainWindow.xaml" this.menuOpen.Click += new System.Windows.RoutedEventHandler(this.menuOpen_Click); #line default #line hidden return; case 3: this.menuSave = ((System.Windows.Controls.MenuItem)(target)); #line 13 "..\..\MainWindow.xaml" this.menuSave.Click += new System.Windows.RoutedEventHandler(this.menuSave_Click); #line default #line hidden return; case 4: this.menuExit = ((System.Windows.Controls.MenuItem)(target)); #line 14 "..\..\MainWindow.xaml" this.menuExit.Click += new System.Windows.RoutedEventHandler(this.menuExit_Click); #line default #line hidden return; case 5: #line 21 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 6: this.browser = ((System.Windows.Controls.MenuItem)(target)); #line 24 "..\..\MainWindow.xaml" this.browser.Click += new System.Windows.RoutedEventHandler(this.browser_Click); #line default #line hidden return; case 7: this.textBox = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.canvas = ((System.Windows.Controls.Canvas)(target)); return; case 9: this.ellipse = ((System.Windows.Shapes.Ellipse)(target)); #line 30 "..\..\MainWindow.xaml" this.ellipse.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ellipse_MouseLeftButtonDown); #line default #line hidden #line 30 "..\..\MainWindow.xaml" this.ellipse.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.ellipse_MouseRightButtonDown); #line default #line hidden return; case 10: this.buttonDown = ((System.Windows.Controls.Button)(target)); #line 31 "..\..\MainWindow.xaml" this.buttonDown.Click += new System.Windows.RoutedEventHandler(this.buttonDown_Click); #line default #line hidden return; case 11: this.buttonUp = ((System.Windows.Controls.Button)(target)); #line 33 "..\..\MainWindow.xaml" this.buttonUp.Click += new System.Windows.RoutedEventHandler(this.buttonUp_Click); #line default #line hidden return; case 12: this.buttonLeft = ((System.Windows.Controls.Button)(target)); #line 34 "..\..\MainWindow.xaml" this.buttonLeft.Click += new System.Windows.RoutedEventHandler(this.buttonLeft_Click); #line default #line hidden return; case 13: this.buttonRight = ((System.Windows.Controls.Button)(target)); #line 35 "..\..\MainWindow.xaml" this.buttonRight.Click += new System.Windows.RoutedEventHandler(this.buttonRight_Click); #line default #line hidden return; case 14: this.textBox2 = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.buttonAdd = ((System.Windows.Controls.Button)(target)); #line 37 "..\..\MainWindow.xaml" this.buttonAdd.Click += new System.Windows.RoutedEventHandler(this.buttonAdd_Click); #line default #line hidden return; case 16: this.reset = ((System.Windows.Controls.Button)(target)); #line 38 "..\..\MainWindow.xaml" this.reset.Click += new System.Windows.RoutedEventHandler(this.reset_Click); #line default #line hidden return; case 17: this.slider1 = ((System.Windows.Controls.Slider)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.minimizeWindow = ((System.Windows.Controls.Button)(target)); return; case 2: this.maximizeWindow = ((System.Windows.Controls.Button)(target)); return; case 3: this.closeWindow = ((System.Windows.Controls.Button)(target)); return; case 4: this.joint1Selector = ((System.Windows.Controls.ComboBox)(target)); #line 72 "..\..\..\Ventanas\jointsInfo.xaml" this.joint1Selector.DropDownClosed += new System.EventHandler(this.item1Selected); #line default #line hidden return; case 5: this.XValue1 = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.YValue1 = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.ZValue1 = ((System.Windows.Controls.TextBlock)(target)); return; case 8: this.joint2Selector = ((System.Windows.Controls.ComboBox)(target)); #line 99 "..\..\..\Ventanas\jointsInfo.xaml" this.joint2Selector.DropDownClosed += new System.EventHandler(this.item2Selected); #line default #line hidden return; case 9: this.XValue2 = ((System.Windows.Controls.TextBlock)(target)); return; case 10: this.YValue2 = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.ZValue2 = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.joint3Selector = ((System.Windows.Controls.ComboBox)(target)); #line 127 "..\..\..\Ventanas\jointsInfo.xaml" this.joint3Selector.DropDownClosed += new System.EventHandler(this.item3Selected); #line default #line hidden return; case 13: this.XValue3 = ((System.Windows.Controls.TextBlock)(target)); return; case 14: this.YValue3 = ((System.Windows.Controls.TextBlock)(target)); return; case 15: this.ZValue3 = ((System.Windows.Controls.TextBlock)(target)); return; case 16: this.joint4Selector = ((System.Windows.Controls.ComboBox)(target)); #line 155 "..\..\..\Ventanas\jointsInfo.xaml" this.joint4Selector.DropDownClosed += new System.EventHandler(this.item4Selected); #line default #line hidden return; case 17: this.XValue4 = ((System.Windows.Controls.TextBlock)(target)); return; case 18: this.YValue4 = ((System.Windows.Controls.TextBlock)(target)); return; case 19: this.ZValue4 = ((System.Windows.Controls.TextBlock)(target)); return; case 20: this.joint5Selector = ((System.Windows.Controls.ComboBox)(target)); #line 183 "..\..\..\Ventanas\jointsInfo.xaml" this.joint5Selector.DropDownClosed += new System.EventHandler(this.item5Selected); #line default #line hidden return; case 21: this.XValue5 = ((System.Windows.Controls.TextBlock)(target)); return; case 22: this.YValue5 = ((System.Windows.Controls.TextBlock)(target)); return; case 23: this.ZValue5 = ((System.Windows.Controls.TextBlock)(target)); return; case 24: this.jointsImage = ((System.Windows.Controls.Grid)(target)); return; case 25: this.visualJoint1 = ((System.Windows.Shapes.Ellipse)(target)); return; case 26: this.visualJoint2 = ((System.Windows.Shapes.Ellipse)(target)); return; case 27: this.visualJoint3 = ((System.Windows.Shapes.Ellipse)(target)); return; case 28: this.visualJoint4 = ((System.Windows.Shapes.Ellipse)(target)); return; case 29: this.visualJoint5 = ((System.Windows.Shapes.Ellipse)(target)); return; } this._contentLoaded = true; }
private void Canvas_MouseDown(object sender, MouseButtonEventArgs e) { _drawing = true; _startPoint = e.GetPosition(Canvas); switch (_mode) { case Mode.None: break; case Mode.Line: _myLine = new Line { X1 = e.GetPosition(Canvas).X, Y1 = e.GetPosition(Canvas).Y, X2 = e.GetPosition(Canvas).X, Y2 = e.GetPosition(Canvas).Y, Stroke = _selectedBrush, StrokeThickness = _strokeThickness }; Canvas.Children.Add(_myLine); break; case Mode.Rectangle: _myRectangle = new Rectangle { Stroke = _selectedBrush, StrokeThickness = _strokeThickness }; Canvas.SetLeft(_myRectangle, _startPoint.X); Canvas.SetTop(_myRectangle, _startPoint.Y); Canvas.Children.Add(_myRectangle); break; case Mode.Ellipse: _myEllipse = new Ellipse { Stroke = _selectedBrush, StrokeThickness = _strokeThickness }; Canvas.SetLeft(_myEllipse, _startPoint.X); Canvas.SetTop(_myEllipse, _startPoint.Y); Canvas.Children.Add(_myEllipse); break; case Mode.Brush: //_brushTimer.Start(); _pathGeometry = new PathGeometry(); _pathFigure = new PathFigure(); _pathFigure.StartPoint = _startPoint; _pathFigure.IsClosed = false; _pathGeometry.Figures.Add(_pathFigure); _path = new Path(); _path.Stroke = _selectedBrush; _path.StrokeThickness = _strokeThickness; _path.Data = _pathGeometry; Canvas.Children.Add(_path); break; default: throw new ArgumentOutOfRangeException(); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.window_flighgear = ((FlightSimulator.PlaybackScreen)(target)); #line 10 "..\..\..\PlayControllerView.xaml" this.window_flighgear.Closing += new System.ComponentModel.CancelEventHandler(this.window_flightgear_closing); #line default #line hidden return; case 2: this.btn_open_train = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\..\PlayControllerView.xaml" this.btn_open_train.Click += new System.Windows.RoutedEventHandler(this.btn_open_train_click); #line default #line hidden return; case 3: this.btn_open_test = ((System.Windows.Controls.Button)(target)); #line 25 "..\..\..\PlayControllerView.xaml" this.btn_open_test.Click += new System.Windows.RoutedEventHandler(this.btn_open_test_click); #line default #line hidden return; case 4: this.btn_back = ((System.Windows.Controls.Button)(target)); #line 27 "..\..\..\PlayControllerView.xaml" this.btn_back.Click += new System.Windows.RoutedEventHandler(this.btn_back_click); #line default #line hidden return; case 5: this.btn_play = ((System.Windows.Controls.Button)(target)); #line 31 "..\..\..\PlayControllerView.xaml" this.btn_play.Click += new System.Windows.RoutedEventHandler(this.btn_play_click); #line default #line hidden return; case 6: this.btn_foward = ((System.Windows.Controls.Button)(target)); #line 35 "..\..\..\PlayControllerView.xaml" this.btn_foward.Click += new System.Windows.RoutedEventHandler(this.btn_foward_click); #line default #line hidden return; case 7: this.btn_pause = ((System.Windows.Controls.Button)(target)); #line 39 "..\..\..\PlayControllerView.xaml" this.btn_pause.Click += new System.Windows.RoutedEventHandler(this.btn_pause_click); #line default #line hidden return; case 8: this.slider_timesteps = ((System.Windows.Controls.Slider)(target)); #line 43 "..\..\..\PlayControllerView.xaml" this.slider_timesteps.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged); #line default #line hidden return; case 9: this.label_display_time = ((System.Windows.Controls.Label)(target)); return; case 10: this.txtbox_change_speed = ((System.Windows.Controls.TextBox)(target)); #line 45 "..\..\..\PlayControllerView.xaml" this.txtbox_change_speed.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtbox_change_speed_TextChanged); #line default #line hidden #line 45 "..\..\..\PlayControllerView.xaml" this.txtbox_change_speed.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtbox_change_speed_pressed); #line default #line hidden return; case 11: this.slider_rudder = ((System.Windows.Controls.Slider)(target)); return; case 12: this.slider_throttle = ((System.Windows.Controls.Slider)(target)); return; case 13: this.JoystickBigCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 14: this.CanvasLittleEllipse = ((System.Windows.Shapes.Ellipse)(target)); return; case 15: this.JoystickLittleCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 16: this.JoystickLittleEllipse = ((System.Windows.Shapes.Ellipse)(target)); return; case 17: this.EllipseTransform = ((System.Windows.Media.TranslateTransform)(target)); return; case 18: this.parameterList = ((System.Windows.Controls.ListBox)(target)); #line 76 "..\..\..\PlayControllerView.xaml" this.parameterList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.parameterList_selectionChanged); #line default #line hidden return; case 19: this.anomaliesGraph = ((OxyPlot.Wpf.Plot)(target)); return; case 20: this.btn_load_dll = ((System.Windows.Controls.Button)(target)); #line 93 "..\..\..\PlayControllerView.xaml" this.btn_load_dll.Click += new System.Windows.RoutedEventHandler(this.btn_load_dll_Click); #line default #line hidden return; case 21: this.anomalies_lb = ((System.Windows.Controls.ListBox)(target)); #line 94 "..\..\..\PlayControllerView.xaml" this.anomalies_lb.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.anomalies_lb_change); #line default #line hidden return; } this._contentLoaded = true; }
private void OnActionChanged(object sender, HandDetectorEventArgs e) { Dispatcher.Invoke(() => { if (_detectionEnabled) { if (e.HandDetectorState.IsActive) { _drawing = true; _startPoint = new Point(e.HandDetectorState.CountedCoordinates.X, e.HandDetectorState.CountedCoordinates.Y); switch (_mode) { case Mode.None: break; case Mode.Line: _myLine = new Line { X1 = _startPoint.X, Y1 = _startPoint.Y, X2 = _startPoint.X, Y2 = _startPoint.Y, Stroke = _selectedBrush, StrokeThickness = _strokeThickness }; Canvas.Children.Add(_myLine); break; case Mode.Rectangle: _myRectangle = new Rectangle { Stroke = _selectedBrush, StrokeThickness = _strokeThickness }; Canvas.SetLeft(_myRectangle, _startPoint.X); Canvas.SetTop(_myRectangle, _startPoint.Y); Canvas.Children.Add(_myRectangle); break; case Mode.Ellipse: _myEllipse = new Ellipse { Stroke = _selectedBrush, StrokeThickness = _strokeThickness }; Canvas.SetLeft(_myEllipse, _startPoint.X); Canvas.SetTop(_myEllipse, _startPoint.Y); Canvas.Children.Add(_myEllipse); break; case Mode.Brush: //_brushTimer.Start(); _pathGeometry = new PathGeometry(); _pathFigure = new PathFigure(); _pathFigure.StartPoint = _startPoint; _pathFigure.IsClosed = false; _pathGeometry.Figures.Add(_pathFigure); _path = new Path(); _path.Stroke = _selectedBrush; _path.StrokeThickness = _strokeThickness; _path.Data = _pathGeometry; Canvas.Children.Add(_path); break; default: throw new ArgumentOutOfRangeException(); } } else { if (_drawing) { _drawing = false; _myLine = null; _myRectangle = null; _myEllipse = null; _path = null; } } } }); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Profilna = ((System.Windows.Shapes.Ellipse)(target)); #line 34 "..\..\SettingsOkno.xaml" this.Profilna.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.eventSelectImage); #line default #line hidden return; case 2: this.imgProfilna = ((System.Windows.Media.ImageBrush)(target)); return; case 3: this.e_active = ((System.Windows.Shapes.Ellipse)(target)); #line 46 "..\..\SettingsOkno.xaml" this.e_active.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.active); #line default #line hidden return; case 4: this.e_away = ((System.Windows.Shapes.Ellipse)(target)); #line 51 "..\..\SettingsOkno.xaml" this.e_away.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Away); #line default #line hidden return; case 5: this.e_donotdisturb = ((System.Windows.Shapes.Ellipse)(target)); #line 56 "..\..\SettingsOkno.xaml" this.e_donotdisturb.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.donotdisturb); #line default #line hidden return; case 6: this.e_hidden = ((System.Windows.Shapes.Ellipse)(target)); #line 61 "..\..\SettingsOkno.xaml" this.e_hidden.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Hidden); #line default #line hidden return; case 7: this.txt_username = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.txt_gmail = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.txt_phone = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.txt_password = ((System.Windows.Controls.PasswordBox)(target)); return; case 11: this.txt_bio = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.btn_reset = ((System.Windows.Controls.Button)(target)); #line 90 "..\..\SettingsOkno.xaml" this.btn_reset.Click += new System.Windows.RoutedEventHandler(this.ResetClick); #line default #line hidden return; case 13: this.Save = ((System.Windows.Controls.Button)(target)); #line 91 "..\..\SettingsOkno.xaml" this.Save.Click += new System.Windows.RoutedEventHandler(this.SaveClick); #line default #line hidden return; case 14: this.txt_pot = ((System.Windows.Controls.TextBlock)(target)); #line 111 "..\..\SettingsOkno.xaml" this.txt_pot.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.IzberiPot); #line default #line hidden return; case 15: this.lbl_saved1 = ((System.Windows.Controls.TextBlock)(target)); return; case 16: this.lbl_txt2 = ((System.Windows.Controls.Label)(target)); #line 114 "..\..\SettingsOkno.xaml" this.lbl_txt2.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.SerializeNow); #line default #line hidden return; case 17: this.lbl_saved = ((System.Windows.Controls.TextBlock)(target)); return; case 18: this.chkbox_AutomaticSaving = ((System.Windows.Controls.CheckBox)(target)); #line 117 "..\..\SettingsOkno.xaml" this.chkbox_AutomaticSaving.Click += new System.Windows.RoutedEventHandler(this.chkbox_AutomaticSaving_Click); #line default #line hidden return; case 19: this.StckAutoUpdate = ((System.Windows.Controls.StackPanel)(target)); return; case 20: this.SliderAutoRefresh = ((System.Windows.Controls.Slider)(target)); return; case 21: this.Lbl_savenowTimer = ((System.Windows.Controls.Label)(target)); #line 126 "..\..\SettingsOkno.xaml" this.Lbl_savenowTimer.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Lbl_savenowTimer_MouseUp); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" ((SHHS.UILabs.RealtimeCurve.RealtimeCurve)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded); #line default #line hidden return; case 2: this.GridBase = ((System.Windows.Controls.Grid)(target)); #line 17 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.GridBase.SizeChanged += new System.Windows.SizeChangedEventHandler(this.GridBase_SizeChanged); #line default #line hidden return; case 3: this.GridCurve = ((System.Windows.Controls.Grid)(target)); #line 19 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.GridCurve.SizeChanged += new System.Windows.SizeChangedEventHandler(this.GridCurve_SizeChanged); #line default #line hidden #line 20 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.GridCurve.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.GridCurve_MouseLeftButtonDown); #line default #line hidden #line 20 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.GridCurve.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.GridCurve_MouseLeftButtonUp); #line default #line hidden #line 21 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.GridCurve.MouseMove += new System.Windows.Input.MouseEventHandler(this.GridCurve_MouseMove); #line default #line hidden return; case 4: this.tbkCursor1 = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.tbkCursor2 = ((System.Windows.Controls.TextBlock)(target)); return; case 6: this.lineXCursor1 = ((System.Windows.Shapes.Line)(target)); return; case 7: this.lineYCursor1 = ((System.Windows.Shapes.Line)(target)); return; case 8: this.lineXCursor2 = ((System.Windows.Shapes.Line)(target)); return; case 9: this.lineYCursor2 = ((System.Windows.Shapes.Line)(target)); return; case 10: this.ellCursor1 = ((System.Windows.Shapes.Ellipse)(target)); return; case 11: this.ellCursor2 = ((System.Windows.Shapes.Ellipse)(target)); return; case 12: this.rectZoomIn = ((System.Windows.Shapes.Rectangle)(target)); return; case 13: this.upX = ((System.Windows.Controls.Button)(target)); #line 51 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.upX.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 14: this.downX = ((System.Windows.Controls.Button)(target)); #line 52 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.downX.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 15: this.upY = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.upY.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 16: this.downY = ((System.Windows.Controls.Button)(target)); #line 54 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.downY.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 17: this.upXY = ((System.Windows.Controls.Button)(target)); #line 55 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.upXY.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 18: this.downXY = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.downXY.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 19: this.ComeBack = ((System.Windows.Controls.Button)(target)); #line 57 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.ComeBack.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 20: this.ZoomIn = ((System.Windows.Controls.Button)(target)); #line 58 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.ZoomIn.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 21: this.Cursor1 = ((System.Windows.Controls.Button)(target)); #line 59 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.Cursor1.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 22: this.Cursor2 = ((System.Windows.Controls.Button)(target)); #line 60 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.Cursor2.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 23: this.sliderMinTime = ((System.Windows.Controls.Slider)(target)); #line 61 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.sliderMinTime.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged); #line default #line hidden return; case 24: this.textBlockMinTime = ((System.Windows.Controls.TextBlock)(target)); return; case 25: this.textBlock1 = ((System.Windows.Controls.TextBlock)(target)); return; case 26: this.sliderMaxTime = ((System.Windows.Controls.Slider)(target)); #line 64 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.sliderMaxTime.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_ValueChanged); #line default #line hidden return; case 27: this.textBlock2 = ((System.Windows.Controls.TextBlock)(target)); return; case 28: this.textBlockMaxTime = ((System.Windows.Controls.TextBlock)(target)); return; case 29: this.Setter = ((System.Windows.Controls.Button)(target)); #line 67 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.Setter.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 30: this.ManualScroll = ((System.Windows.Controls.Button)(target)); #line 68 "..\..\..\RealtimeCurve\RealtimeCurve.xaml" this.ManualScroll.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 31: this.tbkCursorSpan = ((System.Windows.Controls.TextBlock)(target)); return; case 32: this.MinSliderMinValue = ((System.Windows.Controls.TextBlock)(target)); return; case 33: this.MinSliderMaxValue = ((System.Windows.Controls.TextBlock)(target)); return; case 34: this.MaxSliderMinValue = ((System.Windows.Controls.TextBlock)(target)); return; case 35: this.MaxSliderMaxValue = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Title = ((System.Windows.Controls.Grid)(target)); #line 9 "..\..\MainWindow.xaml" this.Title.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Title_MouseLeftButtonDown); #line default #line hidden return; case 2: this.FormalBtn = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\MainWindow.xaml" this.FormalBtn.Click += new System.Windows.RoutedEventHandler(this.FormalBtn_Click); #line default #line hidden return; case 3: this.AsianBtn = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\MainWindow.xaml" this.AsianBtn.Click += new System.Windows.RoutedEventHandler(this.AsianBtn_Click); #line default #line hidden return; case 4: this.heightBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 5: this.heigtSlider = ((System.Windows.Controls.Slider)(target)); #line 43 "..\..\MainWindow.xaml" this.heigtSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.heigtSlider_ValueChanged); #line default #line hidden return; case 6: this.weigtBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 7: this.weightSlider = ((System.Windows.Controls.Slider)(target)); #line 45 "..\..\MainWindow.xaml" this.weightSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.weightSlider_ValueChanged); #line default #line hidden return; case 8: this.numberOne = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.numberTwo = ((System.Windows.Controls.TextBlock)(target)); return; case 10: this.bmiText = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.returnBtn = ((System.Windows.Shapes.Ellipse)(target)); #line 64 "..\..\MainWindow.xaml" this.returnBtn.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.returnBtn_MouseLeftButtonDown); #line default #line hidden return; case 12: this.closeBtn = ((System.Windows.Shapes.Ellipse)(target)); #line 77 "..\..\MainWindow.xaml" this.closeBtn.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.closeBtn_MouseLeftButtonDown); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LayoutRoot = ((System.Windows.Controls.Grid)(target)); return; case 2: this.BackGround = ((System.Windows.Controls.Canvas)(target)); return; case 3: this.CrayonElement = ((System.Windows.Shapes.Polyline)(target)); return; case 4: this.PuzzleBoardElement = ((System.Windows.Controls.Canvas)(target)); return; case 5: this.GameBoardElement = ((System.Windows.Controls.Canvas)(target)); return; case 6: this.HandCursorElement = ((System.Windows.Shapes.Ellipse)(target)); return; case 7: this.HandCursorScale = ((System.Windows.Media.RotateTransform)(target)); return; case 8: this.Button1 = ((System.Windows.Controls.Button)(target)); #line 30 "..\..\MainWindow.xaml" this.Button1.Click += new System.Windows.RoutedEventHandler(this.NewLigature); #line default #line hidden return; case 9: this.Button2 = ((System.Windows.Controls.Button)(target)); #line 31 "..\..\MainWindow.xaml" this.Button2.Click += new System.Windows.RoutedEventHandler(this.RedrawPuzzle); #line default #line hidden return; case 10: this.Button3 = ((System.Windows.Controls.Button)(target)); #line 32 "..\..\MainWindow.xaml" this.Button3.Click += new System.Windows.RoutedEventHandler(this.ReadPuzzle); #line default #line hidden return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\MainWindow.xaml" ((KinectColorApp.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 5 "..\..\MainWindow.xaml" ((KinectColorApp.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden #line 5 "..\..\MainWindow.xaml" ((KinectColorApp.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_Size_Did_Change); #line default #line hidden return; case 2: this.drawingGrid = ((System.Windows.Controls.Grid)(target)); return; case 3: this.drawingCanvas = ((System.Windows.Controls.Canvas)(target)); return; case 4: this.backgroundImage = ((System.Windows.Controls.Image)(target)); return; case 5: this.drawBorder = ((System.Windows.Shapes.Rectangle)(target)); return; case 6: this.colorRect = ((System.Windows.Shapes.Rectangle)(target)); return; case 7: this.image1 = ((System.Windows.Controls.Image)(target)); return; case 8: this._0_code = ((System.Windows.Controls.Image)(target)); return; case 9: this._1_code = ((System.Windows.Controls.Image)(target)); return; case 10: this._2_code = ((System.Windows.Controls.Image)(target)); return; case 11: this._3_code = ((System.Windows.Controls.Image)(target)); return; case 12: this._4_code = ((System.Windows.Controls.Image)(target)); return; case 13: this.calibrationLabel = ((System.Windows.Controls.Label)(target)); return; case 14: this.red_selector = ((System.Windows.Shapes.Ellipse)(target)); return; case 15: this.green_selector = ((System.Windows.Shapes.Ellipse)(target)); return; case 16: this.blue_selector = ((System.Windows.Shapes.Ellipse)(target)); return; case 17: this.eraser_selector = ((System.Windows.Shapes.Ellipse)(target)); return; case 18: this.refresh_selector = ((System.Windows.Shapes.Ellipse)(target)); return; case 19: this.background_selector = ((System.Windows.Shapes.Ellipse)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.textBlock = ((System.Windows.Controls.TextBlock)(target)); return; case 2: this.img1 = ((System.Windows.Controls.Image)(target)); return; case 3: this.Images_5_jpg = ((System.Windows.Controls.Image)(target)); return; case 4: this.ExitButton = ((System.Windows.Controls.Button)(target)); #line 81 "..\..\Window3.xaml" this.ExitButton.Click += new System.Windows.RoutedEventHandler(this.ExitButton_Click); #line default #line hidden return; case 5: this.Retour = ((System.Windows.Controls.Button)(target)); #line 82 "..\..\Window3.xaml" this.Retour.Click += new System.Windows.RoutedEventHandler(this.retour); #line default #line hidden return; case 6: this.img2 = ((System.Windows.Controls.Image)(target)); return; case 7: this.ellipse1 = ((System.Windows.Shapes.Ellipse)(target)); #line 84 "..\..\Window3.xaml" this.ellipse1.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ellipse1_MD); #line default #line hidden return; case 8: this.ellipse2 = ((System.Windows.Shapes.Ellipse)(target)); #line 85 "..\..\Window3.xaml" this.ellipse2.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ellipse2_MD); #line default #line hidden return; case 9: this.ellipse3 = ((System.Windows.Shapes.Ellipse)(target)); #line 86 "..\..\Window3.xaml" this.ellipse3.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ellipse3_MD); #line default #line hidden return; case 10: this.img3 = ((System.Windows.Controls.Image)(target)); return; case 11: this.MyMediaElement = ((System.Windows.Controls.MediaElement)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ButGetInfo = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\MainWindow.xaml" this.ButGetInfo.Click += new System.Windows.RoutedEventHandler(this.ButGetInfo_Click); #line default #line hidden return; case 2: this.Instruction = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\MainWindow.xaml" this.Instruction.Click += new System.Windows.RoutedEventHandler(this.Instruction_Click); #line default #line hidden return; case 3: this.Green = ((System.Windows.Shapes.Ellipse)(target)); #line 24 "..\..\MainWindow.xaml" this.Green.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Green_MouseDown); #line default #line hidden return; case 4: this.Yellow = ((System.Windows.Shapes.Ellipse)(target)); #line 25 "..\..\MainWindow.xaml" this.Yellow.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Yellow_MouseDown); #line default #line hidden return; case 5: this.Red = ((System.Windows.Shapes.Ellipse)(target)); #line 26 "..\..\MainWindow.xaml" this.Red.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Red_MouseDown); #line default #line hidden return; case 6: this.CombinationName = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.Delete = ((System.Windows.Controls.Button)(target)); #line 31 "..\..\MainWindow.xaml" this.Delete.Click += new System.Windows.RoutedEventHandler(this.Delete_Click); #line default #line hidden return; case 8: this.addIntervall = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.AddCombinationRow = ((System.Windows.Controls.Button)(target)); #line 40 "..\..\MainWindow.xaml" this.AddCombinationRow.Click += new System.Windows.RoutedEventHandler(this.AddCombinationRow_Click); #line default #line hidden return; case 10: this.SaveBut = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\MainWindow.xaml" this.SaveBut.Click += new System.Windows.RoutedEventHandler(this.SaveBut_Click); #line default #line hidden return; case 11: this.TextBoxAdd = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.LedToAdd = ((System.Windows.Controls.ListBox)(target)); return; case 13: this.ErrorSection = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.CombinationsList = ((System.Windows.Controls.ListView)(target)); #line 53 "..\..\MainWindow.xaml" this.CombinationsList.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.CombinationsList_MouseDoubleClick); #line default #line hidden #line 53 "..\..\MainWindow.xaml" this.CombinationsList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.CombinationsList_SelectionChanged); #line default #line hidden return; case 15: this.LastingTime = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ImgSqaure1 = ((System.Windows.Controls.Image)(target)); #line 50 "..\..\..\..\..\10 Graphics\11 WPFColorPickerLib\ColorPicker.xaml" this.ImgSqaure1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Swatch_MouseLeftButtonDown); #line default #line hidden return; case 2: this.ImgSqaure2 = ((System.Windows.Controls.Image)(target)); #line 54 "..\..\..\..\..\10 Graphics\11 WPFColorPickerLib\ColorPicker.xaml" this.ImgSqaure2.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Swatch_MouseLeftButtonDown); #line default #line hidden return; case 3: this.ImgCircle1 = ((System.Windows.Controls.Image)(target)); #line 58 "..\..\..\..\..\10 Graphics\11 WPFColorPickerLib\ColorPicker.xaml" this.ImgCircle1.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Swatch_MouseLeftButtonDown); #line default #line hidden return; case 4: this.ColorImage = ((System.Windows.Controls.Image)(target)); return; case 5: this.CanvImage = ((System.Windows.Controls.Canvas)(target)); #line 88 "..\..\..\..\..\10 Graphics\11 WPFColorPickerLib\ColorPicker.xaml" this.CanvImage.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.CanvImage_MouseDown); #line default #line hidden #line 89 "..\..\..\..\..\10 Graphics\11 WPFColorPickerLib\ColorPicker.xaml" this.CanvImage.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.CanvImage_MouseUp); #line default #line hidden #line 90 "..\..\..\..\..\10 Graphics\11 WPFColorPickerLib\ColorPicker.xaml" this.CanvImage.MouseMove += new System.Windows.Input.MouseEventHandler(this.CanvImage_MouseMove); #line default #line hidden return; case 6: this.ellipsePixel = ((System.Windows.Shapes.Ellipse)(target)); return; case 7: this.previewPresenter = ((System.Windows.Controls.InkPresenter)(target)); return; case 8: this.txtAlpha = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.txtAlphaHex = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.txtRed = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.txtRedHex = ((System.Windows.Controls.TextBox)(target)); return; case 12: this.txtGreen = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.txtGreenHex = ((System.Windows.Controls.TextBox)(target)); return; case 14: this.txtBlue = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.txtBlueHex = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.txtAll = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.AlphaBorder = ((System.Windows.Controls.Border)(target)); return; case 18: this.AlphaSlider = ((System.Windows.Controls.Slider)(target)); #line 204 "..\..\..\..\..\10 Graphics\11 WPFColorPickerLib\ColorPicker.xaml" this.AlphaSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.AlphaSlider_ValueChanged); #line default #line hidden return; } this._contentLoaded = true; }