Exemplo n.º 1
1
        protected override FrameworkElement ModifyNewContent(ITransitionControl container, FrameworkElement newContent)
        {
            if (newContent == null)
            {
                HideBackground(container);
                container.Remove(_border);
                return null;
            }

            ShowBackground(container);

            _border = WrapInBorder(newContent);

            _border.Opacity = 0;

            SetPosition(_border);

            newContent.SizeChanged += (sender, e) => SetPosition(_border);

            var ctrl = container.AsControl();

            ctrl.SizeChanged += (sender, e) => SetPosition(_border);

            return _border;
        }
Exemplo n.º 2
1
        public PageHeader()
        {
            Brush brush = new SolidColorBrush(Colors.DarkGray);
            brush.Opacity = 0.60;

            this.Background = brush;

            Border frameBorder = new Border();
            frameBorder.BorderBrush = Brushes.Gray;
            frameBorder.BorderThickness = new Thickness(2);

            DockPanel panelMain = new DockPanel();
            panelMain.Margin = new Thickness(5, 5, 5, 5);
            panelMain.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;

            txtText = new TextBlock();
            txtText.FontSize = 32;
            txtText.Margin = new Thickness(5, 0, 0, 0);
            txtText.SetResourceReference(TextBlock.ForegroundProperty, "HeaderTextColor");
            txtText.VerticalAlignment = System.Windows.VerticalAlignment.Bottom;

            panelMain.Children.Add(txtText);

            frameBorder.Child = panelMain;

            this.Content = frameBorder;
        }
Exemplo n.º 3
0
		public FrameworkElement CreateSlotItem ()
		{
			Border border = new Border ();
			border.Width = 25;
			border.Height = 33;
			return border;
		}
        /// <summary>
        /// Closes the group popup.
        /// </summary>
        /// <param name="selectedGroup">The selected group.</param>
        /// <param name="raiseEvent">Should the GroupPopupClosing event be raised.</param>
        /// <returns>True if the event was not raised or if it was raised and e.Handled is false.</returns>
        private bool ClosePopup(object selectedGroup, bool raiseEvent)
        {
            if (raiseEvent)
            {
                GroupViewClosingEventArgs args = null;

                SafeRaise.Raise(GroupViewClosing, this, () => { return args = new GroupViewClosingEventArgs(_itemsControl, selectedGroup); });

                if (args != null && args.Cancel)
                {
                    return false;
                }
            }

            if (_groupSelectorPopup != null)
            {
                RestoreSystemState();
                _groupSelectorPopup.IsOpen = false;
                DetachFromPageEvents();
                _groupSelectorPopup.Child = null;
                _border = null;
                _itemsControl = null;
                _groupSelectorPopup = null;
            }

            return true;
        }
Exemplo n.º 5
0
        public void BorderHitTestTest()
        {
            Border border = new Border
            {
                Width = 200,
                Height = 100,
                BorderThickness = new Thickness(10, 20, 30, 40),
                IsRootElement = true,
            };

            border.Measure(Size.Infinity);
            border.Arrange(new Rect(border.DesiredSize));

            BackgroundHitTestTest(border, null);
            BorderHitTestTest(border, null);

            border.Background = Brushes.Transparent;
            border.BorderBrush = null;

            BackgroundHitTestTest(border, border);
            BorderHitTestTest(border, border);

            border.Background = null;
            border.BorderBrush = Brushes.Transparent;

            BackgroundHitTestTest(border, null);
            BorderHitTestTest(border, border);

            border.Background = Brushes.Transparent;
            border.BorderBrush = Brushes.Transparent;

            BackgroundHitTestTest(border, border);
            BorderHitTestTest(border, border);
        }
Exemplo n.º 6
0
 public static void ShowTutorialHint()
 {
     if (Properties.Settings.Default.showtutorial)
     {
         Properties.Settings.Default.showtutorial = false;
         Properties.Settings.Default.Save();
         MiscTools.FlashControl(Main.btnTutorial, Colors.Yellow, Main);
         var tutHint = new Popup
         {
             VerticalOffset = -3,
             PlacementTarget = Main.btnTutorial,
             Placement = PlacementMode.Top,
             IsOpen = true
         };
         var brd = new Border
         {
             BorderBrush =
                 new LinearGradientBrush(Colors.LightSlateGray, Colors.Black, .45),
             BorderThickness = new Thickness(1),
             Background =
                 new LinearGradientBrush(Colors.LightYellow, Colors.PaleGoldenrod, .25),
             Child = new TextBlock
             {
                 Margin = new Thickness(4),
                 FontSize = 12,
                 Text = "Click to start a short tutorial on how to use Elinor"
             }
         };
         tutHint.Child = brd;
         tutHint.MouseDown += delegate { tutHint.IsOpen = false; };
     }
 }
Exemplo n.º 7
0
        public FrameworkElement CreateWidgetControl(IDiagram widgetViewModel, ContextMenu contextMenu)
        {
            var buttonHolder = widgetViewModel as DefaultWidgetViewModel;
            var brd = new Border
                          {
                              DataContext = buttonHolder,
                              ContextMenu = contextMenu,
                              BorderBrush = System.Windows.Media.Brushes.Gray,
                              Background = System.Windows.Media.Brushes.White
                          };

            var ret = new Button { DataContext = buttonHolder, ContextMenu = contextMenu, Content = "New Widget" };

            brd.Child = ret;

            var heightBinding = new Binding("Height") { Source = buttonHolder, Mode = BindingMode.TwoWay };
            var widthBinding = new Binding("Width") { Source = buttonHolder, Mode = BindingMode.TwoWay };
            var xBinding = new Binding("X") { Source = buttonHolder, Mode = BindingMode.TwoWay };
            var yBinding = new Binding("Y") { Source = buttonHolder, Mode = BindingMode.TwoWay };
            var transformBinding = new Binding("RenderTransform") { Source = buttonHolder, Mode = BindingMode.OneWay };

            brd.SetBinding(InkCanvas.LeftProperty, xBinding);
            brd.SetBinding(InkCanvas.TopProperty, yBinding);
            brd.SetBinding(FrameworkElement.HeightProperty, heightBinding);
            brd.SetBinding(FrameworkElement.WidthProperty, widthBinding);
            brd.SetBinding(UIElement.RenderTransformProperty, transformBinding);

            return brd;
        }
Exemplo n.º 8
0
        /// <summary>
        /// Creates a very long line at the bottom of bounds.
        /// </summary>
        public override GraphicsResult GetGraphics(IWpfTextView view, Geometry bounds)
        {
            Initialize(view);

            var border = new Border()
            {
                BorderBrush = _graphicsTagBrush,
                BorderThickness = new Thickness(0, 0, 0, bottom: 1),
                Height = 1,
                Width = view.ViewportWidth
            };
            EventHandler viewportWidthChangedHandler = (s, e) =>
            {
                border.Width = view.ViewportWidth;
            };

            view.ViewportWidthChanged += viewportWidthChangedHandler;

            // Subtract rect.Height to ensure that the line separator is drawn
            // at the bottom of the line, rather than immediately below.
            // This makes the line separator line up with the outlining bracket.
            Canvas.SetTop(border, bounds.Bounds.Bottom - border.Height);

            return new GraphicsResult(border,
                () => view.ViewportWidthChanged -= viewportWidthChangedHandler);
        }
Exemplo n.º 9
0
        public KinectDance(double layoutHeight, double layoutWidth, List<TextBlock> menus, Style mouseOverStyle, Border menuBorder,TextBox debugBox = null)
        {
            _layoutHeight = layoutHeight;
            _layoutWidth = layoutWidth;
            _debugBox = debugBox;
            _menus = menus;
            _menuBorder = menuBorder;
            _mouseOverStyle = mouseOverStyle;

            _kinect = KinectSensor.KinectSensors.FirstOrDefault();

            if (_kinect == null) return;
            //_kinect.SkeletonStream.TrackingMode = SkeletonTrackingMode.Seated;
            _kinect.Start();

            _kinect.ColorStream.Enable();
            _kinect.SkeletonStream.Enable(new TransformSmoothParameters
                {
                    Smoothing = 0.7f,
                    Correction = 0.3f,
                    Prediction = 0.4f,
                    JitterRadius = 0.5f,
                    MaxDeviationRadius = 0.5f
                });

            _kinect.SkeletonFrameReady += kinect_SkeletonFrameReady;
        }
 private void CreateControls()
 {
     var content = Content;
     Content = null;
     Border border = new Border() { Style = new Style_DefaultBorder(), Child = content as UIElement };
     Content = border;
 }
Exemplo n.º 11
0
        public BrowserMouseHelper(WebBrowser browser)
        {
            _browser = browser;
            if (true)//browser.Source != null)
            {
                var border0 = VisualTreeHelper.GetChild(_browser, 0);
                var border1 = VisualTreeHelper.GetChild(border0, 0);
                var panZoom = VisualTreeHelper.GetChild(border1, 0);
                var grid = VisualTreeHelper.GetChild(panZoom, 0);
                border = VisualTreeHelper.GetChild(grid, 0) as Border;

                if (border != null)
                {
                    border.ManipulationStarted += Border_ManipulationStarted;
                    border.ManipulationDelta += Border_ManipulationDelta;
                    border.ManipulationCompleted += Border_ManipulationCompleted;
                    border.DoubleTap += Border_DoubleTap;
                    border.Hold += Border_Hold;
                    border.MouseLeftButtonDown += Border_MouseLeftButtonDown;
                }

                try
                {
                    _browser.InvokeScript("execScript", MinifiedMouseScript);
                }
                catch (Exception)
                {
                    Debug.WriteLine("BrowserHelper Failed to install mouse script in WebBrowser");
                }
            }
            browser.Loaded += new RoutedEventHandler(browser_Loaded);
        }
Exemplo n.º 12
0
 internal DragDropManager(FrameworkElement owner)
 {
     _owner = owner;
     Visibility = Visibility.Collapsed;
     SetValue(RowSpanProperty, 1000);
     SetValue(ColumnSpanProperty, 1000);
     Background = Brushes.Transparent;
     _indicatorBorderBrush = new SolidColorBrush(Color.FromArgb(192, _clr.R, _clr.G, _clr.B));
     _indicatorBorderBrush.Freeze();
     _indicatorBackgroundBrush = new SolidColorBrush(Color.FromArgb(64, _clr.R, _clr.G, _clr.B));
     _indicatorBackgroundBrush.Freeze();
     _source = CreateIndicator();
     _target = CreateIndicator();
     MouseMove += delegate(object s, MouseEventArgs e)
     {
         base.Cursor = ((this._target.Width > 0.0) ? Cursors.Hand : null);
         this.OnDragging(e);
     };
     MouseLeftButtonUp += delegate(object s, MouseButtonEventArgs e)
     {
         this.IsOpen = false;
         this.OnDropped(e);
     };
     LostMouseCapture += delegate { this.IsOpen = false; };
 }
Exemplo n.º 13
0
    public static FlowDocument AddDrop(this StackPanel sp, Drop drop)
    {
      FlowDocumentParser fdp = new FlowDocumentParser() { TextAlignment = TextAlignment.Right };

      fdp.AddBold(drop.Author.Name + " at " + 
        String.Format("{0:dd/MM/yyyy HH:mm}", drop.UpdatedAt));
      fdp = new FlowDocumentParser(fdp.Doc);
      fdp.AddMarkUp(drop.Content);

      FlowDocumentScrollViewer fdsv = new FlowDocumentScrollViewer()
      {
        HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled,
        Document = fdp.Doc,
        VerticalScrollBarVisibility = ScrollBarVisibility.Auto,
        Foreground = new SolidColorBrush(Colors.White)
      };

      Border border = new Border()
      {
        BorderThickness = new Thickness(0, 5, 0, 5),
        CornerRadius = new CornerRadius(10),
        Padding = new Thickness(3),
        Background = new SolidColorBrush(Colors.Black),
        Cursor = Cursors.Hand,
        Child = fdsv
      };

      fdp.Doc.PreviewMouseWheel += Bubbler;
      fdsv.PreviewMouseWheel += Bubbler;
      fdsv.SizeChanged += Resizer;

      sp.Children.Add(border);

      return fdp.Doc;
    }
Exemplo n.º 14
0
        public KNTabView()
            : base()
        {
            TabHeight = 30.0;

            SnapsToDevicePixels = true;

            contentCanvas = new Border();
            contentCanvas.Background = new SolidColorBrush(Color.FromRgb(245, 245, 245));
            contentCanvas.BorderBrush = new SolidColorBrush(Color.FromArgb(25, 0, 0, 0));
            contentCanvas.BorderThickness = new Thickness(1.0);
            Canvas.SetZIndex(contentCanvas, kContentZIndex);

            DropShadowEffect effect = new DropShadowEffect();
            effect.BlurRadius = 3.0;
            effect.Color = Colors.Black;
            effect.Direction = 90.0;
            effect.ShadowDepth = 0.0;

            contentCanvas.Effect = effect;

            this.Children.Add(contentCanvas);

            this.AddObserverToKeyPathWithOptions(this, "TabHeight", 0, null);
            this.AddObserverToKeyPathWithOptions(this, "ActiveItem", 0, null);
            this.AddObserverToKeyPathWithOptions(this, "LeftControl", 0, null);
            this.AddObserverToKeyPathWithOptions(this,
                "Items",
                KNKeyValueObservingOptions.KNKeyValueObservingOptionNew |
                KNKeyValueObservingOptions.KNKeyValueObservingOptionOld,
                null);
        }
        private void showPopup2_Click(object sender, RoutedEventArgs e)
        {
            if (p.IsOpen == true)
                return;
            Border border = new Border();
            border.BorderBrush = new SolidColorBrush(Colors.White);
            border.BorderThickness = new Thickness(2.0);

            StackPanel panel1 = new StackPanel();

            Button button1 = new Button();
            button1.Content = "Close";
            button1.Margin = new Thickness(5.0);
            button1.Click += new RoutedEventHandler(button1_Click);
            TextBlock textblock1 = new TextBlock();
            textblock1.Text = "Premi il pulsante Close";
            textblock1.Margin = new Thickness(5.0);
            panel1.Children.Add(textblock1);
            panel1.Children.Add(button1);
            border.Child = panel1;

            p = new Popup();
            // Imposta la proprietà Child con il border che è il contenitore principale che contiene a sua volta uno stackpanel, un textblock ed un button.
            p.Child = border;
            //imposta la posizione del popup
            p.VerticalOffset = 100;
            p.HorizontalOffset = 50;

            // apre il popup
            p.IsOpen = true;
        }
        private void BuildPopup()
        {
            _groupSelectorPopup = new Popup();
            _border = new Border() { Background = new SolidColorBrush(Color.FromArgb(0xa0, 0, 0, 0)) };
            GestureListener listener = GestureService.GetGestureListener(_border);
            listener.GestureBegin += HandleGesture;
            listener.GestureCompleted += HandleGesture;
            listener.DoubleTap += HandleGesture;
            listener.DragCompleted += HandleGesture;
            listener.DragDelta += HandleGesture;
            listener.DragStarted += HandleGesture;
            listener.Flick += HandleGesture;
            listener.Hold += HandleGesture;
            listener.PinchCompleted += HandleGesture;
            listener.PinchDelta += HandleGesture;
            listener.PinchStarted += HandleGesture;
            listener.Tap += HandleGesture;

            _itemsControl = new LongListSelectorItemsControl();
            _itemsControl.ItemTemplate = GroupItemTemplate;
            _itemsControl.ItemsPanel = GroupItemsPanel;
            _itemsControl.ItemsSource = ItemsSource;

            _itemsControl.GroupSelected += itemsControl_GroupSelected;

            _groupSelectorPopup.Child = _border;
            ScrollViewer sv = new ScrollViewer() { HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled };

            _border.Child = sv;
            sv.Content = _itemsControl;

            SetItemsControlSize();
        }
Exemplo n.º 17
0
        public JumpToSlideWindow()
        {
            InitializeComponent();
            var mainWin = DesignerMainWindow.GetInstance();
            for (int i = 0; i < mainWin.lbThumbs.Items.Count; i++)
            {
                var vb = mainWin.lbThumbs.Items[i] as Viewbox;
                var slideImg = (vb.Child as Border).Child as Image;
                if (slideImg == null) continue;

                var thumb = new Image {Source = slideImg.Source};
                if (i == mainWin.GetCurrentSlideNr())
                    thumb.Opacity = 0.7;

                thumb.Width = 110;
                thumb.Height = thumb.Width/1.6666667;

                var brdr = new Border
                    {
                        BorderBrush = Brushes.Black,
                        BorderThickness = new Thickness(2),
                        Margin = new Thickness(1, 3, 2, 3),
                        Child = thumb,
                        Tag = vb.Tag
                    };

                lbSlides.Items.Add(brdr);
            }
        }
Exemplo n.º 18
0
        public MainViewModel(Border Stage)
        {
            AuthVM = new AuthenticationViewModel();

            LoginCommand = new RelayCommand(DoLogin);
            LogoutCommand = new RelayCommand(DoLogout, AuthVM.CanDoAuthenticated);
            NewControlCommand = new RelayCommand(DoNewControl, CanDoNewControl);
            NewWindowCommand = new RelayCommand(DoNewWindow, CanDoNewWindow);
            NewControl2Command = new RelayCommand(DoNewControl2, CanDoNewControl2);

            TheMenu = new List<MyMenuItem>
            {
                new MyMenuItem { Header = "Log off", Command = LogoutCommand },
                new MyMenuItem { Header = "Other stuff",
                    Children = new List<MyMenuItem>
                    {
                        new MyMenuItem { Header = "Load new control", Command = NewControlCommand },
                        new MyMenuItem { Header = "Load control v2", Command = NewControl2Command },
                        new MyMenuItem { Header = "Open new window", Command = NewWindowCommand },
                    },
                },
            };

            ApplicationController.GetInstance().SetStage(Stage);
        }
Exemplo n.º 19
0
        // Constructor.
        public Lister()
        {
            Focusable = false;

            // Make Border the content of the ContentControl.
            Border bord = new Border();
            bord.BorderThickness = new Thickness(1);
            bord.BorderBrush = SystemColors.ActiveBorderBrush;
            bord.Background = SystemColors.WindowBrush;
            Content = bord;

            // Make ScrollViewer the child of the border.
            scroll = new ScrollViewer();
            scroll.Focusable = false;
            scroll.Padding = new Thickness(2, 0, 0, 0);
            bord.Child = scroll;

            // Make StackPanel the content of the ScrollViewer.
            stack = new StackPanel();
            scroll.Content = stack;

            // Install a handler for the mouse left button down.
            AddHandler(TextBlock.MouseLeftButtonDownEvent,
                new MouseButtonEventHandler(TextBlockOnMouseLeftButtonDown));

            Loaded += OnLoaded;
        }
        public ZoomableInlineAdornment(UIElement content, ITextView parent) {
            _parent = parent;
            Debug.Assert(parent is IInputElement);
            Content = new Border { BorderThickness = new Thickness(1), Child = content, Focusable = true };

            _zoom = 1.0;             // config.GetConfig().Repl.InlineMedia.MaximizedZoom
            _zoomStep = 0.25;        // config.GetConfig().Repl.InlineMedia.ZoomStep
            _minimizedZoom = 0.25;   // config.GetConfig().Repl.InlineMedia.MinimizedZoom
            _widthRatio = 0.67;      // config.GetConfig().Repl.InlineMedia.WidthRatio
            _heightRatio = 0.5;      // config.GetConfig().Repl.InlineMedia.HeightRatio

            _isResizing = false;
            UpdateSize();

            GotFocus += OnGotFocus;
            LostFocus += OnLostFocus;

            ContextMenu = MakeContextMenu();

            var trigger = new Trigger { Property = Border.IsFocusedProperty, Value = true };
            var setter = new Setter { Property = Border.BorderBrushProperty, Value = SystemColors.ActiveBorderBrush };
            trigger.Setters.Add(setter);

            var style = new Style();
            style.Triggers.Add(trigger);
            MyContent.Style = style;
        }
Exemplo n.º 21
0
        private void btnPrint_Click(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("Chart has been sent for printing...");
            popup = new Popup() { Name = "Popup" };
            border = new Border() { Name = "Border" };
            panel1 = new StackPanel() { Name = "Panel" };
            textblock1 = new TextBlock() { Name = "Textblock" };

            border.BorderBrush = new SolidColorBrush(Colors.DarkGray);
            border.BorderThickness = new Thickness(3.0);

            panel1.Background = new SolidColorBrush(Colors.LightGray);
            textblock1.Text = "Chart has been sent for printing...";
            textblock1.Margin = new Thickness(30.0);
            panel1.Children.Add(textblock1);
            Button button = new Button(){ Content = "OK", Width = 30, Height = 20, Margin = new Thickness(5.0)};
            button.Click +=new RoutedEventHandler(button_Click);
            panel1.Children.Add(button);

            border.Child = panel1;
            popup.Child = border;
            popup.HorizontalOffset = 613;
            popup.VerticalOffset = 375;
            popup.IsOpen = true;
        }
Exemplo n.º 22
0
        protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
        {
            base.OnElementChanged(e);

            if (e.OldElement == null)
            {
                var nativePhoneTextBox = (PhoneTextBox)Control.Children[0];
                //var nativePasswordBox = (PhoneTextBox)Control.Children[1];
                nativePhoneTextBox.Background = new SolidColorBrush(Colors.Yellow);
                nativePhoneTextBox.BorderBrush = new SolidColorBrush(Colors.Transparent);
                nativePhoneTextBox.Height = 100;
                nativePhoneTextBox.Margin = new System.Windows.Thickness(2,-10,2,5);
                nativePhoneTextBox.BorderThickness = new Thickness(0);
                nativePhoneTextBox.GotFocus += GotFocusaAction;
                nativePhoneTextBox.LostFocus += LostFocusAction;

                var border = new Border();
                border.CornerRadius = new CornerRadius(25);
                border.BorderThickness = new System.Windows.Thickness(1);
                border.BorderBrush = new SolidColorBrush(Colors.Brown);
                border.Background = new SolidColorBrush(Colors.Yellow);
                border.Margin = new System.Windows.Thickness(10);

                var parent = nativePhoneTextBox.Parent as System.Windows.Controls.Grid;
                if (parent != null)
                {
                    parent.Children.Remove(nativePhoneTextBox);
                    parent.Children.Add(border);
                    border.Child = nativePhoneTextBox;
                }
            }
        }
Exemplo n.º 23
0
        // bind cell to ticker
        public override void CreateCellContent(C1FlexGrid grid, Border bdr, CellRange range)
        {
            // create binding for this cell
            var r = grid.Rows[range.Row];
            var c = grid.Columns[range.Column];
            var pi = c.PropertyInfo;
            if (r.DataItem is FinancialData &&
               (pi.Name == "LastSale" || pi.Name == "Bid" || pi.Name == "Ask"))
            {
                // create stock ticker cell
                StockTicker ticker = new StockTicker();
                bdr.Child = ticker;
                bdr.Padding = _thicknessEmpty;

                // to show sparklines
                ticker.Tag = r.DataItem;
                ticker.BindingSource = pi.Name;

                // traditional binding
                var binding = new Binding(pi.Name);
                binding.Source = r.DataItem;
                binding.Mode = BindingMode.OneWay;
                ticker.SetBinding(StockTicker.ValueProperty, binding);
            }
            else
            {
                // use default implementation
                base.CreateCellContent(grid, bdr, range);
            }
        }
Exemplo n.º 24
0
        public void AddActor(string name)
        {
            var header = new Border
            {
                BorderBrush = Brushes.Black,
                BorderThickness = new Thickness(1),
                Margin = new Thickness(5),
                CornerRadius = new CornerRadius(3),
                Padding = new Thickness(15, 2, 15, 2),
                Child = new TextBlock { Text = name },
                SnapsToDevicePixels = true,
            };
            SeqDiagPanel.SetPosition(header,
                Position.OneColumn(_column, 0));
            LayoutRoot.Children.Add(header);

            var line = new Line
            {
                StrokeThickness = 1,
                Y1 = 0,
                Y2 = 75,
                X1 = 0,
                X2 = 0,
                MinHeight = 75,
                Stroke = Brushes.Black,
                Stretch = Stretch.Fill,
                SnapsToDevicePixels = true,
            };
            SeqDiagPanel.SetPosition(line, Position.Body(_column));
            LayoutRoot.Children.Add(line);
            _column++;
        }
Exemplo n.º 25
0
        public WaveGraph(Canvas waveGraph, Border waveBorder, float[] soundData, int sampleRate)
        {
            float max;
            int i;
            this.waveGraph = waveGraph;
            this.waveBorder = waveBorder;
            this.soundData = soundData;
            this.sampleRate = sampleRate;

            max = soundData.Max(element => Math.Abs(element));
            createAmplitudeLabels(max);

            numberOfSeconds = (soundData.Length / sampleRate);
            heightRatio = GRAPH_HEIGHT / (max * 2);
            //DrawSecond(PIXEL_SECOND * 0, sampleRate * 0);
            for (i = 0; i < numberOfSeconds; i++)
            {
                createSecondLabel(i);
                DrawSecond(PIXEL_SECOND*i, sampleRate*i);
            }
            //create final second label
            createSecondLabel(i);

            //adjusts the canvas width based on number of seconds and space between end points
            int newCanvasWidth = (numberOfSeconds * PIXEL_SECOND) + (XSTART * 2);
            if (newCanvasWidth > canvasWidth)
            {
                waveBorder.Height += HSCROLLSIZE;
                Console.WriteLine(canvasHeight);
                waveGraph.Height = canvasHeight;
                extendCanvas(newCanvasWidth);
            }

            //DrawGraph();
        }
Exemplo n.º 26
0
        public PageContent()
        {
            Brush brush = new SolidColorBrush(Colors.DarkGray);
            brush.Opacity = 0.80;

            this.Background = brush;

            Border frameBorder = new Border();
            frameBorder.BorderBrush = Brushes.Gray;
            frameBorder.BorderThickness = new Thickness(2);

            Grid panelMain = new Grid();

            RowDefinition rowDefTop = new RowDefinition();
            rowDefTop.Height = new GridLength(90, GridUnitType.Star);
            panelMain.RowDefinitions.Add(rowDefTop);

            RowDefinition rowDefBottom = new RowDefinition();
            rowDefBottom.Height = new GridLength(10, GridUnitType.Star);
            panelMain.RowDefinitions.Add(rowDefBottom);

            panelContent = new StackPanel();
            panelContent.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
            panelContent.Margin = new Thickness(10, 10, 10, 10);

            Grid.SetRow(panelContent, 0);
            panelMain.Children.Add(panelContent);

            frameBorder.Child = panelMain;

            this.Content = frameBorder;
        }
Exemplo n.º 27
0
        public RemovedItemAdorner(UIElement adornedPanel, FrameworkElement adornedElement)
            : base(adornedPanel)
        {
            this.IsHitTestVisible = false;

            Width = Math.Ceiling(adornedElement.ActualWidth);
            Height = Math.Ceiling(adornedElement.ActualHeight);
            
            var offset = VisualTreeHelper.GetOffset(adornedElement);
            
            _border = new Border 
            { 
                Background = new VisualBrush(adornedElement),                 
                Width = adornedElement.ActualWidth, 
                Height = adornedElement.ActualHeight,
                RenderTransform = new TranslateTransform
                {
                    X = offset.X,
                    Y = offset.Y,
                }
            };

            // HACK: Need to figure out why this doesn't work
            _border.Width = 50;
            _border.Height = 40;

            AddVisualChild(_border);

            Loaded += RemovedItemAdorner_Loaded;
        }
        public ChangeObjVisibilityWindow()
        {
            InitializeComponent();
            var mainWin = DesignerMainWindow.GetInstance();

            for (int i = 0; i < mainWin.canMainCanvas.Children.Count; i++)
            {
                UIElement elem = mainWin.canMainCanvas.Children[i];
                var obj = elem as IObject;
                if (obj == null) continue;
                if (obj.Type == ObjectType.Area || obj.Type == ObjectType.DropContainer
                    || obj.Type == ObjectType.FlashAnimation || obj.Type == ObjectType.Sound) continue;
                
                var brdr = new Border
                    {
                        BorderBrush = Brushes.Black,
                        BorderThickness = new Thickness(0),
                        Margin = new Thickness(1, 3, 2, 3),
                        Width = 110,
                        Height = 110/1.66667
                    };

                var element = elem as IObject;
                IObject copy = element.DeepCopyWithObjectId();
                copy.HorizontalAlignment = HorizontalAlignment.Center;
                copy.VerticalAlignment = VerticalAlignment.Center;

                if (copy.Height > copy.Width)
                    copy.Height = brdr.Height - 10;
                else
                    copy.Width = brdr.Width - 15;
                brdr.Child = copy as UIElement;
                lbObjects.Items.Add(brdr);
            }
        }
Exemplo n.º 29
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _dragWidget = (Border)GetTemplateChild("PART_DragWidget");
            if (_dragWidget != null)
            {
                _dragWidget.AddHandler(UIElement.MouseLeftButtonDownEvent, new MouseButtonEventHandler(HeaderLeftMouseButtonDown), true);
                _dragWidget.AddHandler(UIElement.MouseLeftButtonUpEvent, new MouseButtonEventHandler(HeaderMouseLeftButtonUp), true);
                _dragWidget.MouseMove += (o, e) => HeaderMouseMove(e);
            }

            CloseButton = (Button)GetTemplateChild("PART_CloseButton");
            if (CloseButton != null)
                CloseButton.Click += (o, e) => Close();

            Overlay = GetTemplateChild("PART_Overlay") as Panel;
            WindowRoot = GetTemplateChild("PART_WindowRoot") as Grid;

            WindowRoot.RenderTransform = _moveTransform;

            //TODO: move somewhere else
            _parent = VisualTreeHelper.GetParent(this) as FrameworkElement;
            _parent.SizeChanged += (o, ea) =>
            {
                Overlay.Height = ea.NewSize.Height;
                Overlay.Width = ea.NewSize.Width;
            };

            ChangeVisualState();
        }
Exemplo n.º 30
0
        private void InitGrid()
        {
            var first = true;
            _gridPlace.ColumnDefinitions.Clear();
            _gridPlace.RowDefinitions.Clear();
            _gridPlace.Width = _place.GetLength(0)*10;
            _gridPlace.Height = _place.GetLength(1)*10;

            for (var i = 0; i < _place.GetLength(0); i++)
            {
                _gridPlace.ColumnDefinitions.Add(new ColumnDefinition());
                for (var j = 0; j < _place.GetLength(1); j++)
                {
                    if (first) _gridPlace.RowDefinitions.Add(new RowDefinition());
                    var border = new Border();
                    border.SetValue(Grid.RowProperty, i);
                    border.SetValue(Grid.ColumnProperty, j);
                    border.MouseLeftButtonUp += ChangeToSeat;
                    border.MouseRightButtonUp += ChangeToTable;
                    border.Style = _gridPlace.FindResource("Empty") as Style;
                    _gridPlace.Children.Add(border);
                }
                first = false;
            }
        }
Exemplo n.º 31
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.RBcreate = ((System.Windows.Controls.RadioButton)(target));

            #line 12 "..\..\MainWindow.xaml"
                this.RBcreate.Checked += new System.Windows.RoutedEventHandler(this.RBcreate_Checked);

            #line default
            #line hidden
                return;

            case 2:
                this.RBsearchforthenearest = ((System.Windows.Controls.RadioButton)(target));

            #line 13 "..\..\MainWindow.xaml"
                this.RBsearchforthenearest.Checked += new System.Windows.RoutedEventHandler(this.RBsearchforthenearest_Checked);

            #line default
            #line hidden
                return;

            case 3:
                this.Badd = ((System.Windows.Controls.Border)(target));
                return;

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

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

            #line 17 "..\..\MainWindow.xaml"
                this.CBobjects.Loaded += new System.Windows.RoutedEventHandler(this.CBobjects_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 20 "..\..\MainWindow.xaml"
                this.Baddname.Click += new System.Windows.RoutedEventHandler(this.Baddname_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 9:
                this.Bsearch = ((System.Windows.Controls.Border)(target));
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

            case 14:
                this.LBresultofsearch = ((System.Windows.Controls.ListBox)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.LBresultofsearch.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.LBresultofsearch_SelectionChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.gmap = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:
                this.Map = ((GMap.NET.WindowsPresentation.GMapControl)(target));

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

            #line default
            #line hidden

            #line 29 "..\..\MainWindow.xaml"
                this.Map.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.Map_MouseDoubleClick);

            #line default
            #line hidden

            #line 29 "..\..\MainWindow.xaml"
                this.Map.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Map_MouseLeave);

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;

            case 20:
                this.pr = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 32
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.brd_findExistingCostumer_Copy4 = ((System.Windows.Controls.Border)(target));
                return;

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

            case 3:
                this.brd_findExistingCostumer_Copy2 = ((System.Windows.Controls.Border)(target));
                return;

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

            case 5:
                this.brd_findExistingCostumer_Copy = ((System.Windows.Controls.Border)(target));
                return;

            case 6:
                this.brd_findExistingCostumer = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.brd_addCostumer = ((System.Windows.Controls.Border)(target));
                return;

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

            case 9:
                this.lbl_findExistingCostumer = ((System.Windows.Controls.Label)(target));
                return;

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

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

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

            #line 22 "..\..\MainWindow.xaml"
                this.txt_costumerReferenceNumber.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txt_costumerReferenceNumber_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\MainWindow.xaml"
                this.btn_addCostumer.Click += new System.Windows.RoutedEventHandler(this.btn_addCostumer_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

            case 20:
                this.cmbBox_Bookings = ((System.Windows.Controls.ComboBox)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.cmbBox_Bookings.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbBox_Bookings_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

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

            case 24:
                this.txt_bookingDepartureDate = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 35 "..\..\MainWindow.xaml"
                this.btn_addBooking.Click += new System.Windows.RoutedEventHandler(this.btn_addBooking_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.btn_removeBooking = ((System.Windows.Controls.Button)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.btn_removeBooking.Click += new System.Windows.RoutedEventHandler(this.btn_removeBooking_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 30:
                this.btn_amendCostumer = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\MainWindow.xaml"
                this.btn_amendCostumer.Click += new System.Windows.RoutedEventHandler(this.btn_amendCostumer_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.lbl_addBooking = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.btn_searchBooking = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\MainWindow.xaml"
                this.btn_searchBooking.Click += new System.Windows.RoutedEventHandler(this.btn_searchBooking_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.lbl_bookingDietaryRequirements = ((System.Windows.Controls.Label)(target));
                return;

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

            case 35:
                this.lbl_bookingGuests = ((System.Windows.Controls.Label)(target));
                return;

            case 36:
                this.cmb_bookingGuests = ((System.Windows.Controls.ComboBox)(target));

            #line 46 "..\..\MainWindow.xaml"
                this.cmb_bookingGuests.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmb_bookingGuests_SelectionChanged);

            #line default
            #line hidden
                return;

            case 37:
                this.lbl_guestName = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 40:
                this.txt_guestName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.txt_guestPassportNumber = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 44:
                this.cmb_bookingExtras = ((System.Windows.Controls.ComboBox)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.cmb_bookingExtras.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmb_bookingExtras_SelectionChanged);

            #line default
            #line hidden
                return;

            case 45:
                this.btn_deleteGuest = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 46:
                this.btn_amendGuest = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 47:
                this.btn_addGuest = ((System.Windows.Controls.Button)(target));

            #line 57 "..\..\MainWindow.xaml"
                this.btn_addGuest.Click += new System.Windows.RoutedEventHandler(this.btn_addGuest_Click);

            #line default
            #line hidden
                return;

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

            #line 58 "..\..\MainWindow.xaml"
                this.btn_addExtra.Click += new System.Windows.RoutedEventHandler(this.btn_addExtra_Click);

            #line default
            #line hidden
                return;

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

            #line 59 "..\..\MainWindow.xaml"
                this.btn_amendExtra.Click += new System.Windows.RoutedEventHandler(this.btn_amendExtra_Click);

            #line default
            #line hidden
                return;

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

            #line 60 "..\..\MainWindow.xaml"
                this.btn_deleteExtra.Click += new System.Windows.RoutedEventHandler(this.btn_deleteExtra_Click);

            #line default
            #line hidden
                return;

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

            #line 61 "..\..\MainWindow.xaml"
                this.btn_saveChanges.Click += new System.Windows.RoutedEventHandler(this.btn_saveChanges_Click);

            #line default
            #line hidden
                return;

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

            case 53:
                this.txt_extraDietaryRequirements = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 55:
                this.txt_extraStartDate = ((System.Windows.Controls.TextBox)(target));
                return;

            case 56:
                this.lbl_extraEndDate = ((System.Windows.Controls.Label)(target));
                return;

            case 57:
                this.txt_extraEndDate = ((System.Windows.Controls.TextBox)(target));
                return;

            case 58:
                this.lbl_extraDriverName = ((System.Windows.Controls.Label)(target));
                return;

            case 59:
                this.txt_extraDriverName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 60:
                this.btn_invoice = ((System.Windows.Controls.Button)(target));

            #line 70 "..\..\MainWindow.xaml"
                this.btn_invoice.Click += new System.Windows.RoutedEventHandler(this.btn_invoice_Click);

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

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

            case 3:
                this.settingtab = ((System.Windows.Controls.TabItem)(target));
                return;

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

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

            case 6:
                this.Blue = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 7:
                this.Red = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

            case 12:

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

            #line default
            #line hidden
                return;

            case 13:

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

            #line default
            #line hidden
                return;

            case 14:
                this.specificationstab = ((System.Windows.Controls.TabItem)(target));
                return;

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

            case 16:
                this.Doc2 = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 17:

            #line 192 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.blue2_Click);

            #line default
            #line hidden
                return;

            case 18:

            #line 197 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Red2_Click);

            #line default
            #line hidden
                return;

            case 19:

            #line 202 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Green2_Click);

            #line default
            #line hidden
                return;

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

            case 21:
                this.Male = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 22:
                this.Exit = ((System.Windows.Controls.Button)(target));

            #line 281 "..\..\MainWindow.xaml"
                this.Exit.Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

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

            #line 8 "..\..\..\..\UserManagement\FindUser.xaml"
                ((RTM.UserManagement.FindUser)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

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

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

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

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

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

            #line 15 "..\..\..\..\UserManagement\FindUser.xaml"
                this.RefreshBtn.Click += new System.Windows.RoutedEventHandler(this.RefreshBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\..\..\UserManagement\FindUser.xaml"
                this.OpenBtn.Click += new System.Windows.RoutedEventHandler(this.OpenBtn_Click);

            #line default
            #line hidden
                return;

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

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

            case 10:
                this.Name = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 11:
                this.Family = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 12:
                this.Username = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 13:
                this.SN = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 14:
                this.Tel = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

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

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

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

            #line 29 "..\..\..\..\UserManagement\FindUser.xaml"
                this.SearchBtn.Click += new System.Windows.RoutedEventHandler(this.SearchBtn_Click);

            #line default
            #line hidden
                return;

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

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

            case 20:
                this.label4 = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.OrgCom = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 22:
                this.PositionTxt = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 23:
                this.PrintBtn = ((System.Windows.Controls.Button)(target));

            #line 35 "..\..\..\..\UserManagement\FindUser.xaml"
                this.PrintBtn.Click += new System.Windows.RoutedEventHandler(this.PrintBtn_Click);

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

            #line 12 "..\..\Warehouse.xaml"
                ((BoxControlMonitoringSystem.Warehouse)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.tbCode = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target));

            #line 37 "..\..\Warehouse.xaml"
                this.tbCode.KeyDown += new System.Windows.Input.KeyEventHandler(this.TbCode_KeyDown);

            #line default
            #line hidden
                return;

            case 5:
                this.tab1 = ((Telerik.Windows.Controls.RadButton)(target));

            #line 57 "..\..\Warehouse.xaml"
                this.tab1.Click += new System.Windows.RoutedEventHandler(this.Tab1_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.tab2 = ((Telerik.Windows.Controls.RadButton)(target));

            #line 62 "..\..\Warehouse.xaml"
                this.tab2.Click += new System.Windows.RoutedEventHandler(this.Tab2_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.ForDelivery = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.gridForDelivery = ((Telerik.Windows.Controls.RadGridView)(target));
                return;

            case 9:
                this.ForReturn = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.gridForReturn_Box = ((Telerik.Windows.Controls.RadGridView)(target));
                return;

            case 11:
                this.gridForReturn_Partition = ((Telerik.Windows.Controls.RadGridView)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 6 "..\..\..\View\WireGraph.xaml"
                ((ElectricAnalysis.View.WireGraph)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Graph_KeyDown);

            #line default
            #line hidden

            #line 6 "..\..\..\View\WireGraph.xaml"
                ((ElectricAnalysis.View.WireGraph)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Graph_KeyUp);

            #line default
            #line hidden
                return;

            case 2:
                this.SearchList = ((System.Windows.Controls.ComboBox)(target));

            #line 12 "..\..\..\View\WireGraph.xaml"
                this.SearchList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SearchList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:
                this.scroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 5:
                this.outerBd = ((System.Windows.Controls.Border)(target));

            #line 16 "..\..\..\View\WireGraph.xaml"
                this.outerBd.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.map_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 16 "..\..\..\View\WireGraph.xaml"
                this.outerBd.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.map_MouseLeftButtonUp);

            #line default
            #line hidden

            #line 17 "..\..\..\View\WireGraph.xaml"
                this.outerBd.MouseMove += new System.Windows.Input.MouseEventHandler(this.map_MouseMove);

            #line default
            #line hidden

            #line 17 "..\..\..\View\WireGraph.xaml"
                this.outerBd.MouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.map_MouseWheel);

            #line default
            #line hidden

            #line 17 "..\..\..\View\WireGraph.xaml"
                this.outerBd.MouseLeave += new System.Windows.Input.MouseEventHandler(this.map_MouseLeave);

            #line default
            #line hidden
                return;

            case 6:
                this.RendSize = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 7:
                this.bdMap = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.map = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 37
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tb_add = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 2:
                this.tb_settings = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 3:
                this.add = ((System.Windows.Controls.Border)(target));
                return;

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

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

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

            case 7:
                this.settings = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.todayPlans = ((System.Windows.Controls.Border)(target));
                return;

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

            case 10:
                this.taskList = ((System.Windows.Controls.ItemsControl)(target));
                return;

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

            #line 224 "..\..\home.xaml"
                this.addTodayTask_textBox.GotFocus += new System.Windows.RoutedEventHandler(this.textBox_gotFocus);

            #line default
            #line hidden

            #line 225 "..\..\home.xaml"
                this.addTodayTask_textBox.LostFocus += new System.Windows.RoutedEventHandler(this.textBox_lostFocus);

            #line default
            #line hidden
                return;

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

            #line 229 "..\..\home.xaml"
                this.AddButton.Click += new System.Windows.RoutedEventHandler(this.addTask_Click);

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

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

            case 3:
                this.row2 = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 4:
                this.row3 = ((System.Windows.Controls.RowDefinition)(target));
                return;

            case 5:
                this.column1 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 6:
                this.column2 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 7:
                this.column3 = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

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

            #line 47 "..\..\MainWindow.xaml"
                this.Button0.Click += new System.Windows.RoutedEventHandler(this.Button_Grid_Click);

            #line default
            #line hidden
                return;

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

            #line 48 "..\..\MainWindow.xaml"
                this.Button1.Click += new System.Windows.RoutedEventHandler(this.Button_Grid_Click);

            #line default
            #line hidden
                return;

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

            #line 49 "..\..\MainWindow.xaml"
                this.Button2.Click += new System.Windows.RoutedEventHandler(this.Button_Grid_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 17:

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

            #line default
            #line hidden
                return;

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

            #line 168 "..\..\MainWindow.xaml"
                this.PlayButton.Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

            case 19:
                this.stick7 = ((System.Windows.Controls.Border)(target));
                return;

            case 20:
                this.stick8 = ((System.Windows.Controls.Border)(target));
                return;

            case 21:
                this.stick9 = ((System.Windows.Controls.Border)(target));
                return;

            case 22:
                this.stick4 = ((System.Windows.Controls.Border)(target));
                return;

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

            case 24:
                this.stick6 = ((System.Windows.Controls.Border)(target));
                return;

            case 25:
                this.stick1 = ((System.Windows.Controls.Border)(target));
                return;

            case 26:
                this.stick2 = ((System.Windows.Controls.Border)(target));
                return;

            case 27:
                this.stick3 = ((System.Windows.Controls.Border)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 4:

            #line 207 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown);

            #line default
            #line hidden
                return;

            case 5:
                this.CiriMenu = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 216 "..\..\MainWindow.xaml"
                this.IMGChat.MouseEnter += new System.Windows.Input.MouseEventHandler(this.Image_MouseEnter);

            #line default
            #line hidden

            #line 216 "..\..\MainWindow.xaml"
                this.IMGChat.MouseLeave += new System.Windows.Input.MouseEventHandler(this.Image_MouseLeave);

            #line default
            #line hidden

            #line 216 "..\..\MainWindow.xaml"
                this.IMGChat.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.IMGChat_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 7:

            #line 217 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Image_MouseEnter);

            #line default
            #line hidden
                return;

            case 8:

            #line 218 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseEnter += new System.Windows.Input.MouseEventHandler(this.Image_MouseEnter);

            #line default
            #line hidden

            #line 218 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeave += new System.Windows.Input.MouseEventHandler(this.Image_MouseLeave);

            #line default
            #line hidden
                return;

            case 9:

            #line 223 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown_2);

            #line default
            #line hidden
                return;

            case 10:

            #line 224 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Image_MouseDown_1);

            #line default
            #line hidden
                return;

            case 11:
                this.TBMyChat = ((Microsoft.Expression.Controls.Callout)(target));
                return;

            case 12:
                this.TBCiriChat = ((Microsoft.Expression.Controls.Callout)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GridMain = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            #line 95 "..\..\..\UserControls\Story.xaml"
                this.ImageVoid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.ImageVoid_MouseDown);

            #line default
            #line hidden
                return;

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

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

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

            #line 115 "..\..\..\UserControls\Story.xaml"
                this.imgUp.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.imgUp_MouseUp);

            #line default
            #line hidden
                return;

            case 7:
                this.GridLst = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 124 "..\..\..\UserControls\Story.xaml"
                this.imgDown.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.imgDown_MouseUp);

            #line default
            #line hidden
                return;

            case 9:
                this.GridPanel = ((System.Windows.Controls.Border)(target));
                return;

            case 10:
                this.CanvasString = ((System.Windows.Controls.Grid)(target));
                return;

            case 11:
                this.stackMain = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 13:
                this.imgView = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.LabelPopup = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DimValue = ((System.Windows.Controls.TextBox)(target));

            #line 32 "..\..\MainWindow.xaml"
                this.DimValue.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.DimValue_TextChanged);

            #line default
            #line hidden
                return;

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

            case 3:
                this.RepeatedCheck = ((System.Windows.Controls.CheckBox)(target));

            #line 36 "..\..\MainWindow.xaml"
                this.RepeatedCheck.Checked += new System.Windows.RoutedEventHandler(this.RepeatedCheck_Checked);

            #line default
            #line hidden

            #line 36 "..\..\MainWindow.xaml"
                this.RepeatedCheck.Unchecked += new System.Windows.RoutedEventHandler(this.RepeatedCheck_Unchecked);

            #line default
            #line hidden
                return;

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

            #line 38 "..\..\MainWindow.xaml"
                this.StartSpaceValue.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.StartSpaceValue_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\MainWindow.xaml"
                this.GoalSpaceValue.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.GoalSpaceValue_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 42 "..\..\MainWindow.xaml"
                this.PValue.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.PValue_TextChanged);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 10:
                this.mainFrame = ((System.Windows.Controls.Border)(target));
                return;

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

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

            case 13:
                this.PathText = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 3:
                this.TeacherImageBlurred2 = ((System.Windows.Controls.Border)(target));
                return;

            case 4:
                this.ProfileGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.ProfileGridBackground = ((System.Windows.Controls.Border)(target));
                return;

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

            case 7:
                this.TeacherPhotoContainer1 = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.TeacherPhotoContainer2 = ((System.Windows.Controls.Border)(target));
                return;

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

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

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

            case 12:
                this.txtCurrentTeacherEmail = ((System.Windows.Documents.Run)(target));
                return;

            case 13:
                this.txtCurrentTeacherPhone = ((System.Windows.Documents.Run)(target));
                return;

            case 14:
                this.txtCurrentTeacherResearchInterest = ((System.Windows.Documents.Run)(target));
                return;

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

            case 16:
                this.runCurrentTeacherAbout = ((System.Windows.Documents.Run)(target));
                return;

            case 17:
                this.NextTeacherInfoPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 18:
                this.txtNextTeacherName = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 20:
                this.txtNextTeacherEmail = ((System.Windows.Documents.Run)(target));
                return;

            case 21:
                this.txtNextTeacherPhone = ((System.Windows.Documents.Run)(target));
                return;

            case 22:
                this.txtNextTeacherResearchInterest = ((System.Windows.Documents.Run)(target));
                return;

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

            case 24:
                this.runNextTeacherAbout = ((System.Windows.Documents.Run)(target));
                return;

            case 25:
                this.NoTeacherOverlay = ((System.Windows.Controls.Border)(target));
                return;

            case 26:
                this.linkBack = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TextBox = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\MainWindow.xaml"
                this.Eat.Click += new System.Windows.RoutedEventHandler(this.Eat_Click);

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line 35 "..\..\MainWindow.xaml"
                this.BuyPotion.Click += new System.Windows.RoutedEventHandler(this.BuyPotion_Click);

            #line default
            #line hidden
                return;

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

            case 13:
                this.Dungeon_Picture = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 38 "..\..\MainWindow.xaml"
                this.Item.Click += new System.Windows.RoutedEventHandler(this.Items_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 17:
                this.HealthBar = ((System.Windows.Controls.ProgressBar)(target));

            #line 62 "..\..\MainWindow.xaml"
                this.HealthBar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.HealthBar_ValueChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.Health_Cross = ((System.Windows.Controls.Image)(target));
                return;

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

            case 20:
                this.Magic_Text = ((System.Windows.Controls.Label)(target));
                return;

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

            case 22:
                this.SkeletonHealth = ((System.Windows.Controls.ProgressBar)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.SkeletonHealth.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.SkeletonHealth_ValueChanged);

            #line default
            #line hidden
                return;

            case 23:
                this.UI_Frame = ((System.Windows.Controls.Image)(target));
                return;

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

            case 25:
                this.ManaBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 26:
                this.Move_Out = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.Move_Out.Click += new System.Windows.RoutedEventHandler(this.Move_Out_Click);

            #line default
            #line hidden
                return;

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

            case 28:
                this.Exit_Menu = ((System.Windows.Controls.Button)(target));

            #line 88 "..\..\MainWindow.xaml"
                this.Exit_Menu.Click += new System.Windows.RoutedEventHandler(this.Exit_Menu_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.Settings_Menu = ((System.Windows.Controls.Button)(target));

            #line 93 "..\..\MainWindow.xaml"
                this.Settings_Menu.Click += new System.Windows.RoutedEventHandler(this.Settings_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.Resume_Menu = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 31:
                this.Potion = ((System.Windows.Controls.Button)(target));

            #line 103 "..\..\MainWindow.xaml"
                this.Potion.Click += new System.Windows.RoutedEventHandler(this.Potion_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.S_Slider = ((System.Windows.Controls.Slider)(target));
                return;

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

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

            case 35:
                this.M_Slider = ((System.Windows.Controls.Slider)(target));
                return;

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

            case 37:
                this.Text_Option = ((System.Windows.Controls.Label)(target));
                return;

            case 38:
                this.Exit_Option = ((System.Windows.Controls.Button)(target));

            #line 128 "..\..\MainWindow.xaml"
                this.Exit_Option.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.Return = ((System.Windows.Controls.Button)(target));

            #line 133 "..\..\MainWindow.xaml"
                this.Return.Click += new System.Windows.RoutedEventHandler(this.Return_Button);

            #line default
            #line hidden
                return;

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

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

            case 42:
                this.Fireball = ((System.Windows.Controls.Button)(target));

            #line 147 "..\..\MainWindow.xaml"
                this.Fireball.Click += new System.Windows.RoutedEventHandler(this.Fireball_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.Icespear = ((System.Windows.Controls.Button)(target));

            #line 152 "..\..\MainWindow.xaml"
                this.Icespear.Click += new System.Windows.RoutedEventHandler(this.Icespear_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.ThunderStorm = ((System.Windows.Controls.Button)(target));

            #line 157 "..\..\MainWindow.xaml"
                this.ThunderStorm.Click += new System.Windows.RoutedEventHandler(this.ThunderStorm_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.Earthquake = ((System.Windows.Controls.Button)(target));

            #line 162 "..\..\MainWindow.xaml"
                this.Earthquake.Click += new System.Windows.RoutedEventHandler(this.Earthquake_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.Inventory = ((System.Windows.Controls.ListBox)(target));
                return;

            case 47:
                this.PotionSwift = ((System.Windows.Controls.Button)(target));

            #line 174 "..\..\MainWindow.xaml"
                this.PotionSwift.Click += new System.Windows.RoutedEventHandler(this.PotionSwift_Click);

            #line default
            #line hidden
                return;

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

            #line 182 "..\..\MainWindow.xaml"
                this.PotionTough.Click += new System.Windows.RoutedEventHandler(this.PotionTough_Click);

            #line default
            #line hidden
                return;

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

            #line 190 "..\..\MainWindow.xaml"
                this.PotionMana.Click += new System.Windows.RoutedEventHandler(this.PotionMana_Click);

            #line default
            #line hidden
                return;

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

            #line 198 "..\..\MainWindow.xaml"
                this.EscapeRope.Click += new System.Windows.RoutedEventHandler(this.EscapeRope_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.GiantSpiderHealth = ((System.Windows.Controls.ProgressBar)(target));

            #line 207 "..\..\MainWindow.xaml"
                this.GiantSpiderHealth.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.GiantSpider_ValueChanged);

            #line default
            #line hidden
                return;

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

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

            case 54:
                this.GhoulHealth = ((System.Windows.Controls.ProgressBar)(target));

            #line 210 "..\..\MainWindow.xaml"
                this.GhoulHealth.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.GhoulHealth_ValueChanged);

            #line default
            #line hidden
                return;

            case 55:
                this.Score = ((System.Windows.Controls.Label)(target));
                return;

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

            case 57:
                this.Login_Txt = ((System.Windows.Controls.Label)(target));
                return;

            case 58:
                this.LogInForeground = ((System.Windows.Controls.Border)(target));
                return;

            case 59:
                this.Username_Txt = ((System.Windows.Controls.Label)(target));
                return;

            case 60:
                this.Username = ((System.Windows.Controls.TextBox)(target));
                return;

            case 61:
                this.Password_Txt = ((System.Windows.Controls.Label)(target));
                return;

            case 62:
                this.Password = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 64
                this.SkeletonMonster = ((System.Windows.Controls.Image)(target));
                return;

            case 65:
                this.SpiderMonster = ((System.Windows.Controls.Image)(target));
                return;

            case 66:
                this.GhoulMonster = ((System.Windows.Controls.Image)(target));

            #line 227 "..\..\MainWindow.xaml"
                this.LogInButton.Click += new System.Windows.RoutedEventHandler(this.LogInButton_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 "..\..\WApplicationMap.xaml"
                ((Modeling.WApplicationMap)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);

            #line default
            #line hidden
                return;

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

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

            #line 19 "..\..\WApplicationMap.xaml"
                this.im_Back.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.im_Back_MouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.grid_Main = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.brd_LoadingBaner = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.brd_MenuMain = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.brd_Test = ((System.Windows.Controls.Border)(target));
                return;

            case 9:
                this.brd_MenuModeling = ((System.Windows.Controls.Border)(target));
                return;

            case 10:
                this.brd_Theory = ((System.Windows.Controls.Border)(target));
                return;

            case 11:
                this.brd_Map = ((System.Windows.Controls.Border)(target));
                return;

            case 12:
                this.brd_Modeling = ((System.Windows.Controls.Border)(target));
                return;

            case 13:
                this.brd_ElementCreater = ((System.Windows.Controls.Border)(target));
                return;

            case 14:
                this.brd_Settings = ((System.Windows.Controls.Border)(target));
                return;

            case 15:
                this.line = ((System.Windows.Shapes.Line)(target));
                return;

            case 16:
                this.line1 = ((System.Windows.Shapes.Line)(target));
                return;

            case 17:
                this.line2 = ((System.Windows.Shapes.Line)(target));
                return;

            case 18:
                this.line3 = ((System.Windows.Shapes.Line)(target));
                return;

            case 19:
                this.line4 = ((System.Windows.Shapes.Line)(target));
                return;

            case 20:
                this.line5 = ((System.Windows.Shapes.Line)(target));
                return;

            case 21:
                this.line6 = ((System.Windows.Shapes.Line)(target));
                return;

            case 22:
                this.line7 = ((System.Windows.Shapes.Line)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.txtSearch = ((FoodSafetyMonitoring.Manager.UserControls.TextboxSearchControl)(target));
                return;

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

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

            #line 104 "..\..\..\Manager\SysPersonManager.xaml"
                this.btnCreate.Click += new System.Windows.RoutedEventHandler(this.btnCreate_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.cmbPersonType = ((System.Windows.Controls.ComboBox)(target));

            #line 141 "..\..\..\Manager\SysPersonManager.xaml"
                this.cmbPersonType.GotFocus += new System.Windows.RoutedEventHandler(this.FrameworkElement_GotFocus);

            #line default
            #line hidden

            #line 141 "..\..\..\Manager\SysPersonManager.xaml"
                this.cmbPersonType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbPersonType_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 144 "..\..\..\Manager\SysPersonManager.xaml"
                this.txtPersonName.GotFocus += new System.Windows.RoutedEventHandler(this.FrameworkElement_GotFocus);

            #line default
            #line hidden
                return;

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

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

            #line 151 "..\..\..\Manager\SysPersonManager.xaml"
                this.btnAddPhoto.Click += new System.Windows.RoutedEventHandler(this.btnAddPhoto_Click);

            #line default
            #line hidden
                return;

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

            #line 153 "..\..\..\Manager\SysPersonManager.xaml"
                this.btnDeletePhoto.Click += new System.Windows.RoutedEventHandler(this.btnDeletePhoto_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.rdbMale = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 13:
                this.rdbFemale = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 14:
                this.cmbDept = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 15:
                this.cmbPersonProperty = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 16:
                this.txtBirthday = ((FoodSafetyMonitoring.Manager.UserControls.DatePickerControl)(target));
                return;

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

            #line 171 "..\..\..\Manager\SysPersonManager.xaml"
                this.txtHomeAddress.GotFocus += new System.Windows.RoutedEventHandler(this.FrameworkElement_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 173 "..\..\..\Manager\SysPersonManager.xaml"
                this.txtPersonPhone.GotFocus += new System.Windows.RoutedEventHandler(this.FrameworkElement_GotFocus);

            #line default
            #line hidden
                return;

            case 19:
                this.cmbArea = ((System.Windows.Controls.ComboBox)(target));

            #line 190 "..\..\..\Manager\SysPersonManager.xaml"
                this.cmbArea.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbArea_SelectionChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.cmbBuildingNo = ((System.Windows.Controls.ComboBox)(target));

            #line 192 "..\..\..\Manager\SysPersonManager.xaml"
                this.cmbBuildingNo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbBuildingNo_SelectionChanged);

            #line default
            #line hidden
                return;

            case 21:
                this.cmbFloor = ((System.Windows.Controls.ComboBox)(target));

            #line 194 "..\..\..\Manager\SysPersonManager.xaml"
                this.cmbFloor.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbFloor_SelectionChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.cmbLocation = ((System.Windows.Controls.ComboBox)(target));

            #line 196 "..\..\..\Manager\SysPersonManager.xaml"
                this.cmbLocation.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbLocation_SelectionChanged);

            #line default
            #line hidden
                return;

            case 23:
                this.cmbBedNo = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 24:
                this.container = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 216 "..\..\..\Manager\SysPersonManager.xaml"
                this.txtContactName.GotFocus += new System.Windows.RoutedEventHandler(this.FrameworkElement_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 218 "..\..\..\Manager\SysPersonManager.xaml"
                this.txtContactRelationship.GotFocus += new System.Windows.RoutedEventHandler(this.FrameworkElement_GotFocus);

            #line default
            #line hidden
                return;

            case 27:
                this.txtContactPhone = ((System.Windows.Controls.TextBox)(target));

            #line 220 "..\..\..\Manager\SysPersonManager.xaml"
                this.txtContactPhone.GotFocus += new System.Windows.RoutedEventHandler(this.FrameworkElement_GotFocus);

            #line default
            #line hidden
                return;

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

            case 29:
                this.txtMsg = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 227 "..\..\..\Manager\SysPersonManager.xaml"
                this.btnSave.Click += new System.Windows.RoutedEventHandler(this.btnSave_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.btnCancel = ((System.Windows.Controls.Button)(target));

            #line 229 "..\..\..\Manager\SysPersonManager.xaml"
                this.btnCancel.Click += new System.Windows.RoutedEventHandler(this.btnCancel_Click);

            #line default
            #line hidden
                return;

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

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

            case 34:
                this.btnSelect = ((System.Windows.Controls.Button)(target));

            #line 256 "..\..\..\Manager\SysPersonManager.xaml"
                this.btnSelect.Click += new System.Windows.RoutedEventHandler(this.btnSelect_Click);

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

            #line 20 "..\..\S_MenuManage.xaml"
                this.Border_Title.Loaded += new System.Windows.RoutedEventHandler(this.Border_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 30 "..\..\S_MenuManage.xaml"
                this.maxButton.Click += new System.Windows.RoutedEventHandler(this.MaxButton_Click);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\S_MenuManage.xaml"
                this.mniButton.Click += new System.Windows.RoutedEventHandler(this.MinButton_Click);

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\S_MenuManage.xaml"
                this.closeButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

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

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

            case 8:

            #line 48 "..\..\S_MenuManage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Search_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 49 "..\..\S_MenuManage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Add_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 50 "..\..\S_MenuManage.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DeleteMoreRows_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.dataGridUser = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 15:
                this.pag = ((TestDesigner.controls.ucPager)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CollectionGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 3:
                this.CardPopup = ((System.Windows.Controls.Border)(target));
                return;

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

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

            #line 53 "..\..\..\Collection.xaml"
                this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click);

            #line default
            #line hidden
                return;

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

            #line 54 "..\..\..\Collection.xaml"
                this.PreviewButton.Click += new System.Windows.RoutedEventHandler(this.PreviewButton_Click);

            #line default
            #line hidden
                return;

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

            #line 55 "..\..\..\Collection.xaml"
                this.DeleteButton.Click += new System.Windows.RoutedEventHandler(this.DeleteButton_Click);

            #line default
            #line hidden
                return;

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

            #line 56 "..\..\..\Collection.xaml"
                this.EditButton.Click += new System.Windows.RoutedEventHandler(this.EditButton_Click);

            #line default
            #line hidden
                return;

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

            #line 57 "..\..\..\Collection.xaml"
                this.ExportButton.Click += new System.Windows.RoutedEventHandler(this.ExportButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.CardView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 11:
                this.CardViewPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 12:
                this.FilterGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 13:
                this.SearchBox = ((System.Windows.Controls.Border)(target));
                return;

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

            #line 93 "..\..\..\Collection.xaml"
                this.SearchFilter.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.SearchFilter_TextChanged);

            #line default
            #line hidden

            #line 93 "..\..\..\Collection.xaml"
                this.SearchFilter.GotFocus += new System.Windows.RoutedEventHandler(this.TextBox_GotFocus);

            #line default
            #line hidden

            #line 93 "..\..\..\Collection.xaml"
                this.SearchFilter.LostFocus += new System.Windows.RoutedEventHandler(this.TextBox_LostFocus);

            #line default
            #line hidden
                return;

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

            #line 95 "..\..\..\Collection.xaml"
                this.TypeButton.MouseLeave += new System.Windows.Input.MouseEventHandler(this.TypeLeave);

            #line default
            #line hidden

            #line 95 "..\..\..\Collection.xaml"
                this.TypeButton.Click += new System.Windows.RoutedEventHandler(this.TypeButtonClick);

            #line default
            #line hidden
                return;

            case 16:
                this.TypeButtonText = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 17:
                this.TypeButtonImage = ((System.Windows.Controls.Image)(target));
                return;

            case 18:
                this.TypeScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 19:
                this.TypeStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

            #line 131 "..\..\..\Collection.xaml"
                this.LifeZero.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.LifeOne = ((System.Windows.Controls.Button)(target));

            #line 138 "..\..\..\Collection.xaml"
                this.LifeOne.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.LifeTwo = ((System.Windows.Controls.Button)(target));

            #line 145 "..\..\..\Collection.xaml"
                this.LifeTwo.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

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

            #line 152 "..\..\..\Collection.xaml"
                this.LifeThree.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

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

            #line 159 "..\..\..\Collection.xaml"
                this.LifeFour.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.LifeFive = ((System.Windows.Controls.Button)(target));

            #line 166 "..\..\..\Collection.xaml"
                this.LifeFive.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.LifeSix = ((System.Windows.Controls.Button)(target));

            #line 173 "..\..\..\Collection.xaml"
                this.LifeSix.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.LifeSeven = ((System.Windows.Controls.Button)(target));

            #line 180 "..\..\..\Collection.xaml"
                this.LifeSeven.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.LifeEight = ((System.Windows.Controls.Button)(target));

            #line 187 "..\..\..\Collection.xaml"
                this.LifeEight.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.LifeNinePlus = ((System.Windows.Controls.Button)(target));

            #line 194 "..\..\..\Collection.xaml"
                this.LifeNinePlus.Click += new System.Windows.RoutedEventHandler(this.Life_Click);

            #line default
            #line hidden
                return;

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

            case 32:
                this.DamageZero = ((System.Windows.Controls.Button)(target));

            #line 228 "..\..\..\Collection.xaml"
                this.DamageZero.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

            case 33:
                this.DamageOne = ((System.Windows.Controls.Button)(target));

            #line 235 "..\..\..\Collection.xaml"
                this.DamageOne.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.DamageTwo = ((System.Windows.Controls.Button)(target));

            #line 242 "..\..\..\Collection.xaml"
                this.DamageTwo.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.DamageThree = ((System.Windows.Controls.Button)(target));

            #line 249 "..\..\..\Collection.xaml"
                this.DamageThree.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

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

            #line 256 "..\..\..\Collection.xaml"
                this.DamageFour.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.DamageFive = ((System.Windows.Controls.Button)(target));

            #line 263 "..\..\..\Collection.xaml"
                this.DamageFive.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.DamageSix = ((System.Windows.Controls.Button)(target));

            #line 270 "..\..\..\Collection.xaml"
                this.DamageSix.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.DamageSeven = ((System.Windows.Controls.Button)(target));

            #line 277 "..\..\..\Collection.xaml"
                this.DamageSeven.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.DamageEight = ((System.Windows.Controls.Button)(target));

            #line 284 "..\..\..\Collection.xaml"
                this.DamageEight.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.DamageNinePlus = ((System.Windows.Controls.Button)(target));

            #line 291 "..\..\..\Collection.xaml"
                this.DamageNinePlus.Click += new System.Windows.RoutedEventHandler(this.Damage_Click);

            #line default
            #line hidden
                return;

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

            case 43:
                this.ManaZero = ((System.Windows.Controls.Button)(target));

            #line 325 "..\..\..\Collection.xaml"
                this.ManaZero.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.ManaOne = ((System.Windows.Controls.Button)(target));

            #line 332 "..\..\..\Collection.xaml"
                this.ManaOne.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.ManaTwo = ((System.Windows.Controls.Button)(target));

            #line 339 "..\..\..\Collection.xaml"
                this.ManaTwo.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;

            case 46:
                this.ManaThree = ((System.Windows.Controls.Button)(target));

            #line 346 "..\..\..\Collection.xaml"
                this.ManaThree.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.ManaFour = ((System.Windows.Controls.Button)(target));

            #line 353 "..\..\..\Collection.xaml"
                this.ManaFour.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;

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

            #line 360 "..\..\..\Collection.xaml"
                this.ManaFive.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;

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

            #line 367 "..\..\..\Collection.xaml"
                this.ManaSix.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;

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

            #line 374 "..\..\..\Collection.xaml"
                this.ManaSeven.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;

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

            #line 381 "..\..\..\Collection.xaml"
                this.ManaEight.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.ManaNinePlus = ((System.Windows.Controls.Button)(target));

            #line 388 "..\..\..\Collection.xaml"
                this.ManaNinePlus.Click += new System.Windows.RoutedEventHandler(this.Mana_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/DuelPortalCS;component/Views/DeckEditorNew.xaml", System.UriKind.Relative));
     this.Root               = ((System.Windows.Controls.Canvas)(this.FindName("Root")));
     this.lstLoadedCards     = ((System.Windows.Controls.ListBox)(this.FindName("lstLoadedCards")));
     this.lstCurrentDeckList = ((System.Windows.Controls.ListBox)(this.FindName("lstCurrentDeckList")));
     this.lstExtraDeckList   = ((System.Windows.Controls.ListBox)(this.FindName("lstExtraDeckList")));
     this.lblCardName        = ((System.Windows.Controls.TextBlock)(this.FindName("lblCardName")));
     this.lblCardType        = ((System.Windows.Controls.TextBlock)(this.FindName("lblCardType")));
     this.lblCardLevel       = ((System.Windows.Controls.TextBlock)(this.FindName("lblCardLevel")));
     this.cmdSaveAs          = ((System.Windows.Controls.Button)(this.FindName("cmdSaveAs")));
     this.txtSaveAs          = ((System.Windows.Controls.TextBox)(this.FindName("txtSaveAs")));
     this.cmdSave            = ((System.Windows.Controls.Button)(this.FindName("cmdSave")));
     this.cmbLoadDeck        = ((System.Windows.Controls.ComboBox)(this.FindName("cmbLoadDeck")));
     this.chkTournament      = ((System.Windows.Controls.CheckBox)(this.FindName("chkTournament")));
     this.chkTraditional     = ((System.Windows.Controls.CheckBox)(this.FindName("chkTraditional")));
     this.cmdClear           = ((System.Windows.Controls.Button)(this.FindName("cmdClear")));
     this.cmdPrevPage        = ((System.Windows.Controls.Button)(this.FindName("cmdPrevPage")));
     this.cmdNextPage        = ((System.Windows.Controls.Button)(this.FindName("cmdNextPage")));
     this.lstSideDeckList    = ((System.Windows.Controls.ListBox)(this.FindName("lstSideDeckList")));
     this.ctxtSideDeck       = ((DuelPortalCS.ContextMenu)(this.FindName("ctxtSideDeck")));
     this.cmdDoneSideDecking = ((System.Windows.Controls.Button)(this.FindName("cmdDoneSideDecking")));
     this.cmdSort            = ((System.Windows.Controls.Button)(this.FindName("cmdSort")));
     this.grdStatWrapper     = ((System.Windows.Controls.Grid)(this.FindName("grdStatWrapper")));
     this.lblCardLore        = ((System.Windows.Controls.TextBox)(this.FindName("lblCardLore")));
     this.lblCardFlavor      = ((System.Windows.Controls.TextBox)(this.FindName("lblCardFlavor")));
     this.bordCardATK        = ((System.Windows.Controls.Border)(this.FindName("bordCardATK")));
     this.lblCardATK         = ((System.Windows.Controls.TextBlock)(this.FindName("lblCardATK")));
     this.bordCardDEF        = ((System.Windows.Controls.Border)(this.FindName("bordCardDEF")));
     this.lblCardDEF         = ((System.Windows.Controls.TextBlock)(this.FindName("lblCardDEF")));
     this.Label11            = ((System.Windows.Controls.TextBlock)(this.FindName("Label11")));
     this.lblSetName         = ((System.Windows.Controls.TextBlock)(this.FindName("lblSetName")));
     this.lblSlash           = ((System.Windows.Controls.Label)(this.FindName("lblSlash")));
     this.cmdDeleteDeck      = ((System.Windows.Controls.Button)(this.FindName("cmdDeleteDeck")));
     this.cmdClipboard       = ((System.Windows.Controls.Button)(this.FindName("cmdClipboard")));
     this.cmdSortNum         = ((System.Windows.Controls.Button)(this.FindName("cmdSortNum")));
     this.brdMainDeck        = ((System.Windows.Controls.Border)(this.FindName("brdMainDeck")));
     this.cnvMainDeck        = ((System.Windows.Controls.Canvas)(this.FindName("cnvMainDeck")));
     this.brdExtraDeck       = ((System.Windows.Controls.Border)(this.FindName("brdExtraDeck")));
     this.cnvExtraDeck       = ((System.Windows.Controls.Canvas)(this.FindName("cnvExtraDeck")));
     this.brdSideDeck        = ((System.Windows.Controls.Border)(this.FindName("brdSideDeck")));
     this.cnvSideDeck        = ((System.Windows.Controls.Canvas)(this.FindName("cnvSideDeck")));
     this.Label2             = ((System.Windows.Controls.TextBlock)(this.FindName("Label2")));
     this.txtNameAndDesc     = ((System.Windows.Controls.TextBox)(this.FindName("txtNameAndDesc")));
     this.Label4             = ((System.Windows.Controls.TextBlock)(this.FindName("Label4")));
     this.cmbSet             = ((System.Windows.Controls.ComboBox)(this.FindName("cmbSet")));
     this.chkMonsters        = ((System.Windows.Controls.CheckBox)(this.FindName("chkMonsters")));
     this.cmbAttribute       = ((System.Windows.Controls.ComboBox)(this.FindName("cmbAttribute")));
     this.cmbType            = ((System.Windows.Controls.ComboBox)(this.FindName("cmbType")));
     this.cmbEffect          = ((System.Windows.Controls.ComboBox)(this.FindName("cmbEffect")));
     this.Label3             = ((System.Windows.Controls.TextBlock)(this.FindName("Label3")));
     this.cmbATK             = ((System.Windows.Controls.ComboBox)(this.FindName("cmbATK")));
     this.cmbDEF             = ((System.Windows.Controls.ComboBox)(this.FindName("cmbDEF")));
     this.cmbLevel           = ((System.Windows.Controls.ComboBox)(this.FindName("cmbLevel")));
     this.txtATK             = ((System.Windows.Controls.TextBox)(this.FindName("txtATK")));
     this.txtDEF             = ((System.Windows.Controls.TextBox)(this.FindName("txtDEF")));
     this.txtLevel           = ((System.Windows.Controls.TextBox)(this.FindName("txtLevel")));
     this.Label5             = ((System.Windows.Controls.TextBlock)(this.FindName("Label5")));
     this.Label6             = ((System.Windows.Controls.TextBlock)(this.FindName("Label6")));
     this.chkSpells          = ((System.Windows.Controls.CheckBox)(this.FindName("chkSpells")));
     this.cmbSpells          = ((System.Windows.Controls.ComboBox)(this.FindName("cmbSpells")));
     this.chkTraps           = ((System.Windows.Controls.CheckBox)(this.FindName("chkTraps")));
     this.cmbTraps           = ((System.Windows.Controls.ComboBox)(this.FindName("cmbTraps")));
     this.radMine            = ((System.Windows.Controls.RadioButton)(this.FindName("radMine")));
     this.radPublic          = ((System.Windows.Controls.RadioButton)(this.FindName("radPublic")));
     this.cmdSearch          = ((System.Windows.Controls.Button)(this.FindName("cmdSearch")));
     this.cmdResetSearch     = ((System.Windows.Controls.Button)(this.FindName("cmdResetSearch")));
     this.lblPageNum         = ((System.Windows.Controls.TextBlock)(this.FindName("lblPageNum")));
     this.imgChosenCard      = ((System.Windows.Controls.Image)(this.FindName("imgChosenCard")));
     this.lblDeckStats       = ((System.Windows.Controls.TextBlock)(this.FindName("lblDeckStats")));
     this.imgCardAttribute   = ((System.Windows.Controls.Image)(this.FindName("imgCardAttribute")));
     this.imgSTIcon          = ((System.Windows.Controls.Image)(this.FindName("imgSTIcon")));
     this.staLevel           = ((System.Windows.Controls.StackPanel)(this.FindName("staLevel")));
     this.cmdLoadFromText    = ((System.Windows.Controls.Button)(this.FindName("cmdLoadFromText")));
 }
Exemplo n.º 49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((SerialCom.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 2:

            #line 13 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.FileOpen);

            #line default
            #line hidden
                return;

            case 3:

            #line 15 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.FileSave);

            #line default
            #line hidden
                return;

            case 4:

            #line 17 "..\..\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

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

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

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

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

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

            case 10:
                this.AvailableComCbobox = ((System.Windows.Controls.ComboBox)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.AvailableComCbobox.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvailableComCbobox_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 11:
                this.RateListCbobox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 12:
                this.ParityComCbobox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 13:
                this.DataBitsCbobox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 14:
                this.StopBitsCbobox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 71 "..\..\MainWindow.xaml"
                this.defaultSet.Click += new System.Windows.RoutedEventHandler(this.defaultSet_Click);

            #line default
            #line hidden
                return;

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

            #line 72 "..\..\MainWindow.xaml"
                this.openBtn.Click += new System.Windows.RoutedEventHandler(this.Button_Open);

            #line default
            #line hidden
                return;

            case 17:
                this.OpenImage = ((System.Windows.Controls.Image)(target));
                return;

            case 18:
                this.recModeCheck = ((System.Windows.Controls.CheckBox)(target));
                return;

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

            case 20:
                this.recPrompt = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 91 "..\..\MainWindow.xaml"
                this.stopRecBtn.Click += new System.Windows.RoutedEventHandler(this.stopRecBtn_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.recClearBtn = ((System.Windows.Controls.Button)(target));

            #line 92 "..\..\MainWindow.xaml"
                this.recClearBtn.Click += new System.Windows.RoutedEventHandler(this.recClearBtn_Click);

            #line default
            #line hidden
                return;

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

            case 24:
                this.recScrol = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            case 26:
                this.sendScrol = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 27:
                this.sendTBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.sendModeCheck = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 29:
                this.autoSendCheck = ((System.Windows.Controls.CheckBox)(target));

            #line 130 "..\..\MainWindow.xaml"
                this.autoSendCheck.Click += new System.Windows.RoutedEventHandler(this.autoSendCheck_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.Cycle = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 132 "..\..\MainWindow.xaml"
                this.Time.KeyDown += new System.Windows.Input.KeyEventHandler(this.Time_KeyDown);

            #line default
            #line hidden

            #line 132 "..\..\MainWindow.xaml"
                this.Time.LostFocus += new System.Windows.RoutedEventHandler(this.Time_LostFocus);

            #line default
            #line hidden

            #line 132 "..\..\MainWindow.xaml"
                this.Time.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Time_TextChanged);

            #line default
            #line hidden
                return;

            case 32:
                this.Unit = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.SendNewLine = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 34:
                this.sendClearBtn = ((System.Windows.Controls.Button)(target));

            #line 135 "..\..\MainWindow.xaml"
                this.sendClearBtn.Click += new System.Windows.RoutedEventHandler(this.sendClearBtn_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.countClearBtn = ((System.Windows.Controls.Button)(target));

            #line 136 "..\..\MainWindow.xaml"
                this.countClearBtn.Click += new System.Windows.RoutedEventHandler(this.countClearBtn_Click);

            #line default
            #line hidden
                return;

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

            #line 137 "..\..\MainWindow.xaml"
                this.sendBtn.Click += new System.Windows.RoutedEventHandler(this.Button_Send);

            #line default
            #line hidden
                return;

            case 37:
                this.sendCount = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 38:
                this.recCount = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.chatNotifier = ((Pointel.Interactions.Chat.WinForms.Notifier)(target));

            #line 6 "..\..\..\WinForms\Notifier.xaml"
                this.chatNotifier.Loaded += new System.Windows.RoutedEventHandler(this.chatNotifier_Loaded);

            #line default
            #line hidden

            #line 6 "..\..\..\WinForms\Notifier.xaml"
                this.chatNotifier.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.chatNotifier_PreviewKeyDown);

            #line default
            #line hidden
                return;

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

            case 3:
                this.grdTitle = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

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

            case 5:
                this.CaseDataExpander = ((System.Windows.Controls.Expander)(target));

            #line 34 "..\..\..\WinForms\Notifier.xaml"
                this.CaseDataExpander.Expanded += new System.Windows.RoutedEventHandler(this.Expander_Expanded);

            #line default
            #line hidden

            #line 34 "..\..\..\WinForms\Notifier.xaml"
                this.CaseDataExpander.Collapsed += new System.Windows.RoutedEventHandler(this.Expander_Collapsed);

            #line default
            #line hidden
                return;

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

            case 7:
                this.DGChatCaseData = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

            case 8:
                this.ChatNotifier = ((System.Windows.Controls.Border)(target));
                return;

            case 9:
                this.grd_Details = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 11:
                this.Details = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

            #line 68 "..\..\..\WinForms\Notifier.xaml"
                this.btnRight.Click += new System.Windows.RoutedEventHandler(this.Right_Click);

            #line default
            #line hidden
                return;

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

            #line 70 "..\..\..\WinForms\Notifier.xaml"
                this.btnLeft.Click += new System.Windows.RoutedEventHandler(this.Left_Click);

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

            #line 48 "..\..\..\Pages\VideoViewer.xaml"
                this.sldSeek.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.sldSeek_ValueChanged);

            #line default
            #line hidden

            #line 48 "..\..\..\Pages\VideoViewer.xaml"
                this.sldSeek.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.sldSeek_MouseLeftButtonDown);

            #line default
            #line hidden

            #line 48 "..\..\..\Pages\VideoViewer.xaml"
                this.sldSeek.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.sldSeek_MouseLeftButtonUp);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.btnPlay = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 51 "..\..\..\Pages\VideoViewer.xaml"
                this.btnPlay.Checked += new System.Windows.RoutedEventHandler(this.btnPlay_Checked);

            #line default
            #line hidden

            #line 51 "..\..\..\Pages\VideoViewer.xaml"
                this.btnPlay.Unchecked += new System.Windows.RoutedEventHandler(this.btnPlay_Unchecked);

            #line default
            #line hidden
                return;

            case 5:
                this.elpBuffering = ((System.Windows.Shapes.Ellipse)(target));
                return;

            case 6:
                this.btnVolume = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 124 "..\..\..\Pages\VideoViewer.xaml"
                this.btnVolume.Checked += new System.Windows.RoutedEventHandler(this.btnVolume_Checked);

            #line default
            #line hidden

            #line 124 "..\..\..\Pages\VideoViewer.xaml"
                this.btnVolume.Unchecked += new System.Windows.RoutedEventHandler(this.btnVolume_Unchecked);

            #line default
            #line hidden
                return;

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

            case 8:
                this.pthVol2 = ((System.Windows.Shapes.Path)(target));
                return;

            case 9:
                this.pthMute = ((System.Windows.Shapes.Path)(target));
                return;

            case 10:
                this.grdVol = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 135 "..\..\..\Pages\VideoViewer.xaml"
                this.sldVol.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slider_ValueChanged);

            #line default
            #line hidden
                return;

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

            case 13:
                this.bdrLoading = ((System.Windows.Controls.Border)(target));
                return;

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

            case 15:
                this.mediaPlayer = ((System.Windows.Controls.MediaElement)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 52
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\Forms\NewUser.xaml"
                ((GradeViewer.Forms.NewUser)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.WindowClose);

            #line default
            #line hidden
                return;

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

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

            #line 80 "..\..\..\Forms\NewUser.xaml"
                this.textBoxFirstName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.FirstNameTextChanged);

            #line default
            #line hidden
                return;

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

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

            #line 85 "..\..\..\Forms\NewUser.xaml"
                this.textBoxLastName.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.LastNameTextChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.passwordBoxPinCodeBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.passwordBoxPinCode = ((System.Windows.Controls.PasswordBox)(target));

            #line 90 "..\..\..\Forms\NewUser.xaml"
                this.passwordBoxPinCode.PasswordChanged += new System.Windows.RoutedEventHandler(this.PinCodePasswordChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.passwordBoxConfirmPinCodeBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 9:
                this.passwordBoxConfirmPinCode = ((System.Windows.Controls.PasswordBox)(target));

            #line 95 "..\..\..\Forms\NewUser.xaml"
                this.passwordBoxConfirmPinCode.PasswordChanged += new System.Windows.RoutedEventHandler(this.ConfirmPinCodePasswordChanged);

            #line default
            #line hidden
                return;

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

            #line 98 "..\..\..\Forms\NewUser.xaml"
                this.buttonCheck.Click += new System.Windows.RoutedEventHandler(this.buttonCheck_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.imageCheck = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 101 "..\..\..\Forms\NewUser.xaml"
                this.buttonCancel.Click += new System.Windows.RoutedEventHandler(this.buttonCancel_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.imageCancel = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo 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.MainLeftTabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 3:

            #line 28 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_1);

            #line default
            #line hidden
                return;

            case 4:

            #line 32 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_2);

            #line default
            #line hidden
                return;

            case 5:

            #line 43 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_3);

            #line default
            #line hidden
                return;

            case 6:

            #line 47 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_4);

            #line default
            #line hidden
                return;

            case 7:

            #line 58 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_5);

            #line default
            #line hidden
                return;

            case 8:

            #line 69 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_6);

            #line default
            #line hidden
                return;

            case 9:

            #line 80 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_7);

            #line default
            #line hidden
                return;

            case 10:

            #line 84 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_8);

            #line default
            #line hidden
                return;

            case 11:

            #line 95 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_9);

            #line default
            #line hidden
                return;

            case 12:

            #line 99 "..\..\..\TestMode\Page1.xaml"
                ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Label_MouseLeftButtonDown_10);

            #line default
            #line hidden
                return;

            case 13:
                this.spliter = ((System.Windows.Controls.Border)(target));

            #line 107 "..\..\..\TestMode\Page1.xaml"
                this.spliter.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.spliter_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

            #line 7 "..\..\..\UserControls\ThongKeTheoSpUPresentation.xaml"
                ((Presentation.UserControls.ThongKeTheoSpUPresentation)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 41 "..\..\..\UserControls\ThongKeTheoSpUPresentation.xaml"
                this.btnHomNay.Click += new System.Windows.RoutedEventHandler(this.btnHomNay_Click);

            #line default
            #line hidden
                return;

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

            #line 45 "..\..\..\UserControls\ThongKeTheoSpUPresentation.xaml"
                this.cboThang.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cboThang_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.dateTuNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 6:
                this.dateDenNgay = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            #line 54 "..\..\..\UserControls\ThongKeTheoSpUPresentation.xaml"
                this.btnXem.Click += new System.Windows.RoutedEventHandler(this.btnXem_Click);

            #line default
            #line hidden
                return;

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

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

            #line 62 "..\..\..\UserControls\ThongKeTheoSpUPresentation.xaml"
                this.dgDSSP.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.dgDSSP_LoadingRow);

            #line default
            #line hidden
                return;

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

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

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

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

            #line 129 "..\..\..\UserControls\ThongKeTheoSpUPresentation.xaml"
                this.btnReset.Click += new System.Windows.RoutedEventHandler(this.btnReset_Click);

            #line default
            #line hidden
                return;

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

            #line 136 "..\..\..\UserControls\ThongKeTheoSpUPresentation.xaml"
                this.btnIn.Click += new System.Windows.RoutedEventHandler(this.btnIn_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.bdProgress = ((System.Windows.Controls.Border)(target));
                return;

            case 16:
                this.spProgress = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 18:
                this.pbTienTrinh = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 55
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.p1Avatar = ((System.Windows.Controls.Image)(target));
     return;
     case 2:
     this.p1Score = ((System.Windows.Controls.TextBox)(target));
     return;
     case 3:
     this.p2Avatar = ((System.Windows.Controls.Image)(target));
     return;
     case 4:
     this.p2Score = ((System.Windows.Controls.TextBox)(target));
     return;
     case 5:
     this.p1AvatarABorder = ((System.Windows.Controls.Border)(target));
     return;
     case 6:
     this.p1AvatarA = ((System.Windows.Controls.Image)(target));
     
     #line 50 "..\..\MainWindow.xaml"
     this.p1AvatarA.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 7:
     this.p1AvatarBBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 8:
     this.p1AvatarB = ((System.Windows.Controls.Image)(target));
     
     #line 54 "..\..\MainWindow.xaml"
     this.p1AvatarB.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 9:
     this.p1AvatarCBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 10:
     this.p1AvatarC = ((System.Windows.Controls.Image)(target));
     
     #line 58 "..\..\MainWindow.xaml"
     this.p1AvatarC.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 11:
     this.p1AvatarDBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 12:
     this.p1AvatarD = ((System.Windows.Controls.Image)(target));
     
     #line 62 "..\..\MainWindow.xaml"
     this.p1AvatarD.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 13:
     this.p1AvatarEBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 14:
     this.p1AvatarE = ((System.Windows.Controls.Image)(target));
     
     #line 66 "..\..\MainWindow.xaml"
     this.p1AvatarE.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 15:
     this.p1AvatarFBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 16:
     this.p1AvatarF = ((System.Windows.Controls.Image)(target));
     
     #line 70 "..\..\MainWindow.xaml"
     this.p1AvatarF.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 17:
     this.p1AvatarGBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 18:
     this.p1AvatarG = ((System.Windows.Controls.Image)(target));
     
     #line 74 "..\..\MainWindow.xaml"
     this.p1AvatarG.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 19:
     this.p1AvatarHBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 20:
     this.p1AvatarH = ((System.Windows.Controls.Image)(target));
     
     #line 78 "..\..\MainWindow.xaml"
     this.p1AvatarH.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP1_MouseDown);
     
     #line default
     #line hidden
     return;
     case 21:
     this.p2AvatarABorder = ((System.Windows.Controls.Border)(target));
     return;
     case 22:
     this.p2AvatarA = ((System.Windows.Controls.Image)(target));
     
     #line 98 "..\..\MainWindow.xaml"
     this.p2AvatarA.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP2_MouseDown);
     
     #line default
     #line hidden
     return;
     case 23:
     this.p2AvatarBBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 24:
     this.p2AvatarB = ((System.Windows.Controls.Image)(target));
     
     #line 102 "..\..\MainWindow.xaml"
     this.p2AvatarB.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP2_MouseDown);
     
     #line default
     #line hidden
     return;
     case 25:
     this.p2AvatarCBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 26:
     this.p2AvatarC = ((System.Windows.Controls.Image)(target));
     
     #line 106 "..\..\MainWindow.xaml"
     this.p2AvatarC.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP2_MouseDown);
     
     #line default
     #line hidden
     return;
     case 27:
     this.p2AvatarDBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 28:
     this.p2AvatarD = ((System.Windows.Controls.Image)(target));
     
     #line 110 "..\..\MainWindow.xaml"
     this.p2AvatarD.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP2_MouseDown);
     
     #line default
     #line hidden
     return;
     case 29:
     this.p2AvatarEBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 30:
     this.p2AvatarE = ((System.Windows.Controls.Image)(target));
     
     #line 114 "..\..\MainWindow.xaml"
     this.p2AvatarE.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP2_MouseDown);
     
     #line default
     #line hidden
     return;
     case 31:
     this.p2AvatarFBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 32:
     this.p2AvatarF = ((System.Windows.Controls.Image)(target));
     
     #line 118 "..\..\MainWindow.xaml"
     this.p2AvatarF.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP2_MouseDown);
     
     #line default
     #line hidden
     return;
     case 33:
     this.p2AvatarGBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 34:
     this.p2AvatarG = ((System.Windows.Controls.Image)(target));
     
     #line 122 "..\..\MainWindow.xaml"
     this.p2AvatarG.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP2_MouseDown);
     
     #line default
     #line hidden
     return;
     case 35:
     this.p2AvatarHBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 36:
     this.p2AvatarH = ((System.Windows.Controls.Image)(target));
     
     #line 126 "..\..\MainWindow.xaml"
     this.p2AvatarH.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.AvatarP2_MouseDown);
     
     #line default
     #line hidden
     return;
     case 37:
     this.btnStartGame = ((System.Windows.Controls.Button)(target));
     
     #line 130 "..\..\MainWindow.xaml"
     this.btnStartGame.Click += new System.Windows.RoutedEventHandler(this.btnStartGame_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 56
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.NetworkMapWindow = ((SMCenter.NetworkTasks.MapForm)(target));

            #line 5 "..\..\Copy of MapForm.xaml"
                this.NetworkMapWindow.Loaded += new System.Windows.RoutedEventHandler(this.NetworkMapWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.ModulsTreeView = ((System.Windows.Controls.TreeView)(target));

            #line 17 "..\..\Copy of MapForm.xaml"
                this.ModulsTreeView.AddHandler(System.Windows.Controls.TreeViewItem.ExpandedEvent, new System.Windows.RoutedEventHandler(this.ModulsTreeView_Expanded));

            #line default
            #line hidden

            #line 17 "..\..\Copy of MapForm.xaml"
                this.ModulsTreeView.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.ModulsTreeView_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.CabelsTreeView = ((System.Windows.Controls.TreeView)(target));

            #line 18 "..\..\Copy of MapForm.xaml"
                this.CabelsTreeView.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.CabelsTreeView_SelectedItemChanged);

            #line default
            #line hidden

            #line 18 "..\..\Copy of MapForm.xaml"
                this.CabelsTreeView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.CabelsTreeView_MouseDoubleClick);

            #line default
            #line hidden
                return;

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

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

            #line 22 "..\..\Copy of MapForm.xaml"
                this.lbCancel.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lbCancel_MouseDown);

            #line default
            #line hidden
                return;

            case 6:
                this.brd_Links = ((System.Windows.Controls.Border)(target));

            #line 26 "..\..\Copy of MapForm.xaml"
                this.brd_Links.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.brd_Links_MouseDown);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

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

            #line 36 "..\..\Copy of MapForm.xaml"
                this.lbLocation.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.lbLocation_MouseDown);

            #line default
            #line hidden
                return;

            case 14:
                this.zoom = ((SMCenter.NetworkTasks.Zoom)(target));
                return;

            case 15:
                this.Map = ((System.Windows.Controls.Canvas)(target));

            #line 39 "..\..\Copy of MapForm.xaml"
                this.Map.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Map_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

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

            case 17:
                this.CablesButtons = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 18:
                this.brd_CI_Add = ((System.Windows.Controls.Border)(target));
                return;

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

            case 20:
                this.brd_CI_Edit = ((System.Windows.Controls.Border)(target));
                return;

            case 21:
                this.CI_Image_Edit = ((System.Windows.Controls.Image)(target));
                return;

            case 22:
                this.brd_CI_Delete = ((System.Windows.Controls.Border)(target));
                return;

            case 23:
                this.CI_Image_Delete = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 5 "..\..\..\View\MainWindow.xaml"
                ((Sci_FiGadGet.MainWindow)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.path2 = ((System.Windows.Shapes.Path)(target));
                return;

            case 3:
                this.path1 = ((System.Windows.Shapes.Path)(target));
                return;

            case 4:
                this.path = ((System.Windows.Shapes.Path)(target));
                return;

            case 5:
                this.ellipse = ((System.Windows.Shapes.Ellipse)(target));
                return;

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

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

            case 8:
                this.settings = ((System.Windows.Shapes.Path)(target));
                return;

            case 9:
                this.SettingsPath = ((System.Windows.Shapes.Path)(target));
                return;

            case 10:
                this.SettingEllipseBtn = ((System.Windows.Shapes.Ellipse)(target));
                return;

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

            #line 497 "..\..\..\View\MainWindow.xaml"
                this.settingsbtn.Click += new System.Windows.RoutedEventHandler(this.settingsbtn_Click);

            #line default
            #line hidden

            #line 497 "..\..\..\View\MainWindow.xaml"
                this.settingsbtn.MouseEnter += new System.Windows.Input.MouseEventHandler(this.settingsbtn_MouseEnter);

            #line default
            #line hidden

            #line 497 "..\..\..\View\MainWindow.xaml"
                this.settingsbtn.MouseLeave += new System.Windows.Input.MouseEventHandler(this.settingsbtn_MouseLeave);

            #line default
            #line hidden
                return;

            case 12:
                this.GridInfoDisplay = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

            case 16:
                this.border = ((System.Windows.Controls.Border)(target));
                return;

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

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

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

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

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

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

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

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

            #line 706 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsOne.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnInSettingsOne_MouseEnter);

            #line default
            #line hidden

            #line 706 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsOne.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnInSettingsOne_MouseLeave);

            #line default
            #line hidden

            #line 706 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsOne.Click += new System.Windows.RoutedEventHandler(this.btnInSettingsOne_Click);

            #line default
            #line hidden
                return;

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

            #line 735 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsTwo.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnInSettingsTwo_MouseLeave);

            #line default
            #line hidden

            #line 735 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsTwo.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnInSettingsTwo_MouseEnter);

            #line default
            #line hidden

            #line 735 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsTwo.Click += new System.Windows.RoutedEventHandler(this.btnInSettingsTwo_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.btnInSettingsThree = ((System.Windows.Controls.Button)(target));

            #line 761 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsThree.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnInSettingsThree_MouseEnter);

            #line default
            #line hidden

            #line 761 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsThree.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnInSettingsThree_MouseLeave);

            #line default
            #line hidden

            #line 761 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsThree.Click += new System.Windows.RoutedEventHandler(this.btnInSettingsThree_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.btnInSettingsFour = ((System.Windows.Controls.Button)(target));

            #line 787 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsFour.Click += new System.Windows.RoutedEventHandler(this.btnInSettingsFour_Click);

            #line default
            #line hidden

            #line 787 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsFour.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnInSettingsFour_MouseEnter);

            #line default
            #line hidden

            #line 787 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsFour.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnInSettingsFour_MouseLeave);

            #line default
            #line hidden
                return;

            case 28:
                this.btnInSettingsFive = ((System.Windows.Controls.Button)(target));

            #line 813 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsFive.Click += new System.Windows.RoutedEventHandler(this.btnInSettingsFive_Click);

            #line default
            #line hidden

            #line 813 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsFive.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnInSettingsFive_MouseEnter);

            #line default
            #line hidden

            #line 813 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsFive.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnInSettingsFive_MouseLeave);

            #line default
            #line hidden
                return;

            case 29:
                this.btnInSettingsSix = ((System.Windows.Controls.Button)(target));

            #line 839 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsSix.Click += new System.Windows.RoutedEventHandler(this.btnInSettingsSix_Click);

            #line default
            #line hidden

            #line 839 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsSix.MouseEnter += new System.Windows.Input.MouseEventHandler(this.btnInSettingsSix_MouseEnter);

            #line default
            #line hidden

            #line 839 "..\..\..\View\MainWindow.xaml"
                this.btnInSettingsSix.MouseLeave += new System.Windows.Input.MouseEventHandler(this.btnInSettingsSix_MouseLeave);

            #line default
            #line hidden
                return;

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

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

            case 32:
                this.closebtn = ((System.Windows.Controls.Button)(target));

            #line 916 "..\..\..\View\MainWindow.xaml"
                this.closebtn.Click += new System.Windows.RoutedEventHandler(this.closebtn_Click);

            #line default
            #line hidden

            #line 916 "..\..\..\View\MainWindow.xaml"
                this.closebtn.MouseEnter += new System.Windows.Input.MouseEventHandler(this.closebtn_MouseEnter);

            #line default
            #line hidden

            #line 916 "..\..\..\View\MainWindow.xaml"
                this.closebtn.MouseLeave += new System.Windows.Input.MouseEventHandler(this.closebtn_MouseLeave);

            #line default
            #line hidden
                return;

            case 33:
                this.minimizebtn = ((System.Windows.Controls.Button)(target));

            #line 941 "..\..\..\View\MainWindow.xaml"
                this.minimizebtn.Click += new System.Windows.RoutedEventHandler(this.minimizebtn_Click);

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

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

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

            #line 17 "..\..\..\SideWindowCollection\NewTask.xaml"
                this.closebutton.Click += new System.Windows.RoutedEventHandler(this.closebutton_Click);

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

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

            #line 40 "..\..\..\SideWindowCollection\NewTask.xaml"
                this.memberscombobox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.memberscombobox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.selectedmemberslist = ((System.Windows.Controls.ListBox)(target));
                return;

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

            #line 44 "..\..\..\SideWindowCollection\NewTask.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 89 "..\..\..\SideWindowCollection\NewTask.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

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

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

            #line default
            #line hidden
                return;

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

            case 3:
                this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            #line 47 "..\..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;

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

            #line 48 "..\..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 7:
                this.stackPanelUpdates = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 9:

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

            #line default
            #line hidden
                return;

            case 10:
                this.statusEllipse = ((System.Windows.Shapes.Ellipse)(target));
                return;

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

            case 12:

            #line 68 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

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

            #line 72 "..\..\..\MainWindow.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.groupBox2 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 15:
                this.dataGrid2 = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemplo n.º 60
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

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

            case 3:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;

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

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

            #line 47 "..\..\..\..\UserControls\UCSearchStock.xaml"
                this.btnSearch.Click += new System.Windows.RoutedEventHandler(this.btnSearch_Click);

            #line default
            #line hidden
                return;

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

            #line 52 "..\..\..\..\UserControls\UCSearchStock.xaml"
                this.imgProductSearch.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.imgProductSearch_MouseDown);

            #line default
            #line hidden
                return;

            case 7:
                this.dgProducts = ((Microsoft.Windows.Controls.DataGrid)(target));
                return;

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

            case 9:
                this.label22 = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 12:
                this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 78 "..\..\..\..\UserControls\UCSearchStock.xaml"
                this.btnAlPrevious.Click += new System.Windows.RoutedEventHandler(this.btnAlPrevious_Click);

            #line default
            #line hidden
                return;

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

            #line 79 "..\..\..\..\UserControls\UCSearchStock.xaml"
                this.btn1Previous.Click += new System.Windows.RoutedEventHandler(this.btn1Previous_Click);

            #line default
            #line hidden
                return;

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

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

            #line 82 "..\..\..\..\UserControls\UCSearchStock.xaml"
                this.btn1Forward.Click += new System.Windows.RoutedEventHandler(this.btn1Forward_Click);

            #line default
            #line hidden
                return;

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

            #line 83 "..\..\..\..\UserControls\UCSearchStock.xaml"
                this.btnAllForward.Click += new System.Windows.RoutedEventHandler(this.btnAllForward_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }