Esempio n. 1
1
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            Body = GetTemplateChild(BodyName) as Grid;
            Slider = GetTemplateChild(SliderName) as SuperSlider;

            if (Thumb == null)
                Thumb = new ColorSliderThumb();

            SelectedColor = GetTemplateChild(SelectedColorName) as Rectangle;
            
            SizeChanged += UserControl_SizeChanged;

            if (Slider != null)
            {
                Slider.ValueChanged += Slider_ValueChanged;

                if (Color.A == 0 && Color.R == 0 && Color.G == 0 && Color.B == 0)
                    Color = System.Windows.Media.Color.FromArgb(255, 6, 255, 0);
                else
                    UpdateLayoutBasedOnColor();
            }

			IsEnabledVisualStateUpdate();
        }
Esempio n. 2
1
        //Constructeur
        public Brique(Grid parent, double posX, double posY, bool cassable)
        {
            //Création de l'ellipse
            this._forme = new Rectangle();

            //Ajout au parent
            parent.Children.Add(this._forme);

            //Taille de la Brique
            this._forme.Height = 20;
            this._forme.Width = 60;

            //Position de la Brique
            this._forme.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            this._forme.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            this._forme.Margin = new System.Windows.Thickness(posX, posY, 0, 0);

            this.Cassable = cassable;

            //Couleur de la Brique
            //Couleur de fond
            Thread.Sleep(1);
            Random R = new Random(unchecked((int)DateTime.Now.Ticks));
            SolidColorBrush couleurFond = new SolidColorBrush();
            byte Red = (byte)(R.Next(253) + 1);
            byte Green = (byte)(R.Next(253) + 1);
            byte Blue = (byte)(R.Next(253) + 1);
            //Noire si incassable
            couleurFond.Color = cassable ? Color.FromRgb(Red, Green, Blue) : Color.FromRgb(0, 0, 0);
            this._forme.Fill = couleurFond;
            //Couleur de bordure
            SolidColorBrush couleurBord = new SolidColorBrush();
            couleurBord.Color = Color.FromRgb(255, 255, 255);
            this._forme.Stroke = couleurBord;
        }
Esempio n. 3
1
        public Meter8()
        {
            var borderBrush = new LinearGradientBrush();
            borderBrush.StartPoint = new Point();
            borderBrush.EndPoint = new Point(1d, 1d);
            borderBrush.GradientStops.Add(new GradientStop() { Color = Colors.White, Offset = 0d });
            borderBrush.GradientStops.Add(new GradientStop() { Color = Colors.White, Offset = 0.4999d });
            borderBrush.GradientStops.Add(new GradientStop() { Color = Color.FromArgb(0xff, 0x84, 0x7B, 0x6C), Offset = 0.5d });
            borderBrush.GradientStops.Add(new GradientStop() { Color = Color.FromArgb(0xff, 0x84, 0x7B, 0x6C), Offset = 1d });
            var border = new Rectangle();
            border.Fill = borderBrush;
            //border.Stroke = new SolidColorBrush(Colors.Black);
            //border.StrokeThickness = 1d;

            var background = new Rectangle();
            background.Fill = new SolidColorBrush(Color.FromArgb(0xff, 0xAD, 0xA7, 0x9D));
            background.Margin = new Thickness(4d);

            var grid = new Grid();
            grid.Children.Add(border);
            grid.Children.Add(background);
            grid.Children.Add(_canvas);
            grid.Children.Add(_calibrationCanvas);

            this.Content = grid;

            _label.Text = Value.ToString();
            _label.Foreground = new SolidColorBrush(ForeColor);

            _pointLine.Stroke = new SolidColorBrush(Colors.Red);
            _pointLine.StrokeThickness = 2d;
            this.SizeChanged += Meter_SizeChanged;
        }
Esempio n. 4
1
        public static Uri Create(string filename, string text, SolidColorBrush backgroundColor, double textSize, Size size)
        {
            var background = new Rectangle();
            background.Width = size.Width;
            background.Height = size.Height;
            background.Fill = backgroundColor;

            var textBlock = new TextBlock();
            textBlock.Width = 500;
            textBlock.Height = 500;
            textBlock.TextWrapping = TextWrapping.Wrap;
            textBlock.Text = text;
            textBlock.FontSize = textSize;
            textBlock.Foreground = new SolidColorBrush(Colors.White);
            textBlock.FontFamily = new FontFamily("Segoe WP");

            var tileImage = "/Shared/ShellContent/" + filename;
            using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
            {
                var bitmap = new WriteableBitmap((int)size.Width, (int)size.Height);
                bitmap.Render(background, new TranslateTransform());
                bitmap.Render(textBlock, new TranslateTransform() { X = 39, Y = 88 });
                var stream = store.CreateFile(tileImage);
                bitmap.Invalidate();
                bitmap.SaveJpeg(stream, (int)size.Width, (int)size.Height, 0, 99);
                stream.Close();
            }
            return new Uri("ms-appdata:///local" + tileImage, UriKind.Absolute);
        }
Esempio n. 5
1
        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);
        }
Esempio n. 6
0
		public override void OnApplyTemplate() {
			base.OnApplyTemplate();

			_spectrumDisplay = (Rectangle)GetTemplateChild("PART_SpectrumDisplay");
			CreateSpectrum();
			OnValueChanged(Double.NaN, Value);
		}
        public TileRenderer(Canvas canvas, string displayText, Tile tile)
        {
            Tile = tile;
            AnimationTime = TimeSpan.FromSeconds(0.25);
            this.canvas = canvas;
            Width = DefaultWidth;
            Height = DefaultHeight;
            rectangle = new Rectangle
            {
                HorizontalAlignment = HorizontalAlignment.Stretch,
                VerticalAlignment = VerticalAlignment.Stretch,
                Stroke = new SolidColorBrush(Colors.Black),
                Fill = new SolidColorBrush(Colors.WhiteSmoke)
            };
            Children.Add(rectangle);

            text = new TextBlock
            {
                Text = displayText,
                HorizontalAlignment = HorizontalAlignment.Stretch,
                TextAlignment = TextAlignment.Center,
                FontSize = 36,
                FontWeight = FontWeights.Bold,
                VerticalAlignment = VerticalAlignment.Top,
                Margin = new Thickness(0, 26, 0, 26)

            };

            Children.Add(text);
            canvas.Children.Add(this);
            SetPosition();
            tile.PositionChanged += UpdatePosition;
        }
Esempio n. 8
0
        public void CustomDataTemplate()
        {
            MyControl c = (MyControl)XamlReader.Load(@"
<x:MyControl xmlns=""http://schemas.microsoft.com/client/2007""
			xmlns:x=""clr-namespace:MoonTest.System.Windows;assembly=moon-unit"">
	<x:MyControl.ContentTemplate>
		<x:MyDataTemplate>
			<Rectangle />
		</x:MyDataTemplate>
	</x:MyControl.ContentTemplate>
</x:MyControl>");
            Rectangle r = new Rectangle();
            c.Content = r;
            c.ApplyTemplate();

            // Check that the visual tree matches up:
            // MyControl->ContentPresenter->Rectangle
            CreateAsyncTest(c,
                () =>
                {
                    Assert.VisualChildren(c,
                        new VisualNode<ContentPresenter>("#1",
                            new VisualNode<Rectangle>("#2")
                        )
                    );
                }
            );
        }
        public ColorGridBox()
        {
            // Define the ItemsPanel template.
            FrameworkElementFactory factoryUnigrid =
                            new FrameworkElementFactory(typeof(UniformGrid));
            factoryUnigrid.SetValue(UniformGrid.ColumnsProperty, 8);
            ItemsPanel = new ItemsPanelTemplate(factoryUnigrid);

            // Add items to the ListBox.
            foreach (string strColor in strColors)
            {
                // Create Rectangle and add to ListBox.
                Rectangle rect = new Rectangle();
                rect.Width = 12;
                rect.Height = 12;
                rect.Margin = new Thickness(4);
                rect.Fill = (Brush)
                    typeof(Brushes).GetProperty(strColor).GetValue(null, null);
                Items.Add(rect);

                // Create ToolTip for Rectangle.
                ToolTip tip = new ToolTip();
                tip.Content = strColor;
                rect.ToolTip = tip;
            }
            // Indicate that SelectedValue is Fill property of Rectangle item.
            SelectedValuePath = "Fill";
        }
Esempio n. 10
0
        public Paper()
        {
            // paper properties
            Background = new SolidColorBrush(Colors.White);
            Cursor = Cursors.IBeam;

            // setup caret
            caret = new Rectangle();
            caret.Fill = new SolidColorBrush(Colors.Black);
            caret.Height = 12;
            caret.Width = 1;
            caret.Margin = new Thickness(-1, 0, 0, 0);

            // setup caret timer
            caretTimer = new DispatcherTimer();
            caretTimer.Interval = TimeSpan.FromSeconds(0.5);
            caretTimer.Tick += delegate { caret.Visibility = (caret.Visibility == Visibility.Visible || !ShowCaret) ? Visibility.Collapsed : Visibility.Visible; };
            caretTimer.Start();

            // setup highlighting indicies
            HighlightedBlocks = new List<Character>();
            HighlightFromIndex = new Index(0, 0);
            HighlightToIndex = new Index(0, 0);

            // events
            MouseLeftButtonDown += Paper_MouseLeftButtonDown;
            MouseLeftButtonUp += Paper_MouseLeftButtonUp;
        }
Esempio n. 11
0
 private void Button_Loaded(object sender, RoutedEventArgs args)
 {
     System.Windows.Controls.Button button = sender as System.Windows.Controls.Button;
     if (button != null)
     {
         StackPanel panel = new StackPanel()
         {
             Orientation = Orientation.Horizontal
         };
         Image shield = new Image()
         {
             Width = 24,
             Source = Shield
         };
         panel.Children.Add(shield);
         Rectangle rect = new Rectangle()
         {
             Width = 10
         };
         panel.Children.Add(rect);
         TextBlock text = new TextBlock()
         {
             Text = (button.Command as RoutedUICommand).Text
         };
         panel.Children.Add(text);
         button.Content = panel;
     }
 }
Esempio n. 12
0
		public void TestImplicitStyleRectangle_multipleImplicitStylesInVisualTree ()
		{
			Style rectStyle1 = new Style { TargetType = typeof (Rectangle) };
			Setter setter = new Setter (FrameworkElement.WidthProperty, 100.0);
			rectStyle1.Setters.Add (setter);

			Style rectStyle2 = new Style { TargetType = typeof (Rectangle) };
			setter = new Setter (FrameworkElement.HeightProperty, 100.0);
			rectStyle2.Setters.Add (setter);

			Rectangle r = new Rectangle ();
			r.Resources.Add (typeof (Rectangle), rectStyle1);

			Canvas c = new Canvas ();
			c.Resources.Add (typeof (Rectangle), rectStyle2);

			c.Children.Add (r);

			Assert.IsTrue (Double.IsNaN (r.Height), "1");

			CreateAsyncTest (c,  () => {
					Assert.AreEqual (100.0, r.Width, "2");
					Assert.IsTrue (Double.IsNaN (r.Height), "3");

					r.Resources.Remove (typeof (Rectangle));

					Assert.AreEqual (100.0, r.Height, "4");
					Assert.IsTrue (Double.IsNaN (r.Width), "5");
				});
		}
        /// <summary>
        /// Draws the bone.
        /// </summary>
        /// <param name="trackedJoint1">The tracked joint1.</param>
        /// <param name="trackedJoint2">The tracked joint2.</param>
        /// 
        void drawBone(Joint trackedJoint1, Joint trackedJoint2)
        {
            Line bone = new Line();
            bone.Stroke = Brushes.Red;
            bone.StrokeThickness = 3;
            Point joint1 = this.ScalePosition(trackedJoint1.Position);
            bone.X1 = joint1.X;
            bone.Y1 = joint1.Y;

            Point mappedPoint1 = this.ScalePosition(trackedJoint1.Position);
            Rectangle r = new Rectangle(); r.Height = 10; r.Width = 10;
            r.Fill = Brushes.Red;
            Canvas.SetLeft(r, mappedPoint1.X - 2);
            Canvas.SetTop(r, mappedPoint1.Y - 2);
            this.caller.myCanvas.Children.Add(r);

            Point joint2 = this.ScalePosition(trackedJoint2.Position);
            bone.X2 = joint2.X;
            bone.Y2 = joint2.Y;

            Point mappedPoint2 = this.ScalePosition(trackedJoint2.Position);

            if (LeafJoint(trackedJoint2))
            {
                Rectangle r1 = new Rectangle(); r1.Height = 10; r1.Width = 10;
                r1.Fill = Brushes.Red;
                Canvas.SetLeft(r1, mappedPoint2.X - 2);
                Canvas.SetTop(r1, mappedPoint2.Y - 2);
                this.caller.myCanvas.Children.Add(r1);
                Point mappedPoint = this.ScalePosition(trackedJoint2.Position);

            }

            this.caller.myCanvas.Children.Add(bone);
        }
Esempio n. 14
0
        private void PictureTangle(string state, int row, int colume)
        {
            
            Rectangle rectangle = new Rectangle();
            rectangle.StrokeThickness = 3;
            rectangle.Stroke = Brushes.Black;
            rectangle.RadiusX = 30;
            rectangle.RadiusY = 30;
            rectangle.Width = 100;
            rectangle.Height = 80;

            Label label = new Label();
            label.Margin = new Thickness(0);
            label.Width = 100;
            label.Height = 80;
            label.Content = state;
            label.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center;
            label.VerticalContentAlignment = System.Windows.VerticalAlignment.Center;
            
            gridpic.Children.Add(rectangle);
            gridpic.Children.Add(label);

            Grid.SetRow(rectangle, row);
            Grid.SetColumn(rectangle, colume);

            Grid.SetRow(label, row);
            Grid.SetColumn(label, colume);
        }
        public void Render()
        {
            NEATGenome genome = (NEATGenome)this.pop.BestGenome;
            Substrate substrate = SubstrateFactory.factorSandwichSubstrate(resolution, resolution);
            HyperNEATCODEC codec = new HyperNEATCODEC();
            NEATNetwork phenotype = (NEATNetwork)codec.Decode(this.pop, substrate, genome);

            TrialEvaluation trial = new TrialEvaluation(phenotype, this.testCase);
            IntPair actualPos = trial.Query(resolution);

            // clear what was there before
            GridCanvas.Children.Clear();

            //
            double boxWidth = GridCanvas.ActualWidth / resolution;
            double boxHeight = GridCanvas.ActualHeight / resolution;
            double delta = 2.0 / resolution;
            int index = 0;

            for (int row = 0; row < resolution; row++)
            {
                double y = -1 + (row * delta);
                double boxY = row * boxHeight;
                for (int col = 0; col < resolution; col++)
                {
                    double x = -1 + (col * delta);
                    double boxX = col * boxWidth;

                    Rectangle r = new Rectangle();
                    r.SetValue(Canvas.LeftProperty, boxX);
                    r.SetValue(Canvas.TopProperty, boxY);
                    r.Width = boxWidth;
                    r.Height = boxHeight;

                    if (this.testCase.GetPixel(x, y) > 0)
                    {
                        r.Fill = Brushes.Blue;
                    }
                    else
                    {
                        double d = trial.Output[index];
                        int c = trial.Normalize(d, 255);
                        SolidColorBrush b = new SolidColorBrush(Color.FromRgb(255, (byte)c, 255));
                        r.Fill = b;
                        r.Stroke = Brushes.Black;
                    }

                    GridCanvas.Children.Add(r);
                    index++;
                }
            }

            Rectangle target = new Rectangle();
            target.SetValue(Canvas.LeftProperty, actualPos.X * boxWidth);
            target.SetValue(Canvas.TopProperty, actualPos.Y * boxHeight);
            target.Width = boxWidth;
            target.Height = boxHeight;
            target.Fill = Brushes.Red;
            GridCanvas.Children.Add(target);
        }
Esempio n. 16
0
		public void TestImplicitStyleRectangle_styleInRectangleDictionary ()
		{
			Style rectStyle = new Style { TargetType = typeof (Rectangle) };
			Setter setter = new Setter (FrameworkElement.WidthProperty, 100.0);
			rectStyle.Setters.Add (setter);

			Rectangle r = new Rectangle ();

			Assert.IsTrue (Double.IsNaN (r.Width), "1");

			r.Resources.Add (typeof (Rectangle), rectStyle);

			Assert.AreEqual (100.0, r.Width, "2");

			CreateAsyncTest (r,  () => {
					Assert.AreEqual (100.0, r.Width, "3");

					//setter.Value = 200.0;
					//Assert.AreEqual (200.0, r.Width, "4");

					rectStyle.Setters.Remove (setter);

					Assert.AreEqual (100.0, r.Width, "5");
				});
		}
Esempio n. 17
0
        private void PerformCaptureAnimation()
        {
            LoadingView.Text = "Processing ...";
            ShowLoadingView();

            curtain = new Rectangle();
            curtain.Fill = new SolidColorBrush(Colors.White);
            LayoutRoot.Children.Add(curtain);

            Storyboard animation = new Storyboard();
            Duration duration = new Duration(TimeSpan.FromSeconds(0.3));
            animation.Duration = duration;

            DoubleAnimation curtainAnimation = new DoubleAnimation();
            animation.Children.Add(curtainAnimation);
            curtainAnimation.Duration = duration;
            curtainAnimation.To = 0;
            curtainAnimation.EasingFunction = new CubicEase() { EasingMode = EasingMode.EaseIn };
            Storyboard.SetTarget(curtainAnimation, curtain);
            Storyboard.SetTargetProperty(curtainAnimation, new PropertyPath("Opacity"));

            animation.Completed += (sender, e) => {
                LayoutRoot.Children.Remove(curtain);
            };

            animation.Begin();
        }
 public structRectangle() {
     rect = new Rectangle();
     beginTime = new TimeSpan();
     handState = new HandState();
     position = "";
     gestureTried = false;
 }
 public void InitializeComponent()
 {
     if (!this._contentLoaded)
     {
         this._contentLoaded = true;
         Application.LoadComponent(this, new Uri("/TWC.OVP;component/Controls/ErrorMessageBox.xaml", UriKind.Relative));
         this.LayoutRoot = (Grid) base.FindName("LayoutRoot");
         this.DetailsEnabledStates = (VisualStateGroup) base.FindName("DetailsEnabledStates");
         this.ErrorMessageDetailDisabled = (VisualState) base.FindName("ErrorMessageDetailDisabled");
         this.ErrorMessageDetailEnabled = (VisualState) base.FindName("ErrorMessageDetailEnabled");
         this.DetailsStates = (VisualStateGroup) base.FindName("DetailsStates");
         this.DetailsVisible = (VisualState) base.FindName("DetailsVisible");
         this.DetailsNotVisible = (VisualState) base.FindName("DetailsNotVisible");
         this.BackgroundRectangle = (Rectangle) base.FindName("BackgroundRectangle");
         this.InnerDialogGrid = (Grid) base.FindName("InnerDialogGrid");
         this.DialogRectangle = (Rectangle) base.FindName("DialogRectangle");
         this.CloseButton = (Button) base.FindName("CloseButton");
         this.ErrorMessageTitleTextBlock = (TextBlock) base.FindName("ErrorMessageTitleTextBlock");
         this.ErrorMessageTextBlock = (TextBlock) base.FindName("ErrorMessageTextBlock");
         this.ButtonOK = (Button) base.FindName("ButtonOK");
         this.Icon = (TextBlock) base.FindName("Icon");
         this.SimpleErrorDetails = (Grid) base.FindName("SimpleErrorDetails");
         this.ShowDetailsToggle = (TextToggleButton) base.FindName("ShowDetailsToggle");
         this.DetailsTextBox = (TextBox) base.FindName("DetailsTextBox");
     }
 }
Esempio n. 20
0
        // Return a HitType value to indicate what is at the point.
        private HitType SetHitType(Rectangle rect, Point point)
        {
            double left = Canvas.GetLeft(rect);
            double top = Canvas.GetTop(rect);
            double right = left + rect.Width;
            double bottom = top + rect.Height;
            if (point.X < left) return HitType.None;
            if (point.X > right) return HitType.None;
            if (point.Y < top) return HitType.None;
            if (point.Y > bottom) return HitType.None;

            const double GAP = 10;
            if (point.X - left < GAP)
            {
                // Left edge.
                if (point.Y - top < GAP) return HitType.UL;
                if (bottom - point.Y < GAP) return HitType.LL;
                return HitType.L;
            }
            if (right - point.X < GAP)
            {
                // Right edge.
                if (point.Y - top < GAP) return HitType.UR;
                if (bottom - point.Y < GAP) return HitType.LR;
                return HitType.R;
            }
            if (point.Y - top < GAP) return HitType.T;
            if (bottom - point.Y < GAP) return HitType.B;
            return HitType.Body;
        }
Esempio n. 21
0
        public DragAdorner(UIElement owner, UIElement adornElement, bool useVisualBrush, double opacity)
            : base(owner)
        {
            System.Diagnostics.Debug.Assert(owner != null);
            System.Diagnostics.Debug.Assert(adornElement != null);
            _owner = owner;
            if (useVisualBrush)
            {
                VisualBrush _brush = new VisualBrush(adornElement);
                _brush.Opacity = opacity;
                Rectangle r = new Rectangle();
                r.RadiusX = 3;
                r.RadiusY = 3;

                //TODO: questioning DesiredSize vs. Actual 
                r.Width = adornElement.DesiredSize.Width;
                r.Height = adornElement.DesiredSize.Height;

                XCenter = adornElement.DesiredSize.Width / 2;
                YCenter = adornElement.DesiredSize.Height / 2;

                r.Fill = _brush;
                _child = r;

            }
            else
                _child = adornElement;


        }
Esempio n. 22
0
        void AllSprites_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add) {
                Sprite a = this.Instance.NewestSprite();
                var newRectangle = new Rectangle() {
                    Width = a.Width,
                    Height = a.Height,
                    Fill = a.Brush,
                    Tag = a
                };
                Canvas.SetTop(newRectangle, a.ScreenY());
                Canvas.SetLeft(newRectangle, a.ScreenX());
                newRectangle.MouseRightButtonDown += newRectangle_MouseRightButtonDown;
                this.canvas.Children.Add(newRectangle);
                if (this.cp != null) {
                    this.cp.livingSprites.ItemsSource = this.Instance.GetAllSprites().ToList();
                }
            } else if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Remove) {
                var idx = e.OldStartingIndex;
                Dispatcher.Invoke((Action)(() =>
                    {
                        this.canvas.Children.RemoveAt(idx);
                        if (this.cp != null) {
                            this.cp.livingSprites.ItemsSource = this.Instance.GetAllSprites().ToList();
                        }
                    }));

            } else if (e.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Reset) {
                this.canvas.Children.Clear();
                if (this.cp != null) {
                    this.cp.livingSprites.ItemsSource = this.Instance.GetAllSprites().ToList();
                }
            }
        }
Esempio n. 23
0
        //============== Funções ====================================
        public void CriarProcesso(double top, double left)
        {
            Rectangle rectangle;
            rectangle = new Rectangle();
            Canvas.SetTop(rectangle, top);
            Canvas.SetLeft(rectangle, left);
            rectangle.Fill = System.Windows.Media.Brushes.White;
            rectangle.Height = 20;
            rectangle.Width = 40;
            rectangle.StrokeThickness = 2;
            rectangle.Stroke = System.Windows.Media.Brushes.Gray;
            

            for (int i = 0; i < Processos.Count; i++)
            {
                if (Processos[i].Left == left && Processos[i].Top == top)
                {
                    Label lbl = new Label();
                    lbl.Content = "P" + Processos[i].ID;
                    Canvas.SetLeft(lbl, left + 10);
                    Canvas.SetTop(lbl, top - 2);

                    rectangle.Name = ("P" + Processos[i].ID);
                    Elementos.Add(rectangle);

                    Elementos.Add(lbl);

                    Processos[i].Texto = lbl;
                    break;
                }
            }

        }
Esempio n. 24
0
        /// <summary>
        /// Creates the window command rectangle.
        /// </summary>
        /// <param name="parentButton">The parent button.</param>
        /// <param name="style">The style.</param>
        /// <returns>Rectangle.</returns>
        public static Rectangle CreateWindowCommandRectangle(Button parentButton, string style)
        {
            Argument.IsNotNull(() => parentButton);
            Argument.IsNotNullOrWhitespace(() => style);

            var rectangle = new Rectangle
            {
                Width = 16d,
                Height = 16d,
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment = VerticalAlignment.Center,
                Stretch = Stretch.UniformToFill
            };

            rectangle.SetBinding(Rectangle.FillProperty, new Binding("Foreground")
            {
                Source = parentButton
            });

            var application = Application.Current;
            if (application != null)
            {
                rectangle.OpacityMask = new VisualBrush
                {
                    //Stretch = Stretch.Fill,
                    Visual = application.FindResource(style) as Visual
                };
            }

            return rectangle;
        }
Esempio n. 25
0
        public MainWindow()
        {
            InitializeComponent();

            imagen = new BitmapImage(new Uri(System.IO.Directory.GetCurrentDirectory() + @"\Imagenes\imagen.jpg"));
            Rectangle rectangle = new Rectangle();
            rectangle.Width = 500;
            rectangle.Height = 500;
            rectangle.Fill = new ImageBrush(imagen);

            tablero = new Tablero(3, 3, imagen);

            foreach (Pieza p in tablero.Piezas)
            {
                Rectangle r = new Rectangle();
                r.Width = Canvas.Width / tablero.Filas;
                r.Height = Canvas.Height / tablero.Columnas;
                r.Fill = new ImageBrush(p.Imagen);
                r.Stroke = new SolidColorBrush(Colors.Black);
                r.StrokeThickness = 1;
                r.SetValue(Canvas.LeftProperty, Convert.ToDouble(p.Columna * (Canvas.Width / tablero.Filas)));
                r.SetValue(Canvas.TopProperty, Convert.ToDouble(p.Fila * (Canvas.Height / tablero.Columnas)));
                Canvas.Children.Add(r);
            }
        }
Esempio n. 26
0
        private void SyncProperty()
        {
            _layoutRoot = FindName("LayoutRoot") as Canvas;
            _imageBorder = FindName("ImageBorder") as Rectangle;
            _mainImage = FindName("MainImage") as Image;
            _contentHolder = FindName("ContentHolder") as Canvas;
            _shadowCover = FindName("ShadowCover") as Rectangle;
            _fadeInStoryboard = FindName("FadeIn") as Storyboard;
            _fadeInShadowStory = FindName("FadeInShadow") as Storyboard;
            _fadeOutStoryboard = FindName("FadeOut") as Storyboard;
            _fadeOutStoryboard.Completed += new EventHandler(_fadeOutStoryboard_Completed);
            _fadeInShadowStory.Completed += new EventHandler(_fadeInShadowStory_Completed);

            _downloader = new Downloader();
            _downloader.DownloadFailed += new ErrorEventHandler(_downloader_DownloadFailed);
            _downloader.Completed += new EventHandler(_downloader_Completed);

            _imageTimer = new HtmlTimer();
            _imageTimer.Interval = 20;
            _imageTimer.Tick += new EventHandler(_imageTimer_Tick);

            _mainImage.MouseLeftButtonUp += new MouseEventHandler(_mainImage_MouseLeftButtonUp);
            _mainImage.Cursor = Cursors.Hand;

            // hide this instance.
            _imageBorder.Fill = null;
            _imageBorder.Stroke = null;

            // make event
            _mainImage.MouseEnter += new MouseEventHandler(_mainImage_MouseEnter);
            _mainImage.MouseLeave += new EventHandler(_mainImage_MouseLeave);
        }
Esempio n. 27
0
        /// <summary>
        /// Initializes a new instance of AxisSection class
        /// </summary>
        public AxisSection()
        {
            _rectangle = new Rectangle();
            _label = new TextBlock();

            SetValue(StrokeProperty, new SolidColorBrush(Color.FromRgb(131, 172, 191)));
            SetValue(FillProperty, new SolidColorBrush(Color.FromRgb(131, 172, 191)) {Opacity = .35});
            SetValue(StrokeThicknessProperty, 0d);
            SetValue(FromValueProperty, 0d);
            SetValue(ToValueProperty, 0d);

            BindingOperations.SetBinding(_rectangle, Shape.FillProperty,
                    new Binding { Path = new PropertyPath(FillProperty), Source = this });
            BindingOperations.SetBinding(_rectangle, Shape.StrokeProperty,
                    new Binding { Path = new PropertyPath(StrokeProperty), Source = this });
            BindingOperations.SetBinding(_rectangle, Shape.StrokeDashArrayProperty,
                    new Binding { Path = new PropertyPath(StrokeDashArrayProperty), Source = this });
            BindingOperations.SetBinding(_rectangle, Shape.StrokeThicknessProperty,
                    new Binding { Path = new PropertyPath(StrokeThicknessProperty), Source = this });

            BindingOperations.SetBinding(_label, TextBlock.TextProperty,
                new Binding {Path = new PropertyPath(LabelProperty), Source = this});

            Panel.SetZIndex(_rectangle, -1);
        }
Esempio n. 28
0
        private void DrawingArea_MouseDown(object sender, MouseButtonEventArgs e)
        {
            startingPoint = e.GetPosition(DrawingArea);
            if (currentState == drawingState.CreateNewBounds)
            {// Creating and tracking a new Rectangle
                toCreateRectangle = new System.Windows.Shapes.Rectangle();
                toCreateRectangle.Stroke = Brushes.Black;
                toCreateRectangle.Opacity = .25;
                toCreateRectangle.Fill = Brushes.RosyBrown;
                toCreateRectangle.StrokeThickness = 4;
                toCreateRectangle.MinWidth = 25;
                toCreateRectangle.MinHeight = 25;
                Canvas.SetLeft(toCreateRectangle, startingPoint.X);
                Canvas.SetTop(toCreateRectangle, startingPoint.Y);
                DrawingArea.Children.Add(toCreateRectangle);
            }
            if (currentState == drawingState.PanView)
            {
                HitTestResult result = VisualTreeHelper.HitTest(DrawingArea, startingPoint);
                if (result != null)
                {
                    if (result.VisualHit is Rectangle)
                    {
                        toCreateRectangle = (Rectangle)result.VisualHit;

                        double offSetX = Canvas.GetLeft(toCreateRectangle) - startingPoint.X;
                        double offSetY = Canvas.GetTop(toCreateRectangle) - startingPoint.Y;
                        startingPoint = new Point(offSetX, offSetY);
                    }
                }
            }
        }
Esempio n. 29
0
        public DragAdorner(UIElement owner, UIElement adornElement, bool useVisualBrush, double opacity)
            : base(owner)
        {
            this.owner  = owner;

            if (useVisualBrush)
            {
                VisualBrush brush   = new VisualBrush(adornElement);
                Rectangle   rect    = new Rectangle();

                brush.Opacity       = opacity;
                rect.RadiusX        = 3;
                rect.RadiusY        = 3;
                rect.Width          = adornElement.DesiredSize.Width;
                rect.Height         = adornElement.DesiredSize.Height;

                this.XCenter        = adornElement.DesiredSize.Width / 2;
                this.YCenter        = adornElement.DesiredSize.Height / 2;

                rect.Fill = brush;

                this.child = rect;
            }
            else
            {
                this.child = adornElement;
            }
        }
Esempio n. 30
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.layer1 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 2:
                this.path3556 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 3:
                this.rect1314 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.rect6903 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.g2281 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 6:
                this.rect5013 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 7:
                this.rect2245 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.rect2249 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.rect2253 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.rect2257 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.rect2261 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 12:
                this.rect2265 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 13:
                this.rect2269 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 14:
                this.rect2273 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 15:
                this.rect2277 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 16:
                this.rect1460 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 17:
                this.rect8390 = ((System.Windows.Shapes.Path)(target));
                return;

            case 18:
                this.path2909 = ((System.Windows.Shapes.Path)(target));
                return;

            case 19:
                this.rect1593 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 20:
                this.g1387 = ((System.Windows.Controls.Canvas)(target));
                return;

            case 21:
                this.path2086 = ((System.Windows.Shapes.Path)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 31
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 4 "..\..\MainWindow.xaml"
     ((Adgang.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.DataWindow_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.listKort = ((System.Windows.Controls.DataGrid)(target));
     
     #line 6 "..\..\MainWindow.xaml"
     this.listKort.Loaded += new System.Windows.RoutedEventHandler(this.DataGrid_Loaded);
     
     #line default
     #line hidden
     return;
     case 3:
     this.canvas1 = ((System.Windows.Controls.Canvas)(target));
     return;
     case 4:
     this.buttonKort = ((System.Windows.Controls.Button)(target));
     
     #line 11 "..\..\MainWindow.xaml"
     this.buttonKort.Click += new System.Windows.RoutedEventHandler(this.buttonKort_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.groupBoxTall = ((System.Windows.Controls.GroupBox)(target));
     return;
     case 6:
     this.rectangleLampe = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 7:
     this.button1 = ((System.Windows.Controls.Button)(target));
     
     #line 17 "..\..\MainWindow.xaml"
     this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.button2 = ((System.Windows.Controls.Button)(target));
     
     #line 18 "..\..\MainWindow.xaml"
     this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.button3 = ((System.Windows.Controls.Button)(target));
     
     #line 19 "..\..\MainWindow.xaml"
     this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.button4 = ((System.Windows.Controls.Button)(target));
     
     #line 22 "..\..\MainWindow.xaml"
     this.button4.Click += new System.Windows.RoutedEventHandler(this.button4_Click);
     
     #line default
     #line hidden
     return;
     case 11:
     this.button5 = ((System.Windows.Controls.Button)(target));
     
     #line 23 "..\..\MainWindow.xaml"
     this.button5.Click += new System.Windows.RoutedEventHandler(this.button5_Click);
     
     #line default
     #line hidden
     return;
     case 12:
     this.button6 = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\MainWindow.xaml"
     this.button6.Click += new System.Windows.RoutedEventHandler(this.button6_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.button7 = ((System.Windows.Controls.Button)(target));
     
     #line 27 "..\..\MainWindow.xaml"
     this.button7.Click += new System.Windows.RoutedEventHandler(this.button7_Click);
     
     #line default
     #line hidden
     return;
     case 14:
     this.button8 = ((System.Windows.Controls.Button)(target));
     
     #line 28 "..\..\MainWindow.xaml"
     this.button8.Click += new System.Windows.RoutedEventHandler(this.button8_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.button9 = ((System.Windows.Controls.Button)(target));
     
     #line 29 "..\..\MainWindow.xaml"
     this.button9.Click += new System.Windows.RoutedEventHandler(this.button9_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.buttonStar = ((System.Windows.Controls.Button)(target));
     
     #line 32 "..\..\MainWindow.xaml"
     this.buttonStar.Click += new System.Windows.RoutedEventHandler(this.buttonStar_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.button0 = ((System.Windows.Controls.Button)(target));
     
     #line 33 "..\..\MainWindow.xaml"
     this.button0.Click += new System.Windows.RoutedEventHandler(this.button0_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.buttonNumber = ((System.Windows.Controls.Button)(target));
     return;
     case 19:
     this.buttonAvslutt = ((System.Windows.Controls.Button)(target));
     
     #line 40 "..\..\MainWindow.xaml"
     this.buttonAvslutt.Click += new System.Windows.RoutedEventHandler(this.buttonAvslutt_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.buttonReset = ((System.Windows.Controls.Button)(target));
     
     #line 41 "..\..\MainWindow.xaml"
     this.buttonReset.Click += new System.Windows.RoutedEventHandler(this.buttonReset_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\..\OknoMecz.xaml"
                ((Football_Manager.OknoMecz)(target)).IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.UserControl_IsVisibleChanged);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\..\OknoMecz.xaml"
                this.powrot.Click += new System.Windows.RoutedEventHandler(this.powrot_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\..\OknoMecz.xaml"
                this.bTimer.Click += new System.Windows.RoutedEventHandler(this.bTimer_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.lGospodarzNazwa = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.lGole = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.lGoscNazwa = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.rPosiadaniePilkiGospodarz = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.rPosiadaniePilkiGosc = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.rSkutecznoscAtakuGospodarz = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.rSkutecznoscAtakuGosc = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.lPosiadaniePilkiGospodarz = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.lPosiadaniePilkiGosc = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.lSkutecznoscAtakuGospodarz = ((System.Windows.Controls.Label)(target));
                return;

            case 14:
                this.lSkutecznoscAtakuGosc = ((System.Windows.Controls.Label)(target));
                return;

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

            case 16:
                this.lPilkePosiada = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.lRelacja = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 33
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MRectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:
                this.SliderR = ((System.Windows.Controls.Slider)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.SliderR.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SliderR_OnValueChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.SliderG = ((System.Windows.Controls.Slider)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.SliderG.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SliderG_OnValueChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.SliderB = ((System.Windows.Controls.Slider)(target));

            #line 33 "..\..\MainWindow.xaml"
                this.SliderB.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SliderB_OnValueChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.XSlider = ((System.Windows.Controls.Slider)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.XSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.XSlider_OnValueChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.YSlider = ((System.Windows.Controls.Slider)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.YSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.YSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.ZSlider = ((System.Windows.Controls.Slider)(target));

            #line 39 "..\..\MainWindow.xaml"
                this.ZSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ZSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.CSlider = ((System.Windows.Controls.Slider)(target));

            #line 43 "..\..\MainWindow.xaml"
                this.CSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.CSlider_ValueChanged);

            #line default
            #line hidden
                return;

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

            #line 44 "..\..\MainWindow.xaml"
                this.MSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.MSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.Y2Slider = ((System.Windows.Controls.Slider)(target));

            #line 45 "..\..\MainWindow.xaml"
                this.Y2Slider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Y2Slider_ValueChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.KSlider = ((System.Windows.Controls.Slider)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.KSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.KSlider_ValueChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.btRed = ((System.Windows.Controls.Button)(target));

            #line 50 "..\..\MainWindow.xaml"
                this.btRed.Click += new System.Windows.RoutedEventHandler(this.BtRed_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.btYellow = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\MainWindow.xaml"
                this.btYellow.Click += new System.Windows.RoutedEventHandler(this.BtYellow_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.tbGreen = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\MainWindow.xaml"
                this.tbGreen.Click += new System.Windows.RoutedEventHandler(this.TbGreen_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.btBlue = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\MainWindow.xaml"
                this.btBlue.Click += new System.Windows.RoutedEventHandler(this.BtBlue_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.btPurple = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.btPurple.Click += new System.Windows.RoutedEventHandler(this.BtPurple_Click);

            #line default
            #line hidden
                return;

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

            #line 55 "..\..\MainWindow.xaml"
                this.btGray.Click += new System.Windows.RoutedEventHandler(this.BtGray_Click);

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

            #line 4 "..\..\..\UCOptions\LookandFeel.xaml"
                ((ControlPanel.UCOptions.LookandFeel)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 7 "..\..\..\UCOptions\LookandFeel.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

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

            case 5:
                this.txtOrganisationName = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

            #line 7 "..\..\..\UCOptions\LookandFeel.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.txtBackGround = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.currentColor = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.btnEditColor = ((System.Windows.Controls.Button)(target));

            #line 7 "..\..\..\UCOptions\LookandFeel.xaml"
                this.btnEditColor.Click += new System.Windows.RoutedEventHandler(this.btnEditColor_Click);

            #line default
            #line hidden
                return;

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

            #line 8 "..\..\..\UCOptions\LookandFeel.xaml"
                this.ckDefaultLogo.Checked += new System.Windows.RoutedEventHandler(this.ckDefaultLogo_Checked);

            #line default
            #line hidden

            #line 8 "..\..\..\UCOptions\LookandFeel.xaml"
                this.ckDefaultLogo.Unchecked += new System.Windows.RoutedEventHandler(this.ckDefaultLogo_Unchecked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 35
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.iWindow = ((ImageViewer.ImageWindow)(target));

            #line 20 "..\..\..\ImageWindow.xaml"
                this.iWindow.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.hnd_DragWindow);

            #line default
            #line hidden

            #line 21 "..\..\..\ImageWindow.xaml"
                this.iWindow.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.hnd_SpinWheel);

            #line default
            #line hidden

            #line 22 "..\..\..\ImageWindow.xaml"
                this.iWindow.DragOver += new System.Windows.DragEventHandler(this.hnd_DragOver);

            #line default
            #line hidden

            #line 23 "..\..\..\ImageWindow.xaml"
                this.iWindow.Drop += new System.Windows.DragEventHandler(this.hnd_Drop);

            #line default
            #line hidden

            #line 24 "..\..\..\ImageWindow.xaml"
                this.iWindow.KeyDown += new System.Windows.Input.KeyEventHandler(this.hnd_DownKey);

            #line default
            #line hidden

            #line 25 "..\..\..\ImageWindow.xaml"
                this.iWindow.Activated += new System.EventHandler(this.hnd_Activated);

            #line default
            #line hidden

            #line 26 "..\..\..\ImageWindow.xaml"
                this.iWindow.ContentRendered += new System.EventHandler(this.hnd_ContentRendered);

            #line default
            #line hidden
                return;

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

            case 3:
                this.movie = ((System.Windows.Controls.MediaElement)(target));

            #line 195 "..\..\..\ImageWindow.xaml"
                this.movie.MediaEnded += new System.Windows.RoutedEventHandler(this.hnd_MediaEnded);

            #line default
            #line hidden

            #line 196 "..\..\..\ImageWindow.xaml"
                this.movie.MediaOpened += new System.Windows.RoutedEventHandler(this.hnd_MediaOpened);

            #line default
            #line hidden
                return;

            case 4:
                this.img_gif = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.img = ((System.Windows.Controls.Image)(target));
                return;

            case 6:
                this.leftField = ((System.Windows.Shapes.Rectangle)(target));

            #line 206 "..\..\..\ImageWindow.xaml"
                this.leftField.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.hnd_ClickLeftField);

            #line default
            #line hidden
                return;

            case 7:
                this.rightField = ((System.Windows.Shapes.Rectangle)(target));

            #line 209 "..\..\..\ImageWindow.xaml"
                this.rightField.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.hnd_ClickRightField);

            #line default
            #line hidden
                return;

            case 8:

            #line 211 "..\..\..\ImageWindow.xaml"
                ((System.Windows.Controls.ContentControl)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.hnd_DClickWindow);

            #line default
            #line hidden
                return;

            case 9:
                this.middleField = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.SeekBar = ((System.Windows.Controls.Slider)(target));

            #line 223 "..\..\..\ImageWindow.xaml"
                this.SeekBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.hnd_SeekBarValueChanged);

            #line default
            #line hidden

            #line 224 "..\..\..\ImageWindow.xaml"
                this.SeekBar.AddHandler(System.Windows.Controls.Primitives.Thumb.DragStartedEvent, new System.Windows.Controls.Primitives.DragStartedEventHandler(this.hnd_SeekBarDragStarted));

            #line default
            #line hidden

            #line 225 "..\..\..\ImageWindow.xaml"
                this.SeekBar.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.hnd_SeekBarDragCompleted));

            #line default
            #line hidden

            #line 226 "..\..\..\ImageWindow.xaml"
                this.SeekBar.KeyDown += new System.Windows.Input.KeyEventHandler(this.hnd_SeekBarKeyDown);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PART_Border = ((System.Windows.Controls.Border)(target));
                return;

            case 2:
                this.TitleBar = ((System.Windows.Controls.Border)(target));

            #line 16 "..\..\header.xaml"
                this.TitleBar.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TitleBarMouseLeftButtonDown);

            #line default
            #line hidden

            #line 16 "..\..\header.xaml"
                this.TitleBar.MouseMove += new System.Windows.Input.MouseEventHandler(this.TitleBarMouseMove);

            #line default
            #line hidden
                return;

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

            #line 25 "..\..\header.xaml"
                this.Icon.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.IconMouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

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

            #line 27 "..\..\header.xaml"
                this.MinButton.Click += new System.Windows.RoutedEventHandler(this.MinButtonClick);

            #line default
            #line hidden
                return;

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

            #line 34 "..\..\header.xaml"
                this.MaxButton.Click += new System.Windows.RoutedEventHandler(this.MaxButtonClick);

            #line default
            #line hidden
                return;

            case 7:
                this.PART_MaxButton_Path = ((System.Windows.Shapes.Path)(target));
                return;

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

            #line 54 "..\..\header.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButtonClick);

            #line default
            #line hidden
                return;

            case 9:
                this.lnSizeNorth = ((System.Windows.Shapes.Line)(target));

            #line 71 "..\..\header.xaml"
                this.lnSizeNorth.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeNorth);

            #line default
            #line hidden
                return;

            case 10:
                this.lnSizeSouth = ((System.Windows.Shapes.Line)(target));

            #line 79 "..\..\header.xaml"
                this.lnSizeSouth.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeSouth);

            #line default
            #line hidden
                return;

            case 11:
                this.lnSizeWest = ((System.Windows.Shapes.Line)(target));

            #line 88 "..\..\header.xaml"
                this.lnSizeWest.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeWest);

            #line default
            #line hidden
                return;

            case 12:
                this.lnSizeEast = ((System.Windows.Shapes.Line)(target));

            #line 96 "..\..\header.xaml"
                this.lnSizeEast.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeEast);

            #line default
            #line hidden
                return;

            case 13:
                this.rectSizeNorthWest = ((System.Windows.Shapes.Rectangle)(target));

            #line 104 "..\..\header.xaml"
                this.rectSizeNorthWest.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeNorthWest);

            #line default
            #line hidden
                return;

            case 14:
                this.rectSizeNorthEast = ((System.Windows.Shapes.Rectangle)(target));

            #line 105 "..\..\header.xaml"
                this.rectSizeNorthEast.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeNorthEast);

            #line default
            #line hidden
                return;

            case 15:
                this.rectSizeSouthWest = ((System.Windows.Shapes.Rectangle)(target));

            #line 106 "..\..\header.xaml"
                this.rectSizeSouthWest.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeSouthWest);

            #line default
            #line hidden
                return;

            case 16:
                this.rectSizeSouthEast = ((System.Windows.Shapes.Rectangle)(target));

            #line 107 "..\..\header.xaml"
                this.rectSizeSouthEast.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.OnSizeSouthEast);

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

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

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

            case 4:
                this.DecBlue1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.DecBlue2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 6:
                this.DecBlue3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 7:
                this.DecBlue4 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.DecBlue5 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.DecBlue6 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.DecBlue7 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.DecBlue9 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 12:
                this.DecBlue10 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 13:
                this.DecBlue11 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 14:
                this.DecBlue12 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 15:
                this.DecBlue9_Copy = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 16:
                this.DecTimeHighlight = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 17:
                this.DecAvailableTime = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 18:
                this.DecBlue8_Copy = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 19:
                this.DecDaysMonthScroller = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            case 21:
                this.DaysOfMonthBG = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 22:
                this.CurrentDay = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 23:
                this.Day1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 24:
                this.Day2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 25:
                this.Day3 = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            case 28:
                this.Day6 = ((System.Windows.Controls.Grid)(target));
                return;

            case 29:
                this.Day7 = ((System.Windows.Controls.Grid)(target));
                return;

            case 30:
                this.Day8 = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this.Day9 = ((System.Windows.Controls.Grid)(target));
                return;

            case 32:
                this.Day10 = ((System.Windows.Controls.Grid)(target));
                return;

            case 33:
                this.Day11 = ((System.Windows.Controls.Grid)(target));
                return;

            case 34:
                this.Day12 = ((System.Windows.Controls.Grid)(target));
                return;

            case 35:
                this.Day13 = ((System.Windows.Controls.Grid)(target));
                return;

            case 36:
                this.Day14 = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 38:
                this.Day16 = ((System.Windows.Controls.Grid)(target));
                return;

            case 39:
                this.Day17 = ((System.Windows.Controls.Grid)(target));
                return;

            case 40:
                this.Day18 = ((System.Windows.Controls.Grid)(target));
                return;

            case 41:
                this.Day19 = ((System.Windows.Controls.Grid)(target));
                return;

            case 42:
                this.Day20 = ((System.Windows.Controls.Grid)(target));
                return;

            case 43:
                this.Day21 = ((System.Windows.Controls.Grid)(target));
                return;

            case 44:
                this.Day22 = ((System.Windows.Controls.Grid)(target));
                return;

            case 45:
                this.Day23 = ((System.Windows.Controls.Grid)(target));
                return;

            case 46:
                this.Day24 = ((System.Windows.Controls.Grid)(target));
                return;

            case 47:
                this.Day25 = ((System.Windows.Controls.Grid)(target));
                return;

            case 48:
                this.Day26 = ((System.Windows.Controls.Grid)(target));
                return;

            case 49:
                this.Day27 = ((System.Windows.Controls.Grid)(target));
                return;

            case 50:
                this.Day28 = ((System.Windows.Controls.Grid)(target));
                return;

            case 51:
                this.Day29 = ((System.Windows.Controls.Grid)(target));
                return;

            case 52:
                this.Day30 = ((System.Windows.Controls.Grid)(target));
                return;

            case 53:
                this.Day31 = ((System.Windows.Controls.Grid)(target));
                return;

            case 54:
                this.calendarButton = ((System.Windows.Controls.Button)(target));

            #line 817 "..\..\ScheduleDecPage.xaml"
                this.calendarButton.Click += new System.Windows.RoutedEventHandler(this.calendarButton_Click);

            #line default
            #line hidden
                return;

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

            #line 823 "..\..\ScheduleDecPage.xaml"
                this.homeButton.Click += new System.Windows.RoutedEventHandler(this.homeButton_Click);

            #line default
            #line hidden
                return;

            case 56:
                this.eventsButton = ((System.Windows.Controls.Button)(target));

            #line 829 "..\..\ScheduleDecPage.xaml"
                this.eventsButton.Click += new System.Windows.RoutedEventHandler(this.eventsButton_Click);

            #line default
            #line hidden
                return;

            case 57:
                this.routesButton = ((System.Windows.Controls.Button)(target));

            #line 835 "..\..\ScheduleDecPage.xaml"
                this.routesButton.Click += new System.Windows.RoutedEventHandler(this.routesButton_Click);

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

            #line 8 "..\..\CoursePeriodPreferences.xaml"
                ((UniversityTimetabling.CoursePeriodPreferences)(target)).Initialized += new System.EventHandler(this.coursePeriodPreferences_Initialized);

            #line default
            #line hidden
                return;

            case 2:
                this.courseperiodGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 10 "..\..\CoursePeriodPreferences.xaml"
                this.courseperiodGrid.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.courseperiodGrid_MouseDoubleClick);

            #line default
            #line hidden
                return;

            case 3:
                this.addCoursePeriodPreference = ((System.Windows.Shapes.Rectangle)(target));

            #line 21 "..\..\CoursePeriodPreferences.xaml"
                this.addCoursePeriodPreference.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.addCoursePeriodPreference_MouseUp);

            #line default
            #line hidden
                return;

            case 4:
                this.editCoursePeriodPreference = ((System.Windows.Shapes.Rectangle)(target));

            #line 22 "..\..\CoursePeriodPreferences.xaml"
                this.editCoursePeriodPreference.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.editCoursePeriodPreference_MouseUp);

            #line default
            #line hidden
                return;

            case 5:
                this.deleteCoursePeriodPreference = ((System.Windows.Shapes.Rectangle)(target));

            #line 23 "..\..\CoursePeriodPreferences.xaml"
                this.deleteCoursePeriodPreference.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.deleteCoursePeriodPreference_MouseUp);

            #line default
            #line hidden
                return;

            case 6:
                this.labelAddCoursePeriodPreference = ((System.Windows.Controls.Label)(target));

            #line 24 "..\..\CoursePeriodPreferences.xaml"
                this.labelAddCoursePeriodPreference.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.addCoursePeriodPreference_MouseUp);

            #line default
            #line hidden
                return;

            case 7:
                this.labelDeleteCoursePeriodPreference = ((System.Windows.Controls.Label)(target));

            #line 25 "..\..\CoursePeriodPreferences.xaml"
                this.labelDeleteCoursePeriodPreference.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.deleteCoursePeriodPreference_MouseUp);

            #line default
            #line hidden
                return;

            case 8:
                this.recAddIcon = ((System.Windows.Shapes.Rectangle)(target));

            #line 35 "..\..\CoursePeriodPreferences.xaml"
                this.recAddIcon.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.addCoursePeriodPreference_MouseUp);

            #line default
            #line hidden
                return;

            case 9:
                this.recEditIcon = ((System.Windows.Shapes.Rectangle)(target));

            #line 40 "..\..\CoursePeriodPreferences.xaml"
                this.recEditIcon.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.editCoursePeriodPreference_MouseUp);

            #line default
            #line hidden
                return;

            case 10:
                this.recIconDelete = ((System.Windows.Shapes.Rectangle)(target));

            #line 45 "..\..\CoursePeriodPreferences.xaml"
                this.recIconDelete.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.deleteCoursePeriodPreference_MouseUp);

            #line default
            #line hidden
                return;

            case 11:
                this.refreshCoursePeriodPreferences = ((System.Windows.Shapes.Rectangle)(target));

            #line 50 "..\..\CoursePeriodPreferences.xaml"
                this.refreshCoursePeriodPreferences.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.refreshCoursePeriodPreferences_MouseUp);

            #line default
            #line hidden
                return;

            case 12:
                this.labelRefreshCoursePeriodPreferences = ((System.Windows.Controls.Label)(target));

            #line 51 "..\..\CoursePeriodPreferences.xaml"
                this.labelRefreshCoursePeriodPreferences.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.refreshCoursePeriodPreferences_MouseUp);

            #line default
            #line hidden
                return;

            case 13:
                this.recIconRefresh = ((System.Windows.Shapes.Rectangle)(target));

            #line 61 "..\..\CoursePeriodPreferences.xaml"
                this.recIconRefresh.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.refreshCoursePeriodPreferences_MouseUp);

            #line default
            #line hidden
                return;

            case 14:
                this.labelName = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.txtFilterByName = ((System.Windows.Controls.TextBox)(target));

            #line 67 "..\..\CoursePeriodPreferences.xaml"
                this.txtFilterByName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtFilterByName_TextChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.txtFilterByTeacher = ((System.Windows.Controls.TextBox)(target));

            #line 68 "..\..\CoursePeriodPreferences.xaml"
                this.txtFilterByTeacher.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtFilterByName_TextChanged);

            #line default
            #line hidden
                return;

            case 17:
                this.labelTeacher = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.comboBoxDays = ((System.Windows.Controls.ComboBox)(target));

            #line 70 "..\..\CoursePeriodPreferences.xaml"
                this.comboBoxDays.Initialized += new System.EventHandler(this.comboBoxDays_Initialized);

            #line default
            #line hidden

            #line 70 "..\..\CoursePeriodPreferences.xaml"
                this.comboBoxDays.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBoxDays_SelectionChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.labelDay = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.clearFilterPeriodPreferences = ((System.Windows.Shapes.Rectangle)(target));

            #line 79 "..\..\CoursePeriodPreferences.xaml"
                this.clearFilterPeriodPreferences.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.clearFilterPeriodPreferences_MouseUp);

            #line default
            #line hidden
                return;

            case 21:
                this.labelClearFilterPeriodPreferences = ((System.Windows.Controls.Label)(target));

            #line 80 "..\..\CoursePeriodPreferences.xaml"
                this.labelClearFilterPeriodPreferences.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.clearFilterPeriodPreferences_MouseUp);

            #line default
            #line hidden
                return;

            case 22:
                this.recIconClearFilters = ((System.Windows.Shapes.Rectangle)(target));

            #line 90 "..\..\CoursePeriodPreferences.xaml"
                this.recIconClearFilters.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.clearFilterPeriodPreferences_MouseUp);

            #line default
            #line hidden
                return;

            case 23:
                this.labelEditCoursePeriodPreference = ((System.Windows.Controls.Label)(target));

            #line 95 "..\..\CoursePeriodPreferences.xaml"
                this.labelEditCoursePeriodPreference.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.editCoursePeriodPreference_MouseUp);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menukasir1 = ((test.menukasir)(target));
                return;

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

            case 3:
                this.txt_trans = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 5:
                this.label_bayar = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.bayar_box = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.label_total = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 25 "..\..\menukasir.xaml"
                this.savetrans.Click += new System.Windows.RoutedEventHandler(this.savetrans_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.GridTransaksi = ((System.Windows.Controls.DataGrid)(target));

            #line 26 "..\..\menukasir.xaml"
                this.GridTransaksi.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.DataGrid_LoadingRow);

            #line default
            #line hidden
                return;

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

            case 11:
                this.side = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 12:
                this.tanggaltrans = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.@operator = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.op = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.AkunSaya = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\menukasir.xaml"
                this.AkunSaya.Click += new System.Windows.RoutedEventHandler(this.lakun_click);

            #line default
            #line hidden
                return;

            case 16:
                this.dataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 17:
                this.logout_kasir = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\menukasir.xaml"
                this.logout_kasir.Click += new System.Windows.RoutedEventHandler(this.logoutkasir_click);

            #line default
            #line hidden
                return;

            case 18:
                this.tambah_trans = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\menukasir.xaml"
                this.tambah_trans.Click += new System.Windows.RoutedEventHandler(this.TAM_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.nomOp = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 20:
                this.total = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 21:
                this.opr = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 22:
                this.label_kembali = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.kmbl = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 49 "..\..\menukasir.xaml"
                this.kembali.Click += new System.Windows.RoutedEventHandler(this.kembali_Click);

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

            #line 18 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_ayuda.Click += new System.Windows.RoutedEventHandler(this.btn_ayuda_Click);

            #line default
            #line hidden
                return;

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

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

            #line 25 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_salir.Click += new System.Windows.RoutedEventHandler(this.btn_salir_proveedores__Click);

            #line default
            #line hidden
                return;

            case 4:
                this.btn_salir_roles = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 31 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_usuario.Click += new System.Windows.RoutedEventHandler(this.btn_usuario_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.lbl_fecha = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 41 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_minimizar.Click += new System.Windows.RoutedEventHandler(this.btn_minimizar_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.img_minimizar_png = ((System.Windows.Controls.Image)(target));
                return;

            case 9:
                this.btn_maximizar = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_maximizar.Click += new System.Windows.RoutedEventHandler(this.btn_maximizar_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.img_maximizar_png = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.btn_cerrar = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_cerrar.Click += new System.Windows.RoutedEventHandler(this.btn_cerrar_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.img_cancelar_png = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.barra_movil = ((System.Windows.Shapes.Rectangle)(target));

            #line 50 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.barra_movil.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.barra_movil__MouseDown);

            #line default
            #line hidden
                return;

            case 14:
                this.tbc_mantProd = ((System.Windows.Controls.TabControl)(target));
                return;

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

            case 16:
                this.date_inicio = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 17:
                this.lbl_fechas2 = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.date_final = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            #line 104 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_listar.Click += new System.Windows.RoutedEventHandler(this.btn_listar_listar_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.dtg_lista = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 21:
                this.lbl_busqueda = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.txb_busqueda = ((System.Windows.Controls.TextBox)(target));

            #line 158 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_busqueda.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txb_busqueda_TextChanged);

            #line default
            #line hidden

            #line 158 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_busqueda.KeyUp += new System.Windows.Input.KeyEventHandler(this.txb_busqueda_KeyUp);

            #line default
            #line hidden
                return;

            case 23:
                this.lbl_errorBusqueda = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.dtg_proveedores = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 26:
                this.lbl_actividad = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.lbl_cedulaJur = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.lbl_nombre = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.lbl_email = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.lbl_emailOpcional = ((System.Windows.Controls.Label)(target));
                return;

            case 31:
                this.txb_cedJur = ((System.Windows.Controls.TextBox)(target));

            #line 189 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_cedJur.KeyDown += new System.Windows.Input.KeyEventHandler(this.cedJur_KeyDown);

            #line default
            #line hidden

            #line 189 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_cedJur.LostKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.validar_cedJur);

            #line default
            #line hidden
                return;

            case 32:
                this.lbl_errorCedJur = ((System.Windows.Controls.Label)(target));
                return;

            case 33:
                this.txb_nombre = ((System.Windows.Controls.TextBox)(target));

            #line 192 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_nombre.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txb_nombre_TextChanged);

            #line default
            #line hidden
                return;

            case 34:
                this.lbl_errorNombre = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.txb_email = ((System.Windows.Controls.TextBox)(target));

            #line 195 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_email.LostKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.validar_email);

            #line default
            #line hidden

            #line 195 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_email.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textbox_email_TextChanged);

            #line default
            #line hidden
                return;

            case 36:
                this.lbl_errorEmail = ((System.Windows.Controls.Label)(target));
                return;

            case 37:
                this.txb_emailOpcional = ((System.Windows.Controls.TextBox)(target));

            #line 198 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_emailOpcional.LostKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.validar_emailOpcional);

            #line default
            #line hidden

            #line 198 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_emailOpcional.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textbox_emailOpcional_TextChanged);

            #line default
            #line hidden
                return;

            case 38:
                this.lbl_errorEmailOpcional = ((System.Windows.Controls.Label)(target));
                return;

            case 39:
                this.lbl_telefono = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.lbl_telefonoOpcional = ((System.Windows.Controls.Label)(target));
                return;

            case 41:
                this.lbl_descripcion = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.txb_telefono = ((System.Windows.Controls.TextBox)(target));

            #line 209 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_telefono.KeyDown += new System.Windows.Input.KeyEventHandler(this.telefono_KeyDown);

            #line default
            #line hidden

            #line 209 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_telefono.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txb_telefono_TextChanged);

            #line default
            #line hidden
                return;

            case 43:
                this.lbl_errorTelefono = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.txb_telefonoOpcional = ((System.Windows.Controls.TextBox)(target));

            #line 212 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_telefonoOpcional.KeyDown += new System.Windows.Input.KeyEventHandler(this.telefonoOpcional_KeyDown);

            #line default
            #line hidden

            #line 212 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_telefonoOpcional.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txb_telefonoOpcional_TextChanged);

            #line default
            #line hidden
                return;

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

            case 46:
                this.txb_descripcion = ((System.Windows.Controls.TextBox)(target));

            #line 215 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.txb_descripcion.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txb_descripcion_TextChanged);

            #line default
            #line hidden
                return;

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

            case 48:
                this.btn_modificar = ((System.Windows.Controls.Button)(target));

            #line 220 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_modificar.Click += new System.Windows.RoutedEventHandler(this.btn_modificar_Click);

            #line default
            #line hidden
                return;

            case 49:
                this.btn_agregar = ((System.Windows.Controls.Button)(target));

            #line 226 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_agregar.Click += new System.Windows.RoutedEventHandler(this.btn_agregar_Click);

            #line default
            #line hidden
                return;

            case 50:
                this.btn_limpiar = ((System.Windows.Controls.Button)(target));

            #line 232 "..\..\..\Vista\MantenimientoProveedores.xaml"
                this.btn_limpiar.Click += new System.Windows.RoutedEventHandler(this.btn_limpiar_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.rectMid = ((System.Windows.Shapes.Rectangle)(target));

            #line 33 "Login.xaml"
                this.rectMid.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.RectMid_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.topMid = ((System.Windows.Shapes.Rectangle)(target));

            #line 49 "Login.xaml"
                this.topMid.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.RectMid_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 3:
                this.usernameTxt = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.passTxt = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

            #line 57 "Login.xaml"
                this.loginBtn.MouseEnter += new System.Windows.Input.MouseEventHandler(this.LoginBtn_MouseEnter);

            #line default
            #line hidden

            #line 57 "Login.xaml"
                this.loginBtn.MouseLeave += new System.Windows.Input.MouseEventHandler(this.LoginBtn_MouseLeave);

            #line default
            #line hidden

            #line 57 "Login.xaml"
                this.loginBtn.Click += new System.Windows.RoutedEventHandler(this.LoginBtn_Click);

            #line default
            #line hidden
                return;

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

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

            case 8:
                this.rectBot = ((System.Windows.Shapes.Rectangle)(target));

            #line 64 "Login.xaml"
                this.rectBot.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.RectMid_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

            #line 67 "Login.xaml"
                this.closeBtn.MouseEnter += new System.Windows.Input.MouseEventHandler(this.CloseBtn_MouseEnter);

            #line default
            #line hidden

            #line 67 "Login.xaml"
                this.closeBtn.MouseLeave += new System.Windows.Input.MouseEventHandler(this.CloseBtn_MouseLeave);

            #line default
            #line hidden

            #line 67 "Login.xaml"
                this.closeBtn.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.CloseBtn_MouseLeftButtonDown);

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

            #line 3 "..\..\..\HallWindow.xaml"
                ((WpfApplication2.HallWindow)(target)).MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Main_MouseDoubleClick);

            #line default
            #line hidden

            #line 3 "..\..\..\HallWindow.xaml"
                ((WpfApplication2.HallWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.GoKeyDown);

            #line default
            #line hidden

            #line 4 "..\..\..\HallWindow.xaml"
                ((WpfApplication2.HallWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

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

            case 3:
                this.RunningLineStroy = ((System.Windows.Media.Animation.Storyboard)(target));
                return;

            case 4:
                this.RunningLineAnimation = ((System.Windows.Media.Animation.DoubleAnimation)(target));
                return;

            case 5:
                this.BlueRect = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 6:
                this.RedRect = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            case 8:
                this.Weight = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.Time = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.PauseTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.RedName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.BlueScore = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.RedScore = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.BlueTechTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.PauseBlueTechTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.RedTechTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.PauseRedTechTime = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.BlueActivityText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.RedActivityText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 20:
                this.BlueWarningText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.RedWarningText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.BlueTLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.BlueALabel = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.BluePLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.RedTLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.RedALabel = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.RedPLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.BlueScoreLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.RedScoreLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 30:
                this.BlueTimeDeathGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this.BlueDeathAnim = ((System.Windows.Media.Animation.Storyboard)(target));
                return;

            case 32:
                this.BlueDeathAnimation = ((System.Windows.Media.Animation.DoubleAnimation)(target));

            #line 57 "..\..\..\HallWindow.xaml"
                this.BlueDeathAnimation.Completed += new System.EventHandler(this.BlueDeathAnimation_Completed);

            #line default
            #line hidden
                return;

            case 33:
                this.BlueTimeDeath = ((System.Windows.Controls.TextBox)(target));
                return;

            case 34:
                this.PauseBlueTimeDeath = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.RedTimeDeathGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 36:
                this.RedDeathAnim = ((System.Windows.Media.Animation.Storyboard)(target));
                return;

            case 37:
                this.RedDeathAnimation = ((System.Windows.Media.Animation.DoubleAnimation)(target));

            #line 76 "..\..\..\HallWindow.xaml"
                this.RedDeathAnimation.Completed += new System.EventHandler(this.RedDeathAnimation_Completed);

            #line default
            #line hidden
                return;

            case 38:
                this.RedTimeDeath = ((System.Windows.Controls.TextBox)(target));
                return;

            case 39:
                this.PauseRedTimeDeath = ((System.Windows.Controls.TextBox)(target));
                return;

            case 40:
                this.labelTeamBlue = ((System.Windows.Controls.Label)(target));
                return;

            case 41:
                this.labelTeamRed = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MenuBar = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            #line 33 "..\..\Group_Tasks.xaml"
                this.Details.Click += new System.Windows.RoutedEventHandler(this.Details_Click);

            #line default
            #line hidden
                return;

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

            #line 34 "..\..\Group_Tasks.xaml"
                this.Tasks.Click += new System.Windows.RoutedEventHandler(this.Tasks_Click);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\Group_Tasks.xaml"
                this.Members.Click += new System.Windows.RoutedEventHandler(this.Members_Click);

            #line default
            #line hidden
                return;

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

            #line 36 "..\..\Group_Tasks.xaml"
                this.Files.Click += new System.Windows.RoutedEventHandler(this.Files_Click);

            #line default
            #line hidden
                return;

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

            #line 37 "..\..\Group_Tasks.xaml"
                this.Menu.Click += new System.Windows.RoutedEventHandler(this.Menu_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ProfileIcon = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 40 "..\..\Group_Tasks.xaml"
                this.Profile.Click += new System.Windows.RoutedEventHandler(this.Profile_Click);

            #line default
            #line hidden
                return;

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

            case 10:
                this.Task_Calendar = ((System.Windows.Controls.Calendar)(target));
                return;

            case 11:
                this.AddTaskButton = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\Group_Tasks.xaml"
                this.AddTaskButton.Click += new System.Windows.RoutedEventHandler(this.GetDate);

            #line default
            #line hidden
                return;

            case 12:
                this.EventDetails = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 13:
                this.TaskName = ((System.Windows.Controls.TextBox)(target));

            #line 47 "..\..\Group_Tasks.xaml"
                this.TaskName.GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_GotFocus);

            #line default
            #line hidden
                return;

            case 14:
                this.TaskDescription = ((System.Windows.Controls.TextBox)(target));

            #line 48 "..\..\Group_Tasks.xaml"
                this.TaskDescription.GotFocus += new System.Windows.RoutedEventHandler(this.Description_Box);

            #line default
            #line hidden
                return;

            case 15:
                this.Date = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 16:

            #line 51 "..\..\Group_Tasks.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Create_Task);

            #line default
            #line hidden
                return;

            case 17:
                this.DisplayTasks = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 44
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.UserControl = ((Prototype_05.TestPanel)(target));
                return;

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

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

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

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

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

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

            case 8:
                this.TimeText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 9:
                this.InstanceText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.IdText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.StepText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.DeviceText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.DescriptionText = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 82 "..\..\..\TestPanel.xaml"
                this.SolvingGrid.PreviewTouchDown += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.OptionTouchDown);

            #line default
            #line hidden

            #line 82 "..\..\..\TestPanel.xaml"
                this.SolvingGrid.PreviewTouchMove += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.OptionTouchMove);

            #line default
            #line hidden

            #line 82 "..\..\..\TestPanel.xaml"
                this.SolvingGrid.PreviewTouchUp += new System.EventHandler <System.Windows.Input.TouchEventArgs>(this.OptionTouchUp);

            #line default
            #line hidden
                return;

            case 15:
                this.TouchSafetyRectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 16:
                this.ConfirmText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.ConfirmRectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 18:
                this.ConfirmButton = ((Microsoft.Surface.Presentation.Controls.SurfaceButton)(target));
                return;

            case 19:
                this.ConfirmMeasureImage = ((System.Windows.Controls.Image)(target));
                return;

            case 20:
                this.ChosenMeasureText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.SolvingInfoGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 22:
                this.SelectText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 23:
                this.SolveiGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 24:
                this.Solve1Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 25:
                this.DoNothingText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 26:
                this.SolvedText = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 28:
                this.TechnicianText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.Correct1Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 30:
                this.Correct2Text = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.Solve3Grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 32:
                this.StopText = ((System.Windows.Controls.TextBox)(target));
                return;

            case 33:
                this.KillText = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.rtgExa = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

            case 3:
                this.lblAsignatura = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 6:
                this.lblFecExam = ((System.Windows.Controls.Label)(target));
                return;

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

            case 8:
                this.lblAlumno = ((System.Windows.Controls.Label)(target));
                return;

            case 9:
                this.cmbListAlu = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 11:
                this.lblNotaExam = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.txtNotaExam = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.dgExamenes = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 14:
                this.btnBuscarExa = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.btnAgregarExa = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.btnModificarExa = ((System.Windows.Controls.Button)(target));
                return;

            case 17:
                this.btnEliminarExa = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DecemberGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 26 "..\..\CalendarEvents.xaml"
                this.calendarButton.Click += new System.Windows.RoutedEventHandler(this.calendarButton_Click);

            #line default
            #line hidden
                return;

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

            #line 32 "..\..\CalendarEvents.xaml"
                this.homeButton.Click += new System.Windows.RoutedEventHandler(this.homeButton_Click);

            #line default
            #line hidden
                return;

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

            #line 38 "..\..\CalendarEvents.xaml"
                this.eventsButton.Click += new System.Windows.RoutedEventHandler(this.eventsButton_Click);

            #line default
            #line hidden
                return;

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

            #line 44 "..\..\CalendarEvents.xaml"
                this.routesButton.Click += new System.Windows.RoutedEventHandler(this.routesButton_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.Nov25 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.Nov26 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.Nov27 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.Nov28 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.Nov29 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 12:
                this.Nov30 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 13:
                this.Dec1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 14:
                this.Dec2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 15:
                this.Dec3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 16:
                this.Dec4 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 17:
                this.Dec5 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 18:
                this.Dec6 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 19:
                this.Dec7 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 20:
                this.Dec8 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 21:
                this.Dec9 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 22:
                this.Dec10 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 23:
                this.Dec11 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 24:
                this.Dec12 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 25:
                this.Dec13 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 26:
                this.Dec14 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 27:
                this.Dec15 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 28:
                this.Dec16 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 29:
                this.Dec17 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 30:
                this.Dec18 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 31:
                this.Dec19 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 32:
                this.Dec20 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 33:
                this.Dec21 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 34:
                this.Dec22 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 35:
                this.Dec23 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 36:
                this.Dec24 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 37:
                this.Dec25 = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

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

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

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

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

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

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

            case 45:
                this.Jan2 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 46:
                this.Jan3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 47:
                this.Jan4 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 48:
                this.Jan5 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 49:
                this.DecMonthGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 50:
                this.leftButton = ((System.Windows.Controls.Button)(target));

            #line 914 "..\..\CalendarEvents.xaml"
                this.leftButton.Click += new System.Windows.RoutedEventHandler(this.leftButton_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.rightButton = ((System.Windows.Controls.Button)(target));

            #line 915 "..\..\CalendarEvents.xaml"
                this.rightButton.Click += new System.Windows.RoutedEventHandler(this.rightButton_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.DaysOfWeekGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\HelloWindow.xaml"
                ((SpeedCubeTimer.HelloWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden

            #line 10 "..\..\HelloWindow.xaml"
                ((SpeedCubeTimer.HelloWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

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

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

            #line 183 "..\..\HelloWindow.xaml"
                this.next_b.Click += new System.Windows.RoutedEventHandler(this.Next_b_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.border2 = ((System.Windows.Controls.Border)(target));
                return;

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

            case 6:
                this.rectangle4 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 7:
                this.rectangle6 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.rectangle7 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.rectangle5 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.rectangle8 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 11:
                this.rectangle3 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 12:
                this.rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 13:
                this.rectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 14:
                this.rectangle2 = ((System.Windows.Shapes.Rectangle)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\MainWindow.xaml"
                ((FaceID.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.rectFaceMarker = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.lblFloatingId = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.lblUserId = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lblNumFacesDetected = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.lblDatabaseState = ((System.Windows.Controls.Label)(target));
                return;

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

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

            #line 24 "..\..\MainWindow.xaml"
                this.btnRegister.Click += new System.Windows.RoutedEventHandler(this.btnRegister_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnUnregister = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.btnUnregister.Click += new System.Windows.RoutedEventHandler(this.btnUnregister_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnSaveDatabase = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\MainWindow.xaml"
                this.btnSaveDatabase.Click += new System.Windows.RoutedEventHandler(this.btnSaveDatabase_Click);

            #line default
            #line hidden
                return;

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

            #line 27 "..\..\MainWindow.xaml"
                this.btnDeleteDatabase.Click += new System.Windows.RoutedEventHandler(this.btnDeleteDatabase_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.IP = ((System.Windows.Controls.TextBox)(target));

            #line 28 "..\..\MainWindow.xaml"
                this.IP.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.IP_TextChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.button = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.configIP = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.configIP.Click += new System.Windows.RoutedEventHandler(this.configIP_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.cod = ((System.Windows.Controls.TextBox)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.cod.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_TextChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.msg = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 33 "..\..\MainWindow.xaml"
                this.sendCod.Click += new System.Windows.RoutedEventHandler(this.sendCod_Click);

            #line default
            #line hidden
                return;

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

            #line 34 "..\..\MainWindow.xaml"
                this.sendCoordCanvasHTML.Click += new System.Windows.RoutedEventHandler(this.sendCoordCanvasHTML_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 49
0
        private void CreateAndShowMainWindow()
        {
            // Create the application's main window
            myWindow = new Window();

            // Add a Border
            myBorder                 = new Border();
            myBorder.BorderBrush     = System.Windows.Media.Brushes.Black;
            myBorder.BorderThickness = new Thickness(2);
            myBorder.Width           = 400;
            myBorder.Height          = 600;
            myBorder.Padding         = new Thickness(15);
            myBorder.Background      = System.Windows.Media.Brushes.White;

            // Create a Grid to host the Shapes
            myGrid          = new Grid();
            myGrid.Margin   = new Thickness(15);
            myColDef1       = new ColumnDefinition();
            myColDef1.Width = new GridLength(125);
            myColDef2       = new ColumnDefinition();
            myColDef2.Width = new GridLength(1, GridUnitType.Star);
            myGrid.ColumnDefinitions.Add(myColDef1);
            myGrid.ColumnDefinitions.Add(myColDef2);
            myRowDef  = new RowDefinition();
            myRowDef1 = new RowDefinition();
            myRowDef2 = new RowDefinition();
            myRowDef3 = new RowDefinition();
            myRowDef4 = new RowDefinition();
            myRowDef5 = new RowDefinition();
            myRowDef6 = new RowDefinition();
            myGrid.RowDefinitions.Add(myRowDef);
            myGrid.RowDefinitions.Add(myRowDef1);
            myGrid.RowDefinitions.Add(myRowDef2);
            myGrid.RowDefinitions.Add(myRowDef3);
            myGrid.RowDefinitions.Add(myRowDef4);
            myGrid.RowDefinitions.Add(myRowDef5);
            myGrid.RowDefinitions.Add(myRowDef6);
            myTextBlock                     = new TextBlock();
            myTextBlock.FontSize            = 20;
            myTextBlock.Text                = "WPF Shapes Gallery";
            myTextBlock.HorizontalAlignment = HorizontalAlignment.Left;
            myTextBlock.VerticalAlignment   = VerticalAlignment.Center;
            myGrid.Children.Add(myTextBlock);
            Grid.SetRow(myTextBlock, 0);
            Grid.SetColumnSpan(myTextBlock, 2);


            // Add a Rectangle Element
            myRect        = new System.Windows.Shapes.Rectangle();
            myRect.Stroke = System.Windows.Media.Brushes.Black;
            myRect.Fill   = System.Windows.Media.Brushes.SkyBlue;
            myRect.HorizontalAlignment = HorizontalAlignment.Left;
            myRect.VerticalAlignment   = VerticalAlignment.Center;
            myRect.Height = 50;
            myRect.Width  = 50;
            myGrid.Children.Add(myRect);
            Grid.SetRow(myRect, 1);
            Grid.SetColumn(myRect, 0);
            TextBlock myTextBlock1 = new TextBlock();

            myTextBlock1.FontSize          = 14;
            myTextBlock1.Text              = "A Rectangle Element";
            myTextBlock1.VerticalAlignment = VerticalAlignment.Center;
            myGrid.Children.Add(myTextBlock1);
            Grid.SetRow(myTextBlock1, 1);
            Grid.SetColumn(myTextBlock1, 1);


            // Add an Ellipse Element
            myEllipse        = new Ellipse();
            myEllipse.Stroke = System.Windows.Media.Brushes.Black;
            myEllipse.Fill   = System.Windows.Media.Brushes.DarkBlue;
            myEllipse.HorizontalAlignment = HorizontalAlignment.Left;
            myEllipse.VerticalAlignment   = VerticalAlignment.Center;
            myEllipse.Width  = 50;
            myEllipse.Height = 75;
            myGrid.Children.Add(myEllipse);
            Grid.SetRow(myEllipse, 2);
            Grid.SetColumn(myEllipse, 0);
            TextBlock myTextBlock2 = new TextBlock();

            myTextBlock2.FontSize          = 14;
            myTextBlock2.Text              = "An Ellipse Element";
            myTextBlock2.VerticalAlignment = VerticalAlignment.Center;
            myGrid.Children.Add(myTextBlock2);
            Grid.SetRow(myTextBlock2, 2);
            Grid.SetColumn(myTextBlock2, 1);


            // Add a Line Element
            myLine        = new Line();
            myLine.Stroke = System.Windows.Media.Brushes.LightSteelBlue;
            myLine.X1     = 1;
            myLine.X2     = 50;
            myLine.Y1     = 1;
            myLine.Y2     = 50;
            myLine.HorizontalAlignment = HorizontalAlignment.Left;
            myLine.VerticalAlignment   = VerticalAlignment.Center;
            myLine.StrokeThickness     = 2;
            myGrid.Children.Add(myLine);
            Grid.SetRow(myLine, 3);
            Grid.SetColumn(myLine, 0);
            TextBlock myTextBlock3 = new TextBlock();

            myTextBlock3.FontSize          = 14;
            myTextBlock3.Text              = "A Line Element";
            myTextBlock3.VerticalAlignment = VerticalAlignment.Center;
            myGrid.Children.Add(myTextBlock3);
            Grid.SetRow(myTextBlock3, 3);
            Grid.SetColumn(myTextBlock3, 1);


            //Add the Path Element
            myPath                     = new Path();
            myPath.Stroke              = System.Windows.Media.Brushes.Black;
            myPath.Fill                = System.Windows.Media.Brushes.MediumSlateBlue;
            myPath.StrokeThickness     = 4;
            myPath.HorizontalAlignment = HorizontalAlignment.Left;
            myPath.VerticalAlignment   = VerticalAlignment.Center;
            EllipseGeometry myEllipseGeometry = new EllipseGeometry();

            myEllipseGeometry.Center  = new System.Windows.Point(50, 50);
            myEllipseGeometry.RadiusX = 25;
            myEllipseGeometry.RadiusY = 25;
            myPath.Data = myEllipseGeometry;
            myGrid.Children.Add(myPath);
            Grid.SetRow(myPath, 4);
            Grid.SetColumn(myPath, 0);
            TextBlock myTextBlock4 = new TextBlock();

            myTextBlock4.FontSize          = 14;
            myTextBlock4.Text              = "A Path Element";
            myTextBlock4.VerticalAlignment = VerticalAlignment.Center;
            myGrid.Children.Add(myTextBlock4);
            Grid.SetRow(myTextBlock4, 4);
            Grid.SetColumn(myTextBlock4, 1);


            //Add the Polygon Element
            myPolygon                     = new Polygon();
            myPolygon.Stroke              = System.Windows.Media.Brushes.Black;
            myPolygon.Fill                = System.Windows.Media.Brushes.LightSeaGreen;
            myPolygon.StrokeThickness     = 2;
            myPolygon.HorizontalAlignment = HorizontalAlignment.Left;
            myPolygon.VerticalAlignment   = VerticalAlignment.Center;
            System.Windows.Point Point1            = new System.Windows.Point(1, 50);
            System.Windows.Point Point2            = new System.Windows.Point(10, 80);
            System.Windows.Point Point3            = new System.Windows.Point(50, 50);
            PointCollection      myPointCollection = new PointCollection();

            myPointCollection.Add(Point1);
            myPointCollection.Add(Point2);
            myPointCollection.Add(Point3);
            myPolygon.Points = myPointCollection;
            myGrid.Children.Add(myPolygon);
            Grid.SetRow(myPolygon, 5);
            Grid.SetColumn(myPolygon, 0);
            TextBlock myTextBlock5 = new TextBlock();

            myTextBlock5.Text              = "A Polygon Element";
            myTextBlock5.FontSize          = 14;
            myTextBlock5.VerticalAlignment = VerticalAlignment.Center;
            myGrid.Children.Add(myTextBlock5);
            Grid.SetRow(myTextBlock5, 5);
            Grid.SetColumn(myTextBlock5, 1);


            // Add the Polyline Element
            myPolyline                 = new Polyline();
            myPolyline.Stroke          = System.Windows.Media.Brushes.SlateGray;
            myPolyline.StrokeThickness = 2;
            myPolyline.FillRule        = FillRule.EvenOdd;
            System.Windows.Point Point4             = new System.Windows.Point(1, 50);
            System.Windows.Point Point5             = new System.Windows.Point(10, 80);
            System.Windows.Point Point6             = new System.Windows.Point(20, 40);
            PointCollection      myPointCollection2 = new PointCollection();

            myPointCollection2.Add(Point4);
            myPointCollection2.Add(Point5);
            myPointCollection2.Add(Point6);
            myPolyline.Points = myPointCollection2;
            myGrid.Children.Add(myPolyline);
            Grid.SetRow(myPolyline, 6);
            Grid.SetColumn(myPolyline, 0);
            TextBlock myTextBlock6 = new TextBlock();

            myTextBlock6.FontSize          = 14;
            myTextBlock6.Text              = "A Polyline Element";
            myTextBlock6.VerticalAlignment = VerticalAlignment.Center;
            myGrid.Children.Add(myTextBlock6);
            Grid.SetRow(myTextBlock6, 6);
            Grid.SetColumn(myTextBlock6, 1);

            // Add the Grid to the Window as Content and show the Window
            myBorder.Child      = myGrid;
            myWindow.Content    = myBorder;
            myWindow.Background = System.Windows.Media.Brushes.LightSlateGray;
            myWindow.Title      = "Shapes Sample";
            myWindow.Show();
        }
Esempio n. 50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Labels = ((System.Windows.Controls.Canvas)(target));
                return;

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

            case 3:
                this.neutral = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.neutralline = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 5:
                this.r1_1 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.r1_2 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.sld1 = ((System.Windows.Controls.Slider)(target));

            #line 74 "..\..\PreferredRhythm.xaml"
                this.sld1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.sld1_ValueChanged);

            #line default
            #line hidden

            #line 76 "..\..\PreferredRhythm.xaml"
                this.sld1.AddHandler(System.Windows.Controls.Primitives.Thumb.DragCompletedEvent, new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.sld1_DragCompleted));

            #line default
            #line hidden

            #line 76 "..\..\PreferredRhythm.xaml"
                this.sld1.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.sld1_MouseUp);

            #line default
            #line hidden
                return;

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

            #line 78 "..\..\PreferredRhythm.xaml"
                this.start.Click += new System.Windows.RoutedEventHandler(this.start_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.submit = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\PreferredRhythm.xaml"
                this.submit.Click += new System.Windows.RoutedEventHandler(this.submit_Click);

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

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

            case 3:
                this.startGameBG = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 4:
                this.startGameLbl = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 20 "..\..\gameWindow.xaml"
                this.strtGameBtn.Click += new System.Windows.RoutedEventHandler(this.strtGameBtn_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.gameQBG = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 7:
                this.gameQLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.gameQAnsBox = ((System.Windows.Controls.TextBox)(target));

            #line 31 "..\..\gameWindow.xaml"
                this.gameQAnsBox.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.txtInput_PreviewKeyDown);

            #line default
            #line hidden
                return;

            case 9:
                this.gameQSubmitBtn = ((System.Windows.Controls.Button)(target));

            #line 32 "..\..\gameWindow.xaml"
                this.gameQSubmitBtn.Click += new System.Windows.RoutedEventHandler(this.gameQSubmitBtn_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.ansErrorLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.ansLbl = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.alertBG = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 13:
                this.alertLbl = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 52
0
        private void myCanvas_Loaded(Object sender, EventArgs e)
        {
            string m = Maze.Replace(",", "");

            rectangles = new Rectangle[Rows, Cols];
            Rectangle rect;

            for (int i = 0; i < Rows; i++)
            {
                for (int j = 0; j < Cols; j++)
                {
                    if (m[i * Cols + j] == '1')
                    {
                        rect        = new System.Windows.Shapes.Rectangle();
                        rect.Width  = myCanvas.Width / Cols;
                        rect.Height = myCanvas.Height / Rows;
                        rect.Stroke = new SolidColorBrush(Colors.Black);
                        rect.Fill   = new SolidColorBrush(Colors.Black);
                        Canvas.SetTop(rect, i * rect.Height);
                        Canvas.SetLeft(rect, j * rect.Width);
                        myCanvas.Children.Add(rect);
                        //for debugging
                        rect.Tag = i.ToString() + ", " + j.ToString();
                    }

                    else if (m[i * Cols + j] == '0')
                    {
                        rect        = new System.Windows.Shapes.Rectangle();
                        rect.Width  = myCanvas.Width / Cols;
                        rect.Height = myCanvas.Height / Rows;
                        rect.Stroke = new SolidColorBrush(Colors.White);
                        rect.Fill   = new SolidColorBrush(Colors.White);
                        Canvas.SetTop(rect, i * rect.Height);
                        Canvas.SetLeft(rect, j * rect.Width);
                        myCanvas.Children.Add(rect);
                    }


                    else if (m[i * Cols + j] == ' ')
                    {
                        continue;
                    }
                    else if (m[i * Cols + j] == '#')
                    {
                        rect        = new System.Windows.Shapes.Rectangle();
                        rect.Width  = myCanvas.Width / Cols;
                        rect.Height = myCanvas.Height / Rows;
                        rect.Stroke = new SolidColorBrush(Colors.Red);
                        rect.Fill   = new SolidColorBrush(Colors.Red);
                        Canvas.SetTop(rect, i * rect.Height);
                        Canvas.SetLeft(rect, j * rect.Width);
                        myCanvas.Children.Add(rect);
                    }
                    else
                    {
                        //PlayerPos = j + "," + i;
                        playerCol   = j;
                        playerRow   = i;
                        preRow      = i;
                        prevCol     = j;
                        rect        = new System.Windows.Shapes.Rectangle();
                        rect.Width  = myCanvas.Width / Cols;
                        rect.Height = myCanvas.Height / Rows;
                        rect.Stroke = new SolidColorBrush(Colors.Yellow);
                        rect.Fill   = new SolidColorBrush(Colors.Yellow);
                        Canvas.SetTop(rect, i * rect.Height);
                        Canvas.SetLeft(rect, j * rect.Width);
                        myCanvas.Children.Add(rect);
                    }
                    if (rect != null)
                    {
                        rectangles[i, j] = rect;
                    }
                    rect = null;
                }
            }
        }
Esempio n. 53
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            #line default
            #line hidden
                return;

            case 3:
                this.progressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 4:
                this.playArea = ((System.Windows.Controls.Canvas)(target));

            #line 48 "..\..\MainWindow.xaml"
                this.playArea.MouseMove += new System.Windows.Input.MouseEventHandler(this.playArea_MouseMove);

            #line default
            #line hidden

            #line 48 "..\..\MainWindow.xaml"
                this.playArea.MouseLeave += new System.Windows.Input.MouseEventHandler(this.playArea_MouseLeave);

            #line default
            #line hidden
                return;

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

            #line 55 "..\..\MainWindow.xaml"
                this.human.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.human_MouseDown);

            #line default
            #line hidden
                return;

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

            case 7:
                this.target = ((System.Windows.Shapes.Rectangle)(target));

            #line 64 "..\..\MainWindow.xaml"
                this.target.MouseEnter += new System.Windows.Input.MouseEventHandler(this.target_MouseEnter);

            #line default
            #line hidden
                return;

            case 8:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 54
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 16 "..\..\MainWindow.xaml"
                ((UCUI.MainWindow)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);

            #line default
            #line hidden

            #line 17 "..\..\MainWindow.xaml"
                ((UCUI.MainWindow)(target)).PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.Window_PreviewKeyDown);

            #line default
            #line hidden

            #line 18 "..\..\MainWindow.xaml"
                ((UCUI.MainWindow)(target)).PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.Overlay = ((System.Windows.Shapes.Rectangle)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.Overlay.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Outside_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.HelpView = ((UCUI.UserControls.HelpView)(target));
                return;

            case 4:
                this.SettingsView = ((UCUI.UserControls.SettingsView)(target));
                return;

            case 5:
                this.MainView = ((System.Windows.Controls.DockPanel)(target));
                return;

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

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

            case 8:
                this.OptionsExpander = ((System.Windows.Controls.Expander)(target));

            #line 64 "..\..\MainWindow.xaml"
                this.OptionsExpander.PreviewGotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.OptionsExpander_GotFocus);

            #line default
            #line hidden

            #line 65 "..\..\MainWindow.xaml"
                this.OptionsExpander.LostFocus += new System.Windows.RoutedEventHandler(this.OptionsExpander_LostFocus);

            #line default
            #line hidden
                return;

            case 9:
                this.OptionsHeader = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            #line default
            #line hidden
                return;

            case 11:
                this.HelpButton = ((System.Windows.Controls.Button)(target));

            #line 104 "..\..\MainWindow.xaml"
                this.HelpButton.Click += new System.Windows.RoutedEventHandler(this.PageOpen);

            #line default
            #line hidden
                return;

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

            #line 109 "..\..\MainWindow.xaml"
                this.ControlOptions.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SelectionChanged);

            #line default
            #line hidden

            #line 112 "..\..\MainWindow.xaml"
                this.ControlOptions.KeyDown += new System.Windows.Input.KeyEventHandler(this.ControlOptions_KeyDown);

            #line default
            #line hidden
                return;

            case 13:
                this.ButtonGrid = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 55
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\..\OknoPrzedMeczem.xaml"
                ((Football_Manager.OknoPrzedMeczem)(target)).IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.UserControl_IsVisibleChanged);

            #line default
            #line hidden
                return;

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

            case 3:
                this.lGoscNazwa = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.lPoziom = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.lAtak = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.lPomoc = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.lObrona = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.rPoziomGospodarz = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.rPoziomGosc = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 10:
                this.lPoziomGospodarz = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.lPoziomGosc = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.rAtakGospodarz = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 13:
                this.rAtakGosc = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 14:
                this.lAtakGospodarz = ((System.Windows.Controls.Label)(target));
                return;

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

            case 16:
                this.rPomocGospodarz = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 17:
                this.rPomocGosc = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 18:
                this.lPomocGospodarz = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.lPomocGosc = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.rObronaGospodarz = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 21:
                this.rObronaGosc = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 22:
                this.lObronaGospodarz = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.lObronaGosc = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 119 "..\..\..\OknoPrzedMeczem.xaml"
                this.rozpocznijMecz.Click += new System.Windows.RoutedEventHandler(this.rozpocznijMecz_Click);

            #line default
            #line hidden
                return;

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

            #line 120 "..\..\..\OknoPrzedMeczem.xaml"
                this.Sklad.Click += new System.Windows.RoutedEventHandler(this.Sklad_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.Taktyka = ((System.Windows.Controls.Button)(target));

            #line 121 "..\..\..\OknoPrzedMeczem.xaml"
                this.Taktyka.Click += new System.Windows.RoutedEventHandler(this.Taktyka_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.Powrot = ((System.Windows.Controls.Button)(target));

            #line 123 "..\..\..\OknoPrzedMeczem.xaml"
                this.Powrot.Click += new System.Windows.RoutedEventHandler(this.Powrot_Click);

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

            #line 8 "..\..\MainWindow.xaml"
                ((WpfApp4.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.label2 = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.label3 = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.img2 = ((System.Windows.Controls.Image)(target));
                return;

            case 8:
                this.image1 = ((System.Windows.Controls.Image)(target));
                return;

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

            case 10:
                this.txtin1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.imgy2 = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.imgy3 = ((System.Windows.Controls.Image)(target));
                return;

            case 13:
                this.imgy4 = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.imgy5 = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.txtin2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.txtin3 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.txtin4 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.txtin5 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.imglogo3 = ((System.Windows.Controls.Image)(target));
                return;

            case 20:
                this.imglogo = ((System.Windows.Controls.Image)(target));
                return;

            case 21:
                this.e1 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 22:
                this.lnmin = ((System.Windows.Shapes.Line)(target));
                return;

            case 23:
                this.lnhour = ((System.Windows.Shapes.Line)(target));
                return;

            case 24:
                this.lnsec = ((System.Windows.Shapes.Line)(target));
                return;

            case 25:
                this.e2 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 26:
                this.lnminNY = ((System.Windows.Shapes.Line)(target));
                return;

            case 27:
                this.lnhourNY = ((System.Windows.Shapes.Line)(target));
                return;

            case 28:
                this.lnsecNY = ((System.Windows.Shapes.Line)(target));
                return;

            case 29:
                this.e3 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 30:
                this.lnminLON = ((System.Windows.Shapes.Line)(target));
                return;

            case 31:
                this.lnhourLON = ((System.Windows.Shapes.Line)(target));
                return;

            case 32:
                this.lnsecLON = ((System.Windows.Shapes.Line)(target));
                return;

            case 33:
                this.e4 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 34:
                this.lnminDUB = ((System.Windows.Shapes.Line)(target));
                return;

            case 35:
                this.lnhourDUB = ((System.Windows.Shapes.Line)(target));
                return;

            case 36:
                this.lnsecDUB = ((System.Windows.Shapes.Line)(target));
                return;

            case 37:
                this.e5 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 38:
                this.lnminBER = ((System.Windows.Shapes.Line)(target));
                return;

            case 39:
                this.lnhourBER = ((System.Windows.Shapes.Line)(target));
                return;

            case 40:
                this.lnsecBER = ((System.Windows.Shapes.Line)(target));
                return;

            case 41:
                this.e6 = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 42:
                this.lnminTOK = ((System.Windows.Shapes.Line)(target));
                return;

            case 43:
                this.lnhourTOK = ((System.Windows.Shapes.Line)(target));
                return;

            case 44:
                this.lnsecTOK = ((System.Windows.Shapes.Line)(target));
                return;

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

            case 46:
                this.imgist = ((System.Windows.Controls.Image)(target));
                return;

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

            case 48:
                this.imgny = ((System.Windows.Controls.Image)(target));
                return;

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

            case 50:
                this.imglon = ((System.Windows.Controls.Image)(target));
                return;

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

            case 52:
                this.imgdub = ((System.Windows.Controls.Image)(target));
                return;

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

            case 54:
                this.imgber = ((System.Windows.Controls.Image)(target));
                return;

            case 55:
                this.lblmos = ((System.Windows.Controls.Label)(target));
                return;

            case 56:
                this.imgmos = ((System.Windows.Controls.Image)(target));
                return;

            case 57:
                this.LBLTARIH = ((System.Windows.Controls.Label)(target));
                return;

            case 58:
                this.LBLsaat = ((System.Windows.Controls.Label)(target));
                return;

            case 59:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 60:
                this.imgist_Copy3 = ((System.Windows.Controls.Image)(target));
                return;

            case 61:
                this.txthos = ((System.Windows.Controls.TextBox)(target));
                return;

            case 62:
                this.rectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 63:
                this.imglogo2 = ((System.Windows.Controls.Image)(target));
                return;

            case 64:
                this.txthos2 = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\Repository.xaml"
                ((AnbarBankManagment.Repository)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden

            #line 9 "..\..\Repository.xaml"
                ((AnbarBankManagment.Repository)(target)).Activated += new System.EventHandler(this.Window_Activated);

            #line default
            #line hidden
                return;

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

            case 3:
                this.txtshakhs = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.txtdate1 = ((Arash.PersianDateControls.PersianDatePicker)(target));
                return;

            case 5:
                this.txtdate2 = ((Arash.PersianDateControls.PersianDatePicker)(target));
                return;

            case 6:
                this.txtshakhs_Copy = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.Header = ((System.Windows.Shapes.Rectangle)(target));

            #line 128 "..\..\Repository.xaml"
                this.Header.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Header_MouseDown);

            #line default
            #line hidden
                return;

            case 8:
                this.btnback = ((System.Windows.Controls.Image)(target));

            #line 137 "..\..\Repository.xaml"
                this.btnback.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Back_MouseDown);

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

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

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

            #line 21 "..\..\Page8_ActualizarFoto.xaml"
                this.btnencender.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\Page8_ActualizarFoto.xaml"
                this.btncapturar.Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\Page8_ActualizarFoto.xaml"
                this.btnSiguiente.Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

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

            case 7:
                this.rt_imagen = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 8:
                this.rbt_si = ((System.Windows.Controls.RadioButton)(target));

            #line 27 "..\..\Page8_ActualizarFoto.xaml"
                this.rbt_si.Checked += new System.Windows.RoutedEventHandler(this.rbt_si_Checked);

            #line default
            #line hidden
                return;

            case 9:
                this.rbt_no = ((System.Windows.Controls.RadioButton)(target));

            #line 28 "..\..\Page8_ActualizarFoto.xaml"
                this.rbt_no.Checked += new System.Windows.RoutedEventHandler(this.rbt_no_Checked);

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

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

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

            case 4:
                this.CenterPanel1 = ((System.Windows.Controls.Image)(target));
                return;

            case 5:
                this.CenterPanel2 = ((System.Windows.Controls.Image)(target));
                return;

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

            case 7:
                this.RightPanel2 = ((System.Windows.Controls.Image)(target));
                return;

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

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

            case 10:
                this.Key2 = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.Key3 = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.Key4 = ((System.Windows.Controls.Image)(target));
                return;

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

            case 14:
                this.Hint2 = ((System.Windows.Controls.Button)(target));
                return;

            case 15:
                this.Map = ((System.Windows.Controls.Button)(target));
                return;

            case 16:
                this.MENUButton = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\GUI.xaml"
                this.MENUButton.Click += new System.Windows.RoutedEventHandler(this.MENUButton_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.StoryShadow = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 18:
                this.StoryBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 19:
                this.MenuShadow = ((System.Windows.Shapes.Rectangle)(target));
                return;

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

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

            #line 54 "..\..\GUI.xaml"
                this.RETURN.Click += new System.Windows.RoutedEventHandler(this.RETURN_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.Cave = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\GUI.xaml"
                this.Cave.Click += new System.Windows.RoutedEventHandler(this.Button2_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.Text = ((System.Windows.Controls.Button)(target));

            #line 56 "..\..\GUI.xaml"
                this.Text.Click += new System.Windows.RoutedEventHandler(this.Button3_Click);

            #line default
            #line hidden
                return;

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

            #line 57 "..\..\GUI.xaml"
                this.Wall.Click += new System.Windows.RoutedEventHandler(this.Button4_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.Button5 = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
Esempio n. 60
-3
        public WatchViewFullscreen()
        {
            InitializeComponent();

            MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(view_MouseButtonIgnore);
            MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(view_MouseButtonIgnore);
            MouseRightButtonUp += new System.Windows.Input.MouseButtonEventHandler(view_MouseRightButtonUp);
            PreviewMouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(view_PreviewMouseRightButtonDown);

            MenuItem mi = new MenuItem();
            mi.Header = "Zoom to Fit";
            mi.Click += new RoutedEventHandler(mi_Click);

            MainContextMenu.Items.Add(mi);

            System.Windows.Shapes.Rectangle backgroundRect = new System.Windows.Shapes.Rectangle();
            Canvas.SetZIndex(backgroundRect, -10);
            backgroundRect.IsHitTestVisible = false;
            BrushConverter bc = new BrushConverter();
            Brush strokeBrush = (Brush)bc.ConvertFrom("#313131");
            backgroundRect.Stroke = strokeBrush;
            backgroundRect.StrokeThickness = 1;
            SolidColorBrush backgroundBrush = new SolidColorBrush(System.Windows.Media.Color.FromRgb(250, 250, 216));
            backgroundRect.Fill = backgroundBrush;

            inputGrid.Children.Add(backgroundRect);
        }