Ejemplo n.º 1
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;
        }
 void fillCompletedListBox()
 {
     CompletedActivityList = dataHandler.ReadCompletedActivities();
     completedActivitiesListBox.Items.Clear();
     foreach (Activity activity in CompletedActivityList)
     {
         DockPanel dockpanel = new DockPanel();
         TextBlock blockText = new TextBlock();
         blockText.Text = activity.Name;
         dockpanel.Children.Add(blockText);
         Image img = new Image();
         BitmapImage bi = new BitmapImage();
         bi.BeginInit();
         if (activity.MeasureMent.Result < activity.ExpectedResultMin || activity.MeasureMent.Result > activity.ExpectedResultMax)
         {
             bi.UriSource = new Uri("/GUI/QualityAssuranceGUI/Resources/fail_icon.png", UriKind.Relative);
         }
         else
         {
             bi.UriSource = new Uri("/GUI/QualityAssuranceGUI/Resources/pass_icon.png", UriKind.Relative);
         }
         bi.EndInit();
         img.Source = bi;
         dockpanel.Children.Add(img);
         dockpanel.MouseDown += OnDockPanelMouseDown;
         dockpanel.Tag = activity;
         completedActivitiesListBox.Items.Add(dockpanel);
     }
 }
		public void When_adding_a_view_to_the_layout_should_add_view_to_panel_children_collection()
		{
			Panel element = new DockPanel();
			PanelDecoratingLayout layout = new PanelDecoratingLayout(element);
			layout.AddView(new DemoView());
			Assert.AreEqual(1, element.Children.Count);
		}
Ejemplo n.º 4
0
        public WindowBackend()
        {
            Window = new System.Windows.Window ();
            rootPanel = new DockPanel ();

            Window.Content = rootPanel;
        }
Ejemplo n.º 5
0
        public CheckTheWindowStyle()
        {
            Title = "Check the Window Style";

            DockPanel dock = new DockPanel();
            Content = dock;

            Menu menu = new Menu();
            dock.Children.Add(menu);
            DockPanel.SetDock(menu, Dock.Top);

            TextBlock text = new TextBlock();
            text.Text = Title;
            text.FontSize = 32;
            text.TextAlignment = TextAlignment.Center;
            dock.Children.Add(text);

            MenuItem itemStyle = new MenuItem();
            itemStyle.Header = "_Style";
            menu.Items.Add(itemStyle);

            itemStyle.Items.Add(CreateMenuItem("_No border or caption", WindowStyle.None));
            itemStyle.Items.Add(CreateMenuItem("_Single-border window", WindowStyle.SingleBorderWindow));
            itemStyle.Items.Add(CreateMenuItem("3_D-border window", WindowStyle.ThreeDBorderWindow));
            itemStyle.Items.Add(CreateMenuItem("_Tool window", WindowStyle.ToolWindow));
        }
Ejemplo n.º 6
0
		public MainWindow ()
		{
			Title = "Mono Windows Presentation Foundation utility";

			MenuItem color_finder_menu = new MenuItem ();
			color_finder_menu.Header = "_Color finder";
			color_finder_menu.Click += delegate (object sender, RoutedEventArgs e)
			{
				new ColorFinder.ColorFinderWindow ().Show ();
			};

			MenuItem visual_structure_viewer_menu = new MenuItem ();
			visual_structure_viewer_menu.Header = "_Visual structure viewer";
			visual_structure_viewer_menu.Click += delegate (object sender, RoutedEventArgs e)
			{
				new VisualStructureViewer.VisualStructureViewerWindow ().Show ();
			};

			MenuItem utilities_menu = new MenuItem ();
			utilities_menu.Header = "_Utilities";
			utilities_menu.Items.Add (color_finder_menu);
			utilities_menu.Items.Add (visual_structure_viewer_menu);

			Menu menu = new Menu ();
			menu.Items.Add (utilities_menu);

			DockPanel contents = new DockPanel ();
			contents.LastChildFill = false;
			DockPanel.SetDock (menu, Dock.Top);
			contents.Children.Add (menu);

			Content = contents;
		}
Ejemplo n.º 7
0
        public KoncowyTest(List<string[]> slowa)
        {
            InitializeComponent();
            labels = new Label[15];
            textboxes = new TextBox[15];
            this.slowa = slowa;
            for (int i = 0; i < 15; i++)
            {
                labels[i] = new Label();
                textboxes[i] = new TextBox();
                labels[i].Content = slowa[i][0];
                labels[i].Margin = new Thickness(0,5,0,5);
                textboxes[i].Margin = new Thickness(0, 5, 0, 5);
                textboxes[i].MinWidth = 50;
                DockPanel dock = new DockPanel();
                dock.MinWidth = 200;
                var sep = new Separator();
                sep.MinWidth = 50;
                sep.Visibility = Visibility.Hidden;
                ;
                dock.Children.Add(labels[i]);
                dock.Children.Add(sep);
                dock.Children.Add(textboxes[i]);

                StackPanel.Children.Add(dock);
            }
        }
Ejemplo n.º 8
0
 private void HideAllPanelsExceptOf(DockPanel dockPanel)
 {
     UIElementCollection children = ControlPanel.Children;
     int index = children.IndexOf(dockPanel);
     for (int i = 0; i < children.Count; ++i)
         if (i != index) children[i].Visibility = Visibility.Collapsed;
 }
Ejemplo n.º 9
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();

            _ui_txtTitle = (TextBlock)GetTemplateChild("_ui_txtTitle");
            if (null != (_ui_btnOpenClose = (Button)GetTemplateChild("_ui_btnOpenClose")))
                _ui_btnOpenClose.Click += new RoutedEventHandler(_ui_btnOpenClose_Click);
            _ui_rectOpenClose = (Rectangle)GetTemplateChild("_ui_rectOpenClose");
            _ui_brdContent = (Border)GetTemplateChild("_ui_brdContent");
            _ui_cntContent = (ContentControl)GetTemplateChild("_ui_cntContent");

            if (null != (_ui_dpHeader = (DockPanel)GetTemplateChild("_ui_dpHeader")))
                _ui_dpHeader.MouseLeftButtonDown += new MouseButtonEventHandler(_ui_dpHeader_MouseLeftButtonDown);


            //            Image cImg = new Image();
            ImageBrush cIB = new ImageBrush();
            cIB.ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri("/controls.sl;component/Images/rp_open.png", UriKind.Relative));
            cIB.Stretch = Stretch.None;
            _cOpenSymbol = cIB;               // = cImg;
            cIB = new ImageBrush();
            cIB.ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri("/controls.sl;component/Images/rp_close.png", UriKind.Relative));
            cIB.Stretch = Stretch.None;
            _cCloseSymbol = cIB;              //= cImg;
            if(Title.IsNullOrEmpty())
                Title = g.Common.sName;
            ProcessTitle();
            ProcessIsOpen();
        }
        //[STAThread]
        //public static void Main()
        //{
        //    Application app = new Application();
        //    app.Run(new CutCopyPaste());
        //}
        public CutCopyPaste()
        {
            Title = "Cut ,Copy,and Paste";
            //DockPanel   생성
            DockPanel dock = new DockPanel();
            Content = dock;

            //탑 메뉴가 될 Menu 생성
            Menu menu = new Menu();
            dock.Children.Add(menu);
            DockPanel.SetDock(menu, Dock.Top);

            //나머지 영역을 채울 TextBlock을 생성
            text = new TextBlock();
            text.Text = "Sample clipboard text";
            text.FontSize = 32;
            text.HorizontalAlignment = HorizontalAlignment.Center;
            text.VerticalAlignment = VerticalAlignment.Center;
            text.TextWrapping = TextWrapping.Wrap;
            dock.Children.Add(text);

            //Edit 메뉴 생성
            MenuItem itemEdit = new MenuItem();
            itemEdit.Header = "_Edit";
            itemEdit.SubmenuOpened += EditOnOpened;
            menu.Items.Add(itemEdit);

            //Edit 메뉴 항목 생성
            itemCut = new MenuItem();
            itemCut.Header = "Cu_t";
            itemCut.Click += CutOnClick;
            Image img = new Image();
            img.Source = new BitmapImage(new Uri("http://image-0.poco.cn/pic_center/img/099/0836c2fc677eb3400a0049b746a5b308_640.jpg"));
            itemCut.Icon = img;
            itemEdit.Items.Add(itemCut);

            itemCopy = new MenuItem();
            itemCopy.Header = "_Copy";
            itemCopy.Click += CopyOnClick;
            img = new Image();
            img.Source = new BitmapImage(new Uri("http://www.onegreen.net/QQ/UploadFiles/200806/200861551027277.gif"));
            itemCopy.Icon = img;
            itemEdit.Items.Add(itemCopy);

            itemPaste = new MenuItem();
            itemPaste.Header = "_Paste";
            itemPaste.Click += PasteOnClick;
            img = new Image();
            img.Source = new BitmapImage(new Uri("http://www.onegreen.net/QQ/UploadFiles/200806/200861551027422.gif"));
            itemPaste.Icon = img;
            itemEdit.Items.Add(itemPaste);

            itemDelete = new MenuItem();
            itemDelete.Header = "_Delete";
            itemDelete.Click += DeleteOnClick;
            img = new Image();
            img.Source = new BitmapImage(new Uri("http://www.onegreen.net/QQ/UploadFiles/200806/200861551027518.jpg"));
            itemDelete.Icon = img;
            itemEdit.Items.Add(itemDelete);
        }
Ejemplo n.º 11
0
        private void Add_Click(object sender, RoutedEventArgs e)
        {
            DockPanel dp = new DockPanel();
            dp.Width = 200;
            dp.Height = 23;
            dp.HorizontalAlignment = HorizontalAlignment.Left;
            dp.VerticalAlignment = VerticalAlignment.Top;

            Button X = new Button();
            X.Height = 23;
            X.Width = 30;
            X.Content = "X";
            X.VerticalAlignment = VerticalAlignment.Top;
            X.HorizontalAlignment = HorizontalAlignment.Left;
            X.Click += X_Click;

            TextBox tb = new TextBox();
            tb.Height = 23;
            tb.Width = 170;
            tb.HorizontalAlignment = HorizontalAlignment.Left;
            tb.VerticalAlignment = VerticalAlignment.Top;
            tb.FontFamily = new FontFamily("Times New Roman");
            tb.BorderBrush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#FF707070"));

            dp.Children.Add(tb);
            dp.Children.Add(X);

            SearchGrid.Children.Add(dp);
        }
Ejemplo n.º 12
0
		internal MultiColumnTreeViewItem (TreeViewBackend treeView, TreeNode node)
		{
			Node = node;
			TreeView = treeView;
			(Node as TreeNode).TreeViewData.Add (Tuple.Create<TreeViewBackend, SWC.ItemsControl>(TreeView, this));
			Header = DockPanel = new SWC.DockPanel ();
		}
 public override FrameworkElement GetProperyField()
 {
     var pan = new DockPanel();
     t = (new TextBox());
     try
     {
         t.Text = GetVaueAsType<ImageSource>().ToString();
     }
     catch { }//Null value
     t.TextChanged += delegate(object sender, TextChangedEventArgs e) { SetString(t.Text); };
     var btn = new Button();
     btn.Content = "...";
     btn.Click += delegate
     {
         var fpd = new System.Windows.Forms.OpenFileDialog();
         fpd.Filter = "Images|*.jpg;*.jpeg;*.png;*.gif;*.tif;*.bmp";
         if (fpd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             t.Text = fpd.FileName;
         }
     };
     DockPanel.SetDock(btn, Dock.Right);
     pan.Children.Add(btn);
     pan.Children.Add(t);
     return pan;
 }
        public DockAroundTheBlock()
        {
            Title = "Dock Around the Block";

            // 1. �г� ���� �� �ʱ�ȭ
            DockPanel dock = new DockPanel();
            Content = dock;

            // 2. ���ϴ� �ڽ� ��ü(�̹���, ��Ʈ��, �г�..)
            for (int i = 0; i < 17; i++)
            {
                Button btn = new Button();
                btn.Content = "Button No. " + (i + 1);
                //-------------------------------------------------
                dock.Children.Add(btn);

                btn.SetValue(DockPanel.DockProperty, (Dock)(i % 4));

                DockPanel.SetDock(btn, (Dock)(i % 4));
                //-------------------------------------------------

            }

               // dock.LastChildFill = true;
            dock.LastChildFill = false;
        }
Ejemplo n.º 15
0
        void CreatePanels()
        {
            int nbPanels = _panel.MaxColumnByRowProperty * _panel.MaxRowProperty;

            int column = 0;
            int row = 0;
            bool rightDirection = true;
            for( int i = 0; i < nbPanels; i++ )
            {
                DockPanel dp = new DockPanel();
                dp.DataContext = _panel.Panels[i];
                dp.SetBinding( DockPanel.BackgroundProperty, new Binding( "IsActive" ) { Converter = new BooleanToColor() } );

                Grid.SetColumn( dp, column );
                Grid.SetRow( dp, row );
                SplitGrid.Children.Add( dp );

                if( rightDirection ) column++;
                else column--;

                if( column >= _panel.MaxColumnByRowProperty && rightDirection )
                {
                    row++;
                    column--;
                    rightDirection = false;
                }
                else if( column == -1 && !rightDirection )
                {
                    row++;
                    rightDirection = true;
                    column++;
                }
                _dockPanels.Add( dp );
            }
        }
        public SelectFolderPopupCenter()
        {
            sf.FolderChanged += sf_FolderChanged;
            StackPanel spWrapper = new StackPanel();

            spWrapper.Orientation = Orientation.Vertical;
            spWrapper.Children.Add(sf);

            DockPanel dp = new DockPanel();
            dp.LastChildFill = false;

            Button btnCancel = new Button();
            btnCancel.Content = "Cancel";
            btnCancel.Click += btnCancel_Click;
            btnCancel.Margin = new Thickness(5);
            DockPanel.SetDock(btnCancel, Dock.Right);

            btnOk = new Button();
            btnOk.IsEnabled = false;
            btnOk.Content = "OK";
            btnOk.Click += btnOk_Click;
            btnOk.Margin = new Thickness(5);
            DockPanel.SetDock(btnOk, Dock.Right);

            dp.Children.Add(btnCancel);
            dp.Children.Add(btnOk);
            spWrapper.Children.Add(dp);
            this.Content = spWrapper;
        }
        private DockPanel CreateColourPickerDockPanel()
        {
            DockPanel dockPanel = new DockPanel()
            {
                HorizontalAlignment = HorizontalAlignment.Left,
                VerticalAlignment = VerticalAlignment.Top,
                Margin = new Thickness(4),
            };

            dockPanel.Children.Add(new ColorCanvas() { SelectedColor = SelectedColour, Margin = new Thickness(4) });

            dockPanel.Children.Add(new Button()
            {
                IsDefault = true,
                Padding = new Thickness(16, 4, 16, 4),
                Margin = new Thickness(4),
                Content = "Select Color",
                HorizontalAlignment = HorizontalAlignment.Center
            });

            dockPanel.Children.OfType<ColorCanvas>().First().SetValue(DockPanel.DockProperty, Dock.Top);
            dockPanel.Children.OfType<Button>().First().Click += new RoutedEventHandler(ColourPickerDialogOkay_Click);

            return dockPanel;
        }
        public FormatRichText()
        {
            Title = "Format Rich Text";

            // Create DockPanel as content of window.
            DockPanel dock = new DockPanel();
            Content = dock;

            // Create ToolBarTray docked at top of client area.
            ToolBarTray tray = new ToolBarTray();
            dock.Children.Add(tray);
            DockPanel.SetDock(tray, Dock.Top);

            // Create RichTextBox.
            txtbox = new RichTextBox();
            txtbox.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;

            // Call methods in other files.
            AddFileToolBar(tray, 0, 0);
            AddEditToolBar(tray, 1, 0);
            AddCharToolBar(tray, 2, 0);
            AddParaToolBar(tray, 2, 1);
            AddStatusBar(dock);

            // Fill rest of client area with RichTextBox and give it focus.
            dock.Children.Add(txtbox);
            txtbox.Focus();
        }
Ejemplo n.º 19
0
        // Vehicles Dock Panel
        public WindowControl(Window MainWindow, 
            List<BitmapImage> Images, Image IViewer,    // Image viewer
            DockPanel DockPanelStates,                  // States Dock Panel
            DockPanel DockPanelVehicles)
        {
            InitializeComponent();

            // Initialize
            this.mainWindow = MainWindow;
            this.images = Images;
            this.iViewer = IViewer;
            this.dockPanelStates = DockPanelStates;
            this.dockPanelVehicles = DockPanelVehicles;
            this.slide = 0;
            this.image = 0;

            // Set up the intial image viewer
            this.iViewer.Source = this.images[this.image];  // 0.jpg
            this.iViewer.Stretch = Stretch.Fill;

            // Configure the initial main window content
            this.mainWindow.Content = this.iViewer;

            // Update info
            this.LabelInfo.Content = "Viewing slide: " + this.slide.ToString();
            this.LabelNext.Content = "Next slide: " + (this.slide + 1).ToString();
        }
Ejemplo n.º 20
0
 void BuildPropertyGrid()
 {
     dockPanel = new DockPanel {LastChildFill = true, Width = 200, Height = 400,};
     wpfPropertyGrid = new WpfPropertyGrid{SelectedObject = AdornedElement, HelpVisible = true};
     dockPanel.Children.Add(wpfPropertyGrid);
     visualChildren.Add(dockPanel);
 }
Ejemplo n.º 21
0
        public CommandTheMenu()
        {
            Title = "Command The Menu";

            DockPanel dock = new DockPanel();
            Content = dock;

            Menu menu = new Menu();
            dock.Children.Add(menu);
            DockPanel.SetDock(menu, Dock.Top);

            text = new TextBlock();
            text.Text = "Sample clipboard text";
            text.HorizontalAlignment = HorizontalAlignment.Center;
            text.VerticalAlignment = VerticalAlignment.Center;
            text.FontSize = 32;
            text.TextWrapping = TextWrapping.Wrap;
            dock.Children.Add(text);

            MenuItem itemEdit = new MenuItem();
            itemEdit.Header = "_Edit";
            menu.Items.Add(itemEdit);

            MenuItem itemCut = new MenuItem();
            itemCut.Header = "Cu_t";
            itemCut.Command = ApplicationCommands.Cut;
            itemEdit.Items.Add(itemCut);

            MenuItem itemCopy = new MenuItem();
            itemCopy.Header = "_Copy";
            itemCopy.Command = ApplicationCommands.Copy;
            itemEdit.Items.Add(itemCopy);

            MenuItem itemPaste = new MenuItem();
            itemPaste.Header = "_Paste";
            itemPaste.Command = ApplicationCommands.Paste;
            itemEdit.Items.Add(itemPaste);

            MenuItem itemDelete = new MenuItem();
            itemDelete.Header = "_Delete";
            itemDelete.Command = ApplicationCommands.Delete;
            itemEdit.Items.Add(itemDelete);

            // new command
            InputGestureCollection collGestures = new InputGestureCollection();
            collGestures.Add(new KeyGesture(Key.R, ModifierKeys.Control));
            RoutedUICommand commRestore = new RoutedUICommand("_Restore", "Restore", GetType(), collGestures);

            MenuItem itemRestore = new MenuItem();
            itemRestore.Header = "_Restore";
            itemRestore.Command = commRestore;
            itemEdit.Items.Add(itemRestore);

            CommandBindings.Add(new CommandBinding(ApplicationCommands.Cut, CutOnExecute, CutCanExecute));
            CommandBindings.Add(new CommandBinding(ApplicationCommands.Copy, CopyOnExecute, CutCanExecute));
            CommandBindings.Add(new CommandBinding(ApplicationCommands.Paste, PasteOnExecute, PasteCanExecute));
            CommandBindings.Add(new CommandBinding(ApplicationCommands.Delete, DeleteOnExecute, CutCanExecute));
            CommandBindings.Add(new CommandBinding(commRestore, RestoreOnExecute));
        }
		public void When_resolving_a_panel_layout_the_panel_instance_should_be_passed_to_the_layout()
		{
			DefaultLayoutDecoratorResolver resolvers = new DefaultLayoutDecoratorResolver(container.Kernel);

			DockPanel element = new DockPanel { Name = "MyElement" };
			var result = (PanelDecoratingLayout)resolvers.GetLayoutDecoratorFor(element);
			Assert.AreSame(element, result.Element);
		}
		public void When_resolve_a_panel_should_return_panel_decorator_from_the_container()
		{
			DefaultLayoutDecoratorResolver resolvers = new DefaultLayoutDecoratorResolver(container.Kernel);

			DockPanel element = new DockPanel { Name = "MyElement" };
			var result = resolvers.GetLayoutDecoratorFor(element);
			Assert.IsInstanceOfType(typeof(PanelDecoratingLayout), result);
		}
		public void When_cannot_find_configuration_for_element_should_return_null()
		{
			DefaultLayoutDecoratorResolver resolvers = new DefaultLayoutDecoratorResolver(new DefaultKernel());

			DockPanel element = new DockPanel { Name = "MyElement" };
			var result = (PanelDecoratingLayout)resolvers.GetLayoutDecoratorFor(element);
			Assert.IsNull(result);
		}
Ejemplo n.º 25
0
 public FilterParameter (DockPanel panel, int width, int height, History history, SysConfiguration config)
 {
     dockPanel = panel;
     Width = width;
     Height = height;
     History = history;
     SysConfig = config;
 }
 public LocalizationWindow()
 {
     InitializeComponent();
     control = new LocalizationControl();
     DockPanel.SetDock(control, Dock.Top);
     dock = (DockPanel)FindName("LocalizationWindow_DockPanel");
     dock.Children.Add(control);
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="VSInteractiveWindowControl"/> class.
        /// </summary>
        public VSInteractiveWindowControl()
        {
            this.InitializeComponent();

            // Set window look
            Background = ExecutingBackground;

            // Add dock panel and status bar
            DockPanel dockPanel = new DockPanel();
            StatusBar statusBar = new StatusBar();
            statusBarStatusText = new StatusBarItem();
            statusBarStatusText.Content = InitializingStatusText;
            statusBar.Items.Add(statusBarStatusText);
            DockPanel.SetDock(statusBar, Dock.Bottom);
            dockPanel.Children.Add(statusBar);
            Content = dockPanel;

            // Add results panel
            ScrollViewer scrollViewer = new ScrollViewer();
            scrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
            scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
            scrollViewer.Margin = new Thickness(5);
            dockPanel.Children.Add(scrollViewer);
            resultsPanel = new StackPanel();
            resultsPanel.Orientation = Orientation.Vertical;
            resultsPanel.CanVerticallyScroll = true;
            resultsPanel.CanHorizontallyScroll = true;
            scrollViewer.Content = resultsPanel;

            // Add prompt for text editor
            var panel = new DockPanel();
            resultsPanel.Children.Add(panel);

            promptBlock = new TextBlock();
            promptBlock.FontFamily = new FontFamily("Consolas");
            promptBlock.FontSize = 14;
            promptBlock.Text = ExecutingPrompt;
            DockPanel.SetDock(promptBlock, Dock.Left);
            panel.Children.Add(promptBlock);

            // Add text editor
            textEditor = new InteractiveCodeEditor();
            textEditor.Background = Brushes.Transparent;
            textEditor.CommandExecuted += TextEditor_CommandExecuted;
            textEditor.CommandFailed += TextEditor_CommandFailed;
            textEditor.Executing += TextEditor_Executing;
            textEditor.CloseRequested += TextEditor_CloseRequested;
            textEditor.HorizontalScrollBarVisibility = ScrollBarVisibility.Hidden;
            textEditor.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden;
            textEditor.TextArea.PreviewKeyDown += TextEditor_PreviewKeyDown;
            panel.Children.Add(textEditor);

            MakeEnabled(VSContext.CurrentDebugMode == EnvDTE.dbgDebugMode.dbgBreakMode);
            VSContext.DebuggerEnteredBreakMode += () => MakeEnabled(true);
            VSContext.DebuggerEnteredDesignMode += () => MakeEnabled(false);
            VSContext.DebuggerEnteredRunMode += () => MakeEnabled(false);
        }
Ejemplo n.º 28
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.pnlMain = ((System.Windows.Controls.DockPanel)(target));
     return;
     }
     this._contentLoaded = true;
 }
		public void When_asked_about_accepting_a_view_with_an_unknown_name_should_return_false()
		{
			DockPanel panel = new DockPanel { Name = "Uknnown" };
			PanelDecoratingLayout layout = new PanelDecoratingLayout(panel);
			DefaultLayoutSelector selector = new DefaultLayoutSelector(new Hashtable());

			bool result = selector.CanAccept(layout, new DemoView());
			Assert.IsFalse(result);
		}
		public override void New(String title)
		{
			DockPanel dp = new DockPanel();
			TextBlock tbTitle = new TextBlock();
			tbTitle.Text = title;
			DockPanel.SetDock(tbTitle, Dock.Left);
			dp.Children.Add(tbTitle);
			expTurn.Header = dp;
		}
Ejemplo n.º 31
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\..\Modules\CAD\MobileTerminalPage.xaml"
                ((Invert911.CAD.MobileTerminalPage)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden

            #line 8 "..\..\..\..\Modules\CAD\MobileTerminalPage.xaml"
                ((Invert911.CAD.MobileTerminalPage)(target)).KeyUp += new System.Windows.Input.KeyEventHandler(this.Window_KeyUp);

            #line default
            #line hidden

            #line 8 "..\..\..\..\Modules\CAD\MobileTerminalPage.xaml"
                ((Invert911.CAD.MobileTerminalPage)(target)).Unloaded += new System.Windows.RoutedEventHandler(this.Page_Unloaded);

            #line default
            #line hidden
                return;

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

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

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

            case 5:

            #line 30 "..\..\..\..\Modules\CAD\MobileTerminalPage.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

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

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

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

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

            case 10:
                this._copy = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 11:
                this._paste = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 12:
                this._delete = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 13:
                this._helpMenu = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 14:
                this.reportIssue = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 15:
                this.ModulesList = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 16:
                this.KeyboardArea = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 17:
                this.MainKeyboard = ((Invert911.InvertCommon.StandardGui.psKeyboard)(target));
                return;

            case 18:
                this.NavigatorTreeView = ((System.Windows.Controls.TreeView)(target));
                return;

            case 19:
                this.psClipboard = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 20:
                this.ClipboardTreeView = ((System.Windows.Controls.TreeView)(target));
                return;

            case 21:
                this.MainBackground = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 32
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GameSelectionWindow = ((Universal_Game_Configurator.GameSelector)(target));
                return;

            case 2:
                this.titleBorder = ((System.Windows.Controls.DockPanel)(target));

            #line 56 "..\..\GameSelector.xaml"
                this.titleBorder.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.titleBorder_MouseDown);

            #line default
            #line hidden
                return;

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

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

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

            case 6:
                this.GamesListView = ((System.Windows.Controls.ListView)(target));

            #line 72 "..\..\GameSelector.xaml"
                this.GamesListView.SizeChanged += new System.Windows.SizeChangedEventHandler(this.GamesListView_SizeChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.dataGridView = ((System.Windows.Controls.GridView)(target));
                return;

            case 8:
                this.GridCol1 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 9:
                this.GridCol2 = ((System.Windows.Controls.GridViewColumn)(target));
                return;

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

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

            case 12:
                this.txtBoxSearch = ((Xceed.Wpf.Toolkit.WatermarkTextBox)(target));

            #line 241 "..\..\GameSelector.xaml"
                this.txtBoxSearch.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtBoxSearch_TextChanged);

            #line default
            #line hidden
                return;

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

            case 14:
                this.imgDownloadDb = ((System.Windows.Controls.Image)(target));
                return;

            case 15:
                this.imgEditDb = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 33
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\LabelControl.xaml"
                ((Bartector_Label_Editor.LabelControl)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:

            #line 19 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonNewCode_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 21 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonNewText_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 24 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonDelete_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 27 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonSave_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 28 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonLoad_Click);

            #line default
            #line hidden
                return;

            case 8:

            #line 31 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonClear_Click);

            #line default
            #line hidden
                return;

            case 9:

            #line 34 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonPrint_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 36 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonPrintQueueClear_Click);

            #line default
            #line hidden
                return;

            case 11:

            #line 37 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonPrinterSelect_Click);

            #line default
            #line hidden
                return;

            case 12:

            #line 38 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonPrinterStaus_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 41 "..\..\LabelControl.xaml"
                ((System.Windows.Controls.ComboBox)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 15:
                this.MyCanvas = ((System.Windows.Controls.Canvas)(target));
                return;

            case 16:
                this.MypropertyGrid = ((Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

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

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

            case 5:
                this.textBoxCompanyName = ((PosControls.CustomTextBox)(target));
                return;

            case 6:
                this.textBoxSerialNumber = ((PosControls.CustomTextBox)(target));
                return;

            case 7:
                this.textBoxDBServer = ((PosControls.CustomTextBox)(target));
                return;

            case 8:
                this.textBoxDBLogin = ((PosControls.CustomTextBox)(target));
                return;

            case 9:
                this.textBoxDBPassword = ((PosControls.CustomTextBox)(target));
                return;

            case 10:
                this.textBoxDBInitialCatalog = ((PosControls.CustomTextBox)(target));
                return;

            case 11:
                this.buttonUpdate = ((PosControls.TextBlockButton)(target));

            #line 42 "..\..\..\SystemSettingsEditorControl.xaml"
                this.buttonUpdate.Click += new System.Windows.RoutedEventHandler(this.buttonUpdate_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.buttonExit = ((PosControls.TextBlockButton)(target));

            #line 43 "..\..\..\SystemSettingsEditorControl.xaml"
                this.buttonExit.Click += new System.Windows.RoutedEventHandler(this.buttonExit_Click);

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

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

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

            #line 17 "..\..\MainWindow.xaml"
                this.quitterMenuItem.Click += new System.Windows.RoutedEventHandler(this.quitterMenuItem_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;

            case 10:
                this.communeMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.communeMenuItem.Click += new System.Windows.RoutedEventHandler(this.communeMenuItem_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.departementMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 12:
                this.partiMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.partiMenuItem.Click += new System.Windows.RoutedEventHandler(this.partiMenuItem_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.insertionDonneesCSVMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 14:
                this.TriMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 15:
                this.candidatTriMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.candidatTriMenuItem.Click += new System.Windows.RoutedEventHandler(this.candidatTriMenuItem_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.communeTriMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 17:
                this.departementTriMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 18:
                this.partiTriMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 19:
                this.femmesCandidatsMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 20:
                this.hommesCandidatsMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 21:
                this.prenomFPlusFrequentMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 22:
                this.prenomMPlusFrequentMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 23:
                this.comPlusForTauxAbsMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 24:
                this.comPlusForTauxVotMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 25:
                this.comPlusForTauxBlancInsMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 26:
                this.comPlusForTauxBlancVotMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 27:
                this.creationTablesSQLMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 28:
                this.creationTablesMySQLMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 65 "..\..\MainWindow.xaml"
                this.creationTablesMySQLMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.creationTablesOracleMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 66 "..\..\MainWindow.xaml"
                this.creationTablesOracleMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.creationTablesSQLiteMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 67 "..\..\MainWindow.xaml"
                this.creationTablesSQLiteMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.creationTablesSQLServerMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.creationTablesSQLServerMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.jointureMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 33:
                this.candidatListeJointureMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 73 "..\..\MainWindow.xaml"
                this.candidatListeJointureMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.candListPartiJointureMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 74 "..\..\MainWindow.xaml"
                this.candListPartiJointureMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 35:
                this.comCandListPartiJointureMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 75 "..\..\MainWindow.xaml"
                this.comCandListPartiJointureMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 36:
                this.elecAnneeComCandJointureMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 76 "..\..\MainWindow.xaml"
                this.elecAnneeComCandJointureMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 37:
                this.annCalSieDeptComListJointureMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.annCalSieDeptComListJointureMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.annComStatElecJointureMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.annComStatElecJointureMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.SupprEnregistrTableMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 40:
                this.supprEnregTableSQLServerMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 41:
                this.anneeElectionSupprMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 84 "..\..\MainWindow.xaml"
                this.anneeElectionSupprMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 42:
                this.calculSiegesSupprMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 85 "..\..\MainWindow.xaml"
                this.calculSiegesSupprMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 43:
                this.candidSupprMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 86 "..\..\MainWindow.xaml"
                this.candidSupprMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 44:
                this.communeSupprMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 87 "..\..\MainWindow.xaml"
                this.communeSupprMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.departementSupprMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 46:
                this.electionSupprMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 89 "..\..\MainWindow.xaml"
                this.electionSupprMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.listeSupprMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 90 "..\..\MainWindow.xaml"
                this.listeSupprMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 48:
                this.partiSupprMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 49:
                this.statsElectionSupprMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 50:
                this.SupprEnregistrMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 51:
                this.supprEnregSQLServerMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 97 "..\..\MainWindow.xaml"
                this.supprEnregSQLServerMenuItem.Click += new System.Windows.RoutedEventHandler(this.chargerScriptSQLMenuItem_Click);

            #line default
            #line hidden
                return;

            case 52:
                this.fonctionnementElectionMenuItem = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 53:
                this.wikipediaElectionMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 54:
                this.servicePublicElectionMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 55:
                this.dataGouvMenuItem = ((System.Windows.Controls.MenuItem)(target));

            #line 106 "..\..\MainWindow.xaml"
                this.dataGouvMenuItem.Click += new System.Windows.RoutedEventHandler(this.dataGouvMenuItem_Click);

            #line default
            #line hidden
                return;

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

            case 57:
                this.affichageStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 58:
                this.grilleDeDonnees = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

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

            #line 19 "..\..\..\OrderEntrySetupControl.xaml"
                this.buttonGeneralSettings.Click += new System.Windows.RoutedEventHandler(this.buttonGeneralSettings_Click);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\..\OrderEntrySetupControl.xaml"
                this.buttonItems.Click += new System.Windows.RoutedEventHandler(this.buttonItems_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\..\OrderEntrySetupControl.xaml"
                this.buttonCoupons.Click += new System.Windows.RoutedEventHandler(this.buttonCoupons_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.buttonSeating = ((PosControls.TextBlockButton)(target));

            #line 22 "..\..\..\OrderEntrySetupControl.xaml"
                this.buttonSeating.Click += new System.Windows.RoutedEventHandler(this.buttonSeating_Click);

            #line default
            #line hidden
                return;

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

            #line 23 "..\..\..\OrderEntrySetupControl.xaml"
                this.buttonEmployees.Click += new System.Windows.RoutedEventHandler(this.buttonEmployees_Click);

            #line default
            #line hidden
                return;

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

            #line 24 "..\..\..\OrderEntrySetupControl.xaml"
                this.buttonTaxes.Click += new System.Windows.RoutedEventHandler(this.buttonTaxes_Click);

            #line default
            #line hidden
                return;

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

            #line 25 "..\..\..\OrderEntrySetupControl.xaml"
                this.buttonHardware.Click += new System.Windows.RoutedEventHandler(this.buttonHardware_Click);

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

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

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

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

            #line 22 "..\..\DateEditControl.xaml"
                this.textBoxMonth.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBoxMonth_TextChanged);

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\DateEditControl.xaml"
                this.textBoxDay.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBoxDay_TextChanged);

            #line default
            #line hidden

            #line 28 "..\..\DateEditControl.xaml"
                this.textBoxDay.KeyDown += new System.Windows.Input.KeyEventHandler(this.textBoxDay_KeyDown);

            #line default
            #line hidden
                return;

            case 6:
                this.comboBoxYear = ((PosControls.PushComboBox)(target));
                return;

            case 7:
                this.dockPanel = ((System.Windows.Controls.DockPanel)(target));

            #line 32 "..\..\DateEditControl.xaml"
                this.dockPanel.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.stackPanel_MouseDown);

            #line default
            #line hidden
                return;

            case 8:
                this.labelDate = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 38
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\..\Controls\PersonInfo.xaml"
                ((Microsoft.FamilyShow.PersonInfo)(target)).IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.UserControl_IsVisibleChanged);

            #line default
            #line hidden
                return;

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

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

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

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

            #line 40 "..\..\..\Controls\PersonInfo.xaml"
                this.CloseButton.Click += new System.Windows.RoutedEventHandler(this.CloseButton_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 9:
                this.PhotoButtonsDockPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

            #line 58 "..\..\..\Controls\PersonInfo.xaml"
                this.SetPrimaryButton.Click += new System.Windows.RoutedEventHandler(this.SetPrimaryButton_Click);

            #line default
            #line hidden
                return;

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

            #line 59 "..\..\..\Controls\PersonInfo.xaml"
                this.RemovePhotoButton.Click += new System.Windows.RoutedEventHandler(this.RemovePhotoButton_Click);

            #line default
            #line hidden
                return;

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

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

            case 14:
                this.TagsStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 15:
                this.TagsListBox = ((System.Windows.Controls.ListBox)(target));
                return;

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

            case 17:
                this.PhotosListBox = ((System.Windows.Controls.ListBox)(target));

            #line 75 "..\..\..\Controls\PersonInfo.xaml"
                this.PhotosListBox.Drop += new System.Windows.DragEventHandler(this.PhotosListBox_Drop);

            #line default
            #line hidden

            #line 75 "..\..\..\Controls\PersonInfo.xaml"
                this.PhotosListBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.PhotosListBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            #line 89 "..\..\..\Controls\PersonInfo.xaml"
                this.EditStoryButton.Click += new System.Windows.RoutedEventHandler(this.EditStoryButton_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.StoryViewer = ((System.Windows.Controls.FlowDocumentReader)(target));
                return;

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

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

            #line 108 "..\..\..\Controls\PersonInfo.xaml"
                this.CancelStoryButton.Click += new System.Windows.RoutedEventHandler(this.CancelStoryButton_Click);

            #line default
            #line hidden
                return;

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

            #line 109 "..\..\..\Controls\PersonInfo.xaml"
                this.SaveStoryButton.Click += new System.Windows.RoutedEventHandler(this.SaveStoryButton_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.EditToolBar = ((System.Windows.Controls.ToolBar)(target));
                return;

            case 25:
                this.BoldButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 26:
                this.ItalicButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 27:
                this.UnderlineButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

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

            #line 126 "..\..\..\Controls\PersonInfo.xaml"
                this.FontsComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.FontsComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 29:
                this.BulletsButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 30:
                this.NumberingButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 31:
                this.AlignLeftButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 32:
                this.AlignCenterButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 33:
                this.AlignRightButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 34:
                this.AlignFullButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 35:
                this.StoryRichTextBox = ((System.Windows.Controls.RichTextBox)(target));

            #line 158 "..\..\..\Controls\PersonInfo.xaml"
                this.StoryRichTextBox.SelectionChanged += new System.Windows.RoutedEventHandler(this.StoryRichTextBox_SelectionChanged);

            #line default
            #line hidden

            #line 158 "..\..\..\Controls\PersonInfo.xaml"
                this.StoryRichTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.StoryRichTextBox_TextChanged);

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

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

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                ((LabyrinthGame.MainWindow)(target)).Activated += new System.EventHandler(this.Window_Activated);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                ((LabyrinthGame.MainWindow)(target)).Deactivated += new System.EventHandler(this.Window_Deactivated);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.playerNameDockPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

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

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

            #line 15 "..\..\MainWindow.xaml"
                this.newGameButton.Click += new System.Windows.RoutedEventHandler(this.newGameButton_Click);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\MainWindow.xaml"
                this.resultsButton.Click += new System.Windows.RoutedEventHandler(this.resultsButton_Click);

            #line default
            #line hidden
                return;

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

            case 10:
                this.resultsMenuDockPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            case 14:
                this.resultsListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 15:
                this.gameStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            case 20:
                this.statDockPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

            case 22:
                this.timeTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 24:
                this.gameCanvas = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 7 "..\..\DrawBoard.xaml"
                ((MathGraphics.DrawBoard)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            #line 663 "..\..\DrawBoard.xaml"
                this.graphicImportButton.Click += new System.Windows.RoutedEventHandler(this.GraphicImportButton_Clicked);

            #line default
            #line hidden
                return;

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

            #line 666 "..\..\DrawBoard.xaml"
                this.graphicExportButton.Click += new System.Windows.RoutedEventHandler(this.GraphicExportButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.controlToolBar = ((System.Windows.Controls.ToolBar)(target));
                return;

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

            #line 672 "..\..\DrawBoard.xaml"
                this.ItemSelect.Checked += new System.Windows.RoutedEventHandler(this.ElementSelectTool_Checked);

            #line default
            #line hidden
                return;

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

            #line 675 "..\..\DrawBoard.xaml"
                this.ZoomOut.Click += new System.Windows.RoutedEventHandler(this.SendCommandToChild_Clicked);

            #line default
            #line hidden
                return;

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

            #line 678 "..\..\DrawBoard.xaml"
                this.ZoomIn.Click += new System.Windows.RoutedEventHandler(this.SendCommandToChild_Clicked);

            #line default
            #line hidden
                return;

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

            #line 681 "..\..\DrawBoard.xaml"
                this.ZoomRestore.Click += new System.Windows.RoutedEventHandler(this.SendCommandToChild_Clicked);

            #line default
            #line hidden
                return;

            case 9:
                this.CanvasMove = ((System.Windows.Controls.RadioButton)(target));

            #line 684 "..\..\DrawBoard.xaml"
                this.CanvasMove.Checked += new System.Windows.RoutedEventHandler(this.CanvasMoveTool_Checked);

            #line default
            #line hidden
                return;

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

            #line 691 "..\..\DrawBoard.xaml"
                this.Copy.Click += new System.Windows.RoutedEventHandler(this.SendCommandToChild_Clicked);

            #line default
            #line hidden
                return;

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

            #line 694 "..\..\DrawBoard.xaml"
                this.Paste.Click += new System.Windows.RoutedEventHandler(this.SendCommandToChild_Clicked);

            #line default
            #line hidden
                return;

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

            #line 697 "..\..\DrawBoard.xaml"
                this.Delete.Click += new System.Windows.RoutedEventHandler(this.SendCommandToChild_Clicked);

            #line default
            #line hidden
                return;

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

            #line 703 "..\..\DrawBoard.xaml"
                this.Rotate.Click += new System.Windows.RoutedEventHandler(this.SendCommandToChild_Clicked);

            #line default
            #line hidden
                return;

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

            #line 708 "..\..\DrawBoard.xaml"
                this.ResizeCanvas.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ResizeCanvas_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 710 "..\..\DrawBoard.xaml"
                this.VerticalCenterAlignment.Click += new System.Windows.RoutedEventHandler(this.SendCommandToChild_Clicked);

            #line default
            #line hidden
                return;

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

            #line 713 "..\..\DrawBoard.xaml"
                this.HorizontialCenterAlignment.Click += new System.Windows.RoutedEventHandler(this.SendCommandToChild_Clicked);

            #line default
            #line hidden
                return;

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

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

            #line 724 "..\..\DrawBoard.xaml"
                this.toolBoxShowButton.Click += new System.Windows.RoutedEventHandler(this.ShowToolBoxButton_Clicked);

            #line default
            #line hidden
                return;

            case 19:
                this.workAreaPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 20:
                this.toolBoxPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 21:

            #line 741 "..\..\DrawBoard.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseToolBoxButton_Clicked);

            #line default
            #line hidden
                return;

            case 22:
                this.toolBox = ((System.Windows.Controls.ListBox)(target));

            #line 743 "..\..\DrawBoard.xaml"
                this.toolBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ToolBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 23:
                this.Text = ((System.Windows.Controls.ListBoxItem)(target));
                return;

            case 24:
                this.StraightLine = ((System.Windows.Controls.ListBoxItem)(target));
                return;

            case 25:
                this.LShapeLine = ((System.Windows.Controls.ListBoxItem)(target));
                return;

            case 26:
                this.ElectricConfirm = ((System.Windows.Controls.ListBoxItem)(target));
                return;

            case 27:
                this.ObliqueLine = ((System.Windows.Controls.ListBoxItem)(target));
                return;

            case 28:
                this.tabControl = ((System.Windows.Controls.TabControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

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

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

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

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

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

            #line 74 "..\..\..\MainWindow.xaml"
                this.btnColor.Click += new System.Windows.RoutedEventHandler(this.ToggleCamera_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnDepth = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 77 "..\..\..\MainWindow.xaml"
                this.btnDepth.Click += new System.Windows.RoutedEventHandler(this.ToggleCamera_Click);

            #line default
            #line hidden
                return;

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

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

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

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

            #line 101 "..\..\..\MainWindow.xaml"
                this.inputImageExposure.KeyDown += new System.Windows.Input.KeyEventHandler(this.inputImageParameterKeyDown);

            #line default
            #line hidden
                return;

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

            #line 106 "..\..\..\MainWindow.xaml"
                this.inputImageGain.KeyDown += new System.Windows.Input.KeyEventHandler(this.inputImageParameterKeyDown);

            #line default
            #line hidden
                return;

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

            #line 111 "..\..\..\MainWindow.xaml"
                this.colorImageExposure.KeyDown += new System.Windows.Input.KeyEventHandler(this.colorImageParameterKeyDown);

            #line default
            #line hidden
                return;

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

            #line 116 "..\..\..\MainWindow.xaml"
                this.colorImageGain.KeyDown += new System.Windows.Input.KeyEventHandler(this.colorImageParameterKeyDown);

            #line default
            #line hidden
                return;

            case 15:
                this.spNewSession = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 16:
                this.spUploadPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 18:

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

            #line default
            #line hidden
                return;

            case 19:
                this.cbxRealTime = ((System.Windows.Controls.CheckBox)(target));

            #line 153 "..\..\..\MainWindow.xaml"
                this.cbxRealTime.Checked += new System.Windows.RoutedEventHandler(this.cbxRealTime_Checked);

            #line default
            #line hidden

            #line 153 "..\..\..\MainWindow.xaml"
                this.cbxRealTime.Unchecked += new System.Windows.RoutedEventHandler(this.cbxRealTime_Unchecked);

            #line default
            #line hidden
                return;

            case 20:
                this.spInputScan = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 21:
                this.spNameGender = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 23:
                this.rbMale = ((System.Windows.Controls.RadioButton)(target));

            #line 182 "..\..\..\MainWindow.xaml"
                this.rbMale.Checked += new System.Windows.RoutedEventHandler(this.Gender_Checked);

            #line default
            #line hidden
                return;

            case 24:
                this.rbFemale = ((System.Windows.Controls.RadioButton)(target));

            #line 202 "..\..\..\MainWindow.xaml"
                this.rbFemale.Checked += new System.Windows.RoutedEventHandler(this.Gender_Checked);

            #line default
            #line hidden
                return;

            case 25:
                this.spHeightWeight = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

            case 28:
                this.spSessionInfo = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 29:
                this.spSessionHeightWeightInfo = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 31:
                this.tbCapturedFrames = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 260 "..\..\..\MainWindow.xaml"
                this.btnStartNew.Click += new System.Windows.RoutedEventHandler(this.SaveNewInfoAndStartSession);

            #line default
            #line hidden
                return;

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

            #line 265 "..\..\..\MainWindow.xaml"
                this.btnEndSessionAndUpload.Click += new System.Windows.RoutedEventHandler(this.EndCurrentSessionAndUpload);

            #line default
            #line hidden
                return;

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

            #line 288 "..\..\..\MainWindow.xaml"
                this.btnEndAndStartNewSession.Click += new System.Windows.RoutedEventHandler(this.EndAndStartNewSession);

            #line default
            #line hidden
                return;

            case 35:
                this.camera = ((System.Windows.Controls.Image)(target));
                return;

            case 36:
                this.CaptureControlPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

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

            #line default
            #line hidden
                return;

            case 38:
                this.spCaptureStats = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

            #line 371 "..\..\..\MainWindow.xaml"
                this.BtnRedoSweep.Click += new System.Windows.RoutedEventHandler(this.DeleteAndRedoLastSweep);

            #line default
            #line hidden
                return;

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

            #line 377 "..\..\..\MainWindow.xaml"
                this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);

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

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

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

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

            case 5:
                this.buttonTab1 = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 20 "..\..\TabControl.xaml"
                this.buttonTab1.Click += new System.Windows.RoutedEventHandler(this.buttonTab_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\TabControl.xaml"
                this.buttonTab2.Click += new System.Windows.RoutedEventHandler(this.buttonTab_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.buttonTab3 = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 22 "..\..\TabControl.xaml"
                this.buttonTab3.Click += new System.Windows.RoutedEventHandler(this.buttonTab_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.buttonTab4 = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 23 "..\..\TabControl.xaml"
                this.buttonTab4.Click += new System.Windows.RoutedEventHandler(this.buttonTab_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.buttonTab5 = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 24 "..\..\TabControl.xaml"
                this.buttonTab5.Click += new System.Windows.RoutedEventHandler(this.buttonTab_Click);

            #line default
            #line hidden
                return;

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

            case 11:
                this.dockPanel1 = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 12:
                this.dockPanel2 = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 13:
                this.dockPanel3 = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 14:
                this.dockPanel4 = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 15:
                this.dockPanel5 = ((System.Windows.Controls.DockPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.container = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:

            #line 29 "..\..\..\View\NotesWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

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

            case 4:

            #line 78 "..\..\..\View\NotesWindow.xaml"
                ((System.Windows.Controls.Primitives.ToggleButton)(target)).Click += new System.Windows.RoutedEventHandler(this.SpeechButton_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.boldButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 80 "..\..\..\View\NotesWindow.xaml"
                this.boldButton.Click += new System.Windows.RoutedEventHandler(this.boldButton_Click);

            #line default
            #line hidden
                return;

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

            #line 85 "..\..\..\View\NotesWindow.xaml"
                this.italicButton.Click += new System.Windows.RoutedEventHandler(this.italicButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.underlineButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));

            #line 90 "..\..\..\View\NotesWindow.xaml"
                this.underlineButton.Click += new System.Windows.RoutedEventHandler(this.underlineButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.fontFamilyComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 96 "..\..\..\View\NotesWindow.xaml"
                this.fontFamilyComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.fontFamilyComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 100 "..\..\..\View\NotesWindow.xaml"
                this.fontSizeComboBox.AddHandler(System.Windows.Controls.Primitives.TextBoxBase.TextChangedEvent, new System.Windows.Controls.TextChangedEventHandler(this.fontSizeComboBox_TextChanged));

            #line default
            #line hidden
                return;

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

            #line 103 "..\..\..\View\NotesWindow.xaml"
                this.saveFileButton.Click += new System.Windows.RoutedEventHandler(this.saveFileButton_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.contentRichTextBox = ((System.Windows.Controls.RichTextBox)(target));

            #line 108 "..\..\..\View\NotesWindow.xaml"
                this.contentRichTextBox.SelectionChanged += new System.Windows.RoutedEventHandler(this.contentRichTextBox_SelectionChanged);

            #line default
            #line hidden

            #line 109 "..\..\..\View\NotesWindow.xaml"
                this.contentRichTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.contentRichTextBox_TextChanged);

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

            #line 10 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((League_planner.ArbitrosCatalogo)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UpdateArbitros);

            #line default
            #line hidden
                return;

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

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

            #line 21 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Back);

            #line default
            #line hidden
                return;

            case 6:

            #line 31 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.StackPanel)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.StackPanel_MouseDown);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

            case 13:

            #line 105 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SearchArbitros);

            #line default
            #line hidden
                return;

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

            #line 110 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                this.searchboxArbitros.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.BusquedaAlCambiarTexto);

            #line default
            #line hidden
                return;

            case 15:
                this.listaArbitros = ((System.Windows.Controls.ListView)(target));

            #line 113 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                this.listaArbitros.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SeleccionaArbitro);

            #line default
            #line hidden
                return;

            case 16:

            #line 138 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ArbitroNuevo);

            #line default
            #line hidden
                return;

            case 17:

            #line 139 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.EliminarArbitro);

            #line default
            #line hidden
                return;

            case 18:

            #line 140 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.EditarArbitro);

            #line default
            #line hidden
                return;

            case 19:

            #line 153 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoToFirst);

            #line default
            #line hidden
                return;

            case 20:

            #line 154 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoToPrevious);

            #line default
            #line hidden
                return;

            case 21:

            #line 155 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoToNext);

            #line default
            #line hidden
                return;

            case 22:

            #line 156 "..\..\..\Catalogos\ArbitrosCatalogo.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.GoToLast);

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

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

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

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

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

            #line 23 "..\..\MainControl.xaml"
                this.NowLog.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Txt_TextChanged);

            #line default
            #line hidden
                return;

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

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

            #line 69 "..\..\MainControl.xaml"
                this.Button7.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 70 "..\..\MainControl.xaml"
                this.Button8.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 71 "..\..\MainControl.xaml"
                this.Button9.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 73 "..\..\MainControl.xaml"
                this.Button4.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 74 "..\..\MainControl.xaml"
                this.Button5.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 75 "..\..\MainControl.xaml"
                this.Button6.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 77 "..\..\MainControl.xaml"
                this.Button1.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 78 "..\..\MainControl.xaml"
                this.Button2.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 79 "..\..\MainControl.xaml"
                this.Button3.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 81 "..\..\MainControl.xaml"
                this.Button0.Click += new System.Windows.RoutedEventHandler(this.NumberButton_Click);

            #line default
            #line hidden
                return;

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

            #line 82 "..\..\MainControl.xaml"
                this.ButtonPeriod.Click += new System.Windows.RoutedEventHandler(this.ButtonDot_Click);

            #line default
            #line hidden
                return;

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

            #line 84 "..\..\MainControl.xaml"
                this.ButtonPM.Click += new System.Windows.RoutedEventHandler(this.ButtonNegate_Click);

            #line default
            #line hidden
                return;

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

            #line 86 "..\..\MainControl.xaml"
                this.ButtonDevide.Click += new System.Windows.RoutedEventHandler(this.ButtonDivide_Click);

            #line default
            #line hidden
                return;

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

            #line 87 "..\..\MainControl.xaml"
                this.ButtonMultiply.Click += new System.Windows.RoutedEventHandler(this.ButtonMultiply_Click);

            #line default
            #line hidden
                return;

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

            #line 88 "..\..\MainControl.xaml"
                this.ButtonMinus.Click += new System.Windows.RoutedEventHandler(this.ButtonMinus_Click);

            #line default
            #line hidden
                return;

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

            #line 89 "..\..\MainControl.xaml"
                this.ButtonPlus.Click += new System.Windows.RoutedEventHandler(this.ButtonPlus_Click);

            #line default
            #line hidden
                return;

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

            #line 91 "..\..\MainControl.xaml"
                this.ButtonEqual.Click += new System.Windows.RoutedEventHandler(this.ButtonEqual_Click);

            #line default
            #line hidden
                return;

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

            #line 93 "..\..\MainControl.xaml"
                this.ButtonC.Click += new System.Windows.RoutedEventHandler(this.ButtonC_Click);

            #line default
            #line hidden
                return;

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

            #line 94 "..\..\MainControl.xaml"
                this.ButtonCE.Click += new System.Windows.RoutedEventHandler(this.ButtonCE_Click);

            #line default
            #line hidden
                return;

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

            #line 95 "..\..\MainControl.xaml"
                this.ButtonDelete.Click += new System.Windows.RoutedEventHandler(this.ButtonDelete_Click);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            case 17:
                this.txtPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

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

            case 20:
                this.stackButtons = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 21:
                this.stackMessage = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 22:
                this.applicationStatusMessage = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.buttonMemberManage = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 6:
                this.WelcomePanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

            case 8:
                this.WelcomeCenterPanel = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 9:
                this.WelcomeTodaySellPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

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

            case 12:
                this.WelcomeTodayLeasePanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

            case 14:
                this.DataGridWelcomeLease = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 15:
                this.MemberManagePanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 16:
                this.StackPanelSearchMember = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

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

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

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

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

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

            case 24:
                this.StackPanelMemberManageButton = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

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

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

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

            case 30:
                this.BookLeasePanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 31:
                this.TextBlockLeaseBookName = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 33:
                this.TextBlockLeaseItemID = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 35:
                this.TextBlockLeaseBookClasses = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 36:
                this.TextBoxLeaseMemberID = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 38:
                this.TextBlockLeaseBookMemberID = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

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

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

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

            case 44:
                this.dataGrid1 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 45:
                this.BookSellPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 46:
                this.TextBlockSellBookName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 47:
                this.TextBoxSellBookName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 48:
                this.TextBlockSellBookISBN = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 49:
                this.TextBoxSellBookISBN = ((System.Windows.Controls.TextBox)(target));
                return;

            case 50:
                this.TextBlockSellBookAuthor = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 51:
                this.TextBoxSellBookAuthor = ((System.Windows.Controls.TextBox)(target));
                return;

            case 52:
                this.TextBlockSellBookClasses = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 53:
                this.ComboBoxSellBookClasses = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 56:
                this.dataGridSell = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 57:
                this.PurchaseManagePanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 58:
                this.TextBlockPurchaseBookName = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 60:
                this.TextBlockPurchaseBookISBN = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 61:
                this.TextBoxPurchaseBookISBN = ((System.Windows.Controls.TextBox)(target));
                return;

            case 62:
                this.TextBlockPurchaseBookAuthor = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 63:
                this.TextBoxPurchaseBookAuthor = ((System.Windows.Controls.TextBox)(target));
                return;

            case 64:
                this.TextBlockPurchaseBookClasses = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 65:
                this.ComboBoxPurchaseBookClasses = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 66:
                this.ButtonPurchaseBookSearch = ((System.Windows.Controls.Button)(target));
                return;

            case 67:
                this.DataGridPurchase = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 68:
                this.TextBlockPurchaseNum = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 69:
                this.TextBoxPurchaseNum = ((System.Windows.Controls.TextBox)(target));
                return;

            case 70:
                this.ButtonPurchase = ((System.Windows.Controls.Button)(target));
                return;

            case 71:
                this.FinanceManagePanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 72:
                this.TextBlockFinanceTime = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 73:
                this.ComboBoxDataRange = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 74:
                this.ButtonSearchSell = ((System.Windows.Controls.Button)(target));
                return;

            case 75:
                this.ButtonSearchLease = ((System.Windows.Controls.Button)(target));
                return;

            case 76:
                this.ButtonSearchCompensation = ((System.Windows.Controls.Button)(target));
                return;

            case 77:
                this.ButtonSearchPurchase = ((System.Windows.Controls.Button)(target));
                return;

            case 78:
                this.DataGridFinanceSell = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 79:
                this.DataGridFinanceLease = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 80:
                this.DataGridFinanceCompensation = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 81:
                this.DataGridFinancePurchase = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 82:
                this.SearchBookPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 83:
                this.TextBlockSearchBookName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 84:
                this.TextBoxSearchBookName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 85:
                this.TextBlockSearchBookISBN = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 86:
                this.TextBoxSearchBookISBN = ((System.Windows.Controls.TextBox)(target));
                return;

            case 87:
                this.TextBlockSearchBookAuthor = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 88:
                this.TextBoxSearchBookAuthor = ((System.Windows.Controls.TextBox)(target));
                return;

            case 89:
                this.TextBlockSearchBookClasses = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 90:
                this.ComboBoxSearchBookClasses = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 91:
                this.ButtonSearchBookSearch = ((System.Windows.Controls.Button)(target));

            #line 293 "..\..\MainWindow.xaml"
                this.ButtonSearchBookSearch.Click += new System.Windows.RoutedEventHandler(this.Button_Click_Search);

            #line default
            #line hidden
                return;

            case 92:
                this.DataGridSearch = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 93:
                this.BookISBN = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 94:
                this.ContextMenuSearchBook = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 95:
                this.MenuItemCheckBook = ((System.Windows.Controls.MenuItem)(target));

            #line 307 "..\..\MainWindow.xaml"
                this.MenuItemCheckBook.Click += new System.Windows.RoutedEventHandler(this.MenuItemCheckBook_Click);

            #line default
            #line hidden
                return;

            case 96:
                this.MenuItemAddBook = ((System.Windows.Controls.MenuItem)(target));

            #line 308 "..\..\MainWindow.xaml"
                this.MenuItemAddBook.Click += new System.Windows.RoutedEventHandler(this.MenuItemCheckBook_Click);

            #line default
            #line hidden
                return;

            case 97:
                this.MenuItemDeleteBook = ((System.Windows.Controls.MenuItem)(target));

            #line 309 "..\..\MainWindow.xaml"
                this.MenuItemDeleteBook.Click += new System.Windows.RoutedEventHandler(this.MenuItemCheckBook_Click);

            #line default
            #line hidden
                return;

            case 98:
                this.MenuItemAlterBook = ((System.Windows.Controls.MenuItem)(target));

            #line 310 "..\..\MainWindow.xaml"
                this.MenuItemAlterBook.Click += new System.Windows.RoutedEventHandler(this.MenuItemCheckBook_Click);

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

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

            #line 13 "..\..\MainWindow.xaml"
                this.btnHome.Click += new System.Windows.RoutedEventHandler(this.btnHome_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\MainWindow.xaml"
                this.btnProduct.Click += new System.Windows.RoutedEventHandler(this.btnProduct_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\MainWindow.xaml"
                this.btnBuild.Click += new System.Windows.RoutedEventHandler(this.btnBuild_Click);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\MainWindow.xaml"
                this.btnComponent.Click += new System.Windows.RoutedEventHandler(this.btnComponent_Click);

            #line default
            #line hidden
                return;

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

            #line 17 "..\..\MainWindow.xaml"
                this.btnCompare.Click += new System.Windows.RoutedEventHandler(this.btnCompare_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.frmMain = ((System.Windows.Controls.Frame)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

            case 3:

            #line 36 "..\..\..\OrderEntryControl.xaml"
                ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Grid_Loaded);

            #line default
            #line hidden
                return;

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

            case 5:
                this.couponEntryControl = ((PointOfSale.TicketCouponControl)(target));
                return;

            case 6:
                this.discountControl = ((PointOfSale.TicketDiscountControl)(target));
                return;

            case 7:
                this.ticketDetailsControl = ((PointOfSale.OrderEntryTicketDetailsControl)(target));
                return;

            case 8:
                this.ticketSelectionControl = ((PointOfSale.OrderEntryTicketSelectionControl)(target));
                return;

            case 9:
                this.actionBar = ((PointOfSale.ButtonTouchCommandInput)(target));
                return;

            case 10:
                this.orderEntryItemOptions = ((PointOfSale.OrderEntryStandardItemOptionsControl)(target));
                return;

            case 11:
                this.orderEntryPizzaItemOptions = ((PointOfSale.OrderEntryPizzaItemControl)(target));
                return;

            case 12:
                this.orderEntryItemSelection = ((PointOfSale.OrderEntryItemSelectionControl)(target));
                return;

            case 13:
                this.buttonTouchInputCategory = ((PointOfSale.OrderEntryCategorySelectionControl)(target));
                return;

            case 14:
                this.receiptTape1 = ((PointOfSale.OrderEntryReceiptTape)(target));
                return;

            case 15:
                this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

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

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

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

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

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

            case 21:
                this.textBlockTime = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

            case 3:
                this.buttonMyOpenToggle = ((PosControls.PushRadioButton)(target));

            #line 17 "..\..\..\TicketFilterControl.xaml"
                this.buttonMyOpenToggle.SelectionGained += new System.EventHandler(this.buttonMyOpenToggle_SelectionGained);

            #line default
            #line hidden
                return;

            case 4:
                this.buttonAllOpenToggle = ((PosControls.PushRadioButton)(target));

            #line 18 "..\..\..\TicketFilterControl.xaml"
                this.buttonAllOpenToggle.SelectionGained += new System.EventHandler(this.buttonAllOpenToggle_SelectionGained);

            #line default
            #line hidden
                return;

            case 5:
                this.buttonFutureToggle = ((PosControls.PushRadioButton)(target));

            #line 19 "..\..\..\TicketFilterControl.xaml"
                this.buttonFutureToggle.SelectionGained += new System.EventHandler(this.buttonFutureToggle_SelectionGained);

            #line default
            #line hidden
                return;

            case 6:
                this.buttonClosedToggle = ((PosControls.PushRadioButton)(target));

            #line 20 "..\..\..\TicketFilterControl.xaml"
                this.buttonClosedToggle.SelectionGained += new System.EventHandler(this.buttonClosedToggle_SelectionGained);

            #line default
            #line hidden
                return;

            case 7:
                this.buttonCancelToggle = ((PosControls.PushRadioButton)(target));

            #line 21 "..\..\..\TicketFilterControl.xaml"
                this.buttonCancelToggle.SelectionGained += new System.EventHandler(this.buttonCancelToggle_SelectionGained);

            #line default
            #line hidden
                return;

            case 8:
                this.buttonDispatchedToggle = ((PosControls.PushRadioButton)(target));

            #line 22 "..\..\..\TicketFilterControl.xaml"
                this.buttonDispatchedToggle.SelectionGained += new System.EventHandler(this.buttonDispatchedToggle_SelectionGained);

            #line default
            #line hidden
                return;

            case 9:
                this.buttonAllDayToggle = ((PosControls.PushRadioButton)(target));

            #line 23 "..\..\..\TicketFilterControl.xaml"
                this.buttonAllDayToggle.SelectionGained += new System.EventHandler(this.buttonAllDay_SelectionGained);

            #line default
            #line hidden
                return;

            case 10:
                this.buttonRangeToggle = ((PosControls.PushRadioButton)(target));

            #line 24 "..\..\..\TicketFilterControl.xaml"
                this.buttonRangeToggle.SelectionGained += new System.EventHandler(this.buttonRange_SelectionGained);

            #line default
            #line hidden
                return;

            case 11:
                this.buttonAllToggle = ((PosControls.PushRadioButton)(target));

            #line 25 "..\..\..\TicketFilterControl.xaml"
                this.buttonAllToggle.SelectionGained += new System.EventHandler(this.buttonAllToggle_SelectionGained);

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

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

            case 3:
                this.textBoxName = ((PosControls.CustomTextBox)(target));

            #line 41 "..\..\..\CouponEditorDetailsControl.xaml"
                this.textBoxName.TextChanged += new System.Windows.RoutedEventHandler(this.textBoxName_TextChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.textBoxAmount = ((PosControls.CustomTextBox)(target));

            #line 42 "..\..\..\CouponEditorDetailsControl.xaml"
                this.textBoxAmount.TextChanged += new System.Windows.RoutedEventHandler(this.textBoxAmount_TextChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.radioButtonIsPercentage = ((PosControls.PushRadioButton)(target));

            #line 44 "..\..\..\CouponEditorDetailsControl.xaml"
                this.radioButtonIsPercentage.SelectionGained += new System.EventHandler(this.radioButtonIsPercentage_SelectionGained);

            #line default
            #line hidden
                return;

            case 6:
                this.radioButtonIsNotPercentage = ((PosControls.PushRadioButton)(target));

            #line 45 "..\..\..\CouponEditorDetailsControl.xaml"
                this.radioButtonIsNotPercentage.SelectionGained += new System.EventHandler(this.radioButtonIsPercentage_SelectionGained);

            #line default
            #line hidden
                return;

            case 7:
                this.radioButtonIsActive = ((PosControls.PushRadioButton)(target));

            #line 48 "..\..\..\CouponEditorDetailsControl.xaml"
                this.radioButtonIsActive.SelectionGained += new System.EventHandler(this.radioButtonIsActive_SelectionGained);

            #line default
            #line hidden
                return;

            case 8:
                this.radioButtonIsNotActive = ((PosControls.PushRadioButton)(target));

            #line 49 "..\..\..\CouponEditorDetailsControl.xaml"
                this.radioButtonIsNotActive.SelectionGained += new System.EventHandler(this.radioButtonIsActive_SelectionGained);

            #line default
            #line hidden
                return;

            case 9:
                this.comboBoxCouponExclusionSelection = ((PosControls.PushComboBox)(target));

            #line 51 "..\..\..\CouponEditorDetailsControl.xaml"
                this.comboBoxCouponExclusionSelection.SelectedIndexChanged += new System.EventHandler(this.comboBoxCouponExclusionSelection_SelectedIndexChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.radioButtonApplyToAll = ((PosControls.PushRadioButton)(target));

            #line 53 "..\..\..\CouponEditorDetailsControl.xaml"
                this.radioButtonApplyToAll.SelectionGained += new System.EventHandler(this.radioButtonApplyToAll_SelectionGained);

            #line default
            #line hidden
                return;

            case 11:
                this.radioButtonIsNotApplyToAll = ((PosControls.PushRadioButton)(target));

            #line 54 "..\..\..\CouponEditorDetailsControl.xaml"
                this.radioButtonIsNotApplyToAll.SelectionGained += new System.EventHandler(this.radioButtonApplyToAll_SelectionGained);

            #line default
            #line hidden
                return;

            case 12:
                this.radioButtonIsThirdParty = ((PosControls.PushRadioButton)(target));

            #line 57 "..\..\..\CouponEditorDetailsControl.xaml"
                this.radioButtonIsThirdParty.SelectionGained += new System.EventHandler(this.radioButtonIsThirdParty_SelectionGained);

            #line default
            #line hidden
                return;

            case 13:
                this.radioButtonIsNotThirdParty = ((PosControls.PushRadioButton)(target));

            #line 58 "..\..\..\CouponEditorDetailsControl.xaml"
                this.radioButtonIsNotThirdParty.SelectionGained += new System.EventHandler(this.radioButtonIsThirdParty_SelectionGained);

            #line default
            #line hidden
                return;

            case 14:
                this.textBoxAmountLimit = ((PosControls.CustomTextBox)(target));

            #line 60 "..\..\..\CouponEditorDetailsControl.xaml"
                this.textBoxAmountLimit.TextChanged += new System.Windows.RoutedEventHandler(this.textBoxAmountLimit_TextChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.textBoxLimitPerTicket = ((PosControls.CustomTextBox)(target));

            #line 61 "..\..\..\CouponEditorDetailsControl.xaml"
                this.textBoxLimitPerTicket.TextChanged += new System.Windows.RoutedEventHandler(this.textBoxLimitPerTicket_TextChanged);

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

            #line 12 "..\..\MainWindow.xaml"
                ((IrtsBurtgel.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.MainWindow_SizeChanged);

            #line default
            #line hidden
                return;

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

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

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

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

            case 6:
                this.password = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 7:

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

            #line default
            #line hidden
                return;

            case 8:
                this.RightSide = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            case 10:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 53
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TrainsitionigContentSlide = ((MaterialDesignThemes.Wpf.Transitions.TransitioningContent)(target));
                return;

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

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

            case 4:
                this.chb_sportCoupe = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 5:
                this.chb_suv = ((System.Windows.Controls.CheckBox)(target));
                return;

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

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

            case 8:
                this.chb_electricCar = ((System.Windows.Controls.CheckBox)(target));
                return;

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

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

            case 11:
                this.RentalCardGrid = ((System.Windows.Controls.ListView)(target));
                return;

            case 12:

            #line 52 "..\..\RentCars.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Find_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 53 "..\..\RentCars.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Rent_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.numeric_numOfDays = ((Scar.Common.WPF.Controls.NumericUpDown)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 54
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Cadastros = ((Cadastros.View.Menu)(target));
                return;

            case 2:
                this.Ribbon = ((Microsoft.Windows.Controls.Ribbon.Ribbon)(target));
                return;

            case 3:
                this.MenuItem1 = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

            #line 20 "..\..\..\View\Menu.xaml"
                this.MenuItem1.Click += new System.Windows.RoutedEventHandler(this.MenuItem1_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Etiquetas = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 5:
                this.GroupGeral = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 6:
                this.BotaoFormatoPapel = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 33 "..\..\..\View\Menu.xaml"
                this.BotaoFormatoPapel.Click += new System.Windows.RoutedEventHandler(this.BotaoFormatoPapel_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.BotaoLayout = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 37 "..\..\..\View\Menu.xaml"
                this.BotaoLayout.Click += new System.Windows.RoutedEventHandler(this.BotaoLayout_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.BotaoTemplate = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 41 "..\..\..\View\Menu.xaml"
                this.BotaoTemplate.Click += new System.Windows.RoutedEventHandler(this.BotaoTemplate_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.GroupSairProduto = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 10:
                this.BotaoSairProduto = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 49 "..\..\..\View\Menu.xaml"
                this.BotaoSairProduto.Click += new System.Windows.RoutedEventHandler(this.MenuItem1_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.dockPrincipal = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 12:
                this.dockModulo = ((System.Windows.Controls.DockPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 55
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((TimeManager.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.TbTimeFlow_KeyDown);

            #line default
            #line hidden
                return;

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

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

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

            #line 27 "..\..\MainWindow.xaml"
                this.TbCurrentTime.Loaded += new System.Windows.RoutedEventHandler(this.TbCurrentTime_load);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 32 "..\..\MainWindow.xaml"
                this.BtnMinimize.Click += new System.Windows.RoutedEventHandler(this.BtnMinimize_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 8:
                this.Main = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 40 "..\..\MainWindow.xaml"
                this.TbTimeFlow.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TbTimeFlow_LeftClick);

            #line default
            #line hidden

            #line 40 "..\..\MainWindow.xaml"
                this.TbTimeFlow.MouseRightButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TbTimeFlow_RightClick);

            #line default
            #line hidden
                return;

            case 10:
                this.TbUserMemo = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 56
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.clientesListBox = ((System.Windows.Controls.ListBox)(target));
                return;

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

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

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

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

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

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

            #line default
            #line hidden
                return;

            case 7:
                this.eliminarStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.eliminarComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            #line 78 "..\..\MainWindow.xaml"
                this.eliminarButton.Click += new System.Windows.RoutedEventHandler(this.eliminarButton_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.modificarStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

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

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

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

            #line 96 "..\..\MainWindow.xaml"
                this.modificarButton.Click += new System.Windows.RoutedEventHandler(this.modificarButton_Click);

            #line default
            #line hidden
                return;

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

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

            case 18:
                this.actualizarDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 19:
                this.filtrarDockPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

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

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

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

            #line default
            #line hidden
                return;

            case 22:
                this.filtrarDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 57
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainPane = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.Configuration = ((PosControls.ConfigurationManager)(target));
                return;

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

            case 4:
                this.button0 = ((PosControls.TextBlockButton)(target));
                return;

            case 5:
                this.button1 = ((PosControls.TextBlockButton)(target));
                return;

            case 6:
                this.button2 = ((PosControls.TextBlockButton)(target));
                return;

            case 7:
                this.button3 = ((PosControls.TextBlockButton)(target));
                return;

            case 8:
                this.button4 = ((PosControls.TextBlockButton)(target));
                return;

            case 9:
                this.button5 = ((PosControls.TextBlockButton)(target));
                return;

            case 10:
                this.button6 = ((PosControls.TextBlockButton)(target));
                return;

            case 11:
                this.button7 = ((PosControls.TextBlockButton)(target));
                return;

            case 12:
                this.button8 = ((PosControls.TextBlockButton)(target));
                return;

            case 13:
                this.button9 = ((PosControls.TextBlockButton)(target));
                return;

            case 14:
                this.button10 = ((PosControls.TextBlockButton)(target));
                return;

            case 15:
                this.button11 = ((PosControls.TextBlockButton)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 58
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 13 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                ((GGGC.Admin.ERP.Modules.LRG.Mkt.Views.EditView)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControlViewBase_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.radTabControl = ((Telerik.Windows.Controls.RadTabControl)(target));
                return;

            case 4:
                this.radComboBoxDepartment = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 159 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                this.radComboBoxDepartment.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.radComboBoxDepartment_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 161 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                this.txtDepartment.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtDepartment_TextChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.radComboBoxPriority = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 170 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                this.radComboBoxPriority.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.radComboBoxPriority_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 173 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                this.txtPriority.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtPriority_TextChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.radComboBoxStatus = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 181 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                this.radComboBoxStatus.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.radComboBoxStatus_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 183 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                this.txtStatus.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtStatus_TextChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.radComboBoxPerson = ((Telerik.Windows.Controls.RadComboBox)(target));

            #line 191 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                this.radComboBoxPerson.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.radComboBoxPerson_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 193 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                this.txtPerson.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtPerson_TextChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.txtBody = ((Telerik.Windows.Controls.RadWatermarkTextBox)(target));

            #line 198 "..\..\..\..\..\..\..\ERP\Modules\LRG\Mkt\Views\EditView.xaml"
                this.txtBody.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtBody_TextChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 59
0
        /// <summary>Default constructor, creates the UIElements including a PropertyInspector</summary>
        public WpfPropertyGrid()
        {
            this.ColumnDefinitions.Add(new ColumnDefinition());
            this.RowDefinitions.Add(new RowDefinition()
            {
                Height = new GridLength(1, GridUnitType.Star)
            });
            this.RowDefinitions.Add(new RowDefinition()
            {
                Height = new GridLength(0)
            });
            this.RowDefinitions.Add(new RowDefinition()
            {
                Height = new GridLength(0)
            });

            this.Designer = new WorkflowDesigner();
            TextBlock title = new TextBlock()
            {
                Visibility   = Windows.Visibility.Visible,
                TextWrapping = TextWrapping.NoWrap,
                TextTrimming = TextTrimming.CharacterEllipsis,
                FontWeight   = FontWeights.Bold
            };
            TextBlock descrip = new TextBlock()
            {
                Visibility   = Windows.Visibility.Visible,
                TextWrapping = TextWrapping.Wrap,
                TextTrimming = TextTrimming.CharacterEllipsis
            };
            DockPanel dock = new DockPanel()
            {
                Visibility    = Windows.Visibility.Visible,
                LastChildFill = true,
                Margin        = new Thickness(3, 0, 3, 0)
            };

            title.SetValue(DockPanel.DockProperty, Dock.Top);
            dock.Children.Add(title);
            dock.Children.Add(descrip);
            this.HelpText = new Border()
            {
                Visibility      = Windows.Visibility.Visible,
                BorderBrush     = SystemColors.ActiveBorderBrush,
                Background      = SystemColors.ControlBrush,
                BorderThickness = new Thickness(1),
                Child           = dock
            };
            this.Splitter = new GridSplitter()
            {
                Visibility          = Windows.Visibility.Visible,
                ResizeDirection     = GridResizeDirection.Rows,
                Height              = 5,
                HorizontalAlignment = Windows.HorizontalAlignment.Stretch
            };

            var inspector = Designer.PropertyInspectorView;

            inspector.Visibility = Visibility.Visible;
            inspector.SetValue(FrameworkElement.VerticalAlignmentProperty, VerticalAlignment.Stretch);

            this.Splitter.SetValue(Grid.RowProperty, 1);
            this.Splitter.SetValue(Grid.ColumnProperty, 0);

            this.HelpText.SetValue(Grid.RowProperty, 2);
            this.HelpText.SetValue(Grid.ColumnProperty, 0);

            Binding binding = new Binding("Parent.Background");

            title.SetBinding(BackgroundProperty, binding);
            descrip.SetBinding(BackgroundProperty, binding);

            this.Children.Add(inspector);
            this.Children.Add(this.Splitter);
            this.Children.Add(this.HelpText);

            Type inspectorType = inspector.GetType();
            var  props         = inspectorType.GetProperties(Reflection.BindingFlags.Public | Reflection.BindingFlags.NonPublic | Reflection.BindingFlags.Instance |
                                                             Reflection.BindingFlags.DeclaredOnly);

            var methods = inspectorType.GetMethods(Reflection.BindingFlags.Public | Reflection.BindingFlags.NonPublic | Reflection.BindingFlags.Instance |
                                                   Reflection.BindingFlags.DeclaredOnly);

            this.RefreshMethod = inspectorType.GetMethod("RefreshPropertyList",
                                                         Reflection.BindingFlags.NonPublic | Reflection.BindingFlags.Instance | Reflection.BindingFlags.DeclaredOnly);
            this.IsInAlphaViewMethod = inspectorType.GetMethod("set_IsInAlphaView",
                                                               Reflection.BindingFlags.Public | Reflection.BindingFlags.Instance | Reflection.BindingFlags.DeclaredOnly);
            this.OnSelectionChangedMethod = inspectorType.GetMethod("OnSelectionChanged",
                                                                    Reflection.BindingFlags.Public | Reflection.BindingFlags.Instance | Reflection.BindingFlags.DeclaredOnly);
            this.SelectionTypeLabel = inspectorType.GetMethod("get_SelectionTypeLabel",
                                                              Reflection.BindingFlags.Public | Reflection.BindingFlags.NonPublic | Reflection.BindingFlags.Instance |
                                                              Reflection.BindingFlags.DeclaredOnly).Invoke(inspector, new object[0]) as TextBlock;
            this.PropertyToolBar = inspectorType.GetMethod("get_PropertyToolBar",
                                                           Reflection.BindingFlags.Public | Reflection.BindingFlags.NonPublic | Reflection.BindingFlags.Instance |
                                                           Reflection.BindingFlags.DeclaredOnly).Invoke(inspector, new object[0]) as Control;
            inspectorType.GetEvent("GotFocus").AddEventHandler(this,
                                                               Delegate.CreateDelegate(typeof(RoutedEventHandler), this, "GotFocusHandler", false));

            this.SelectionTypeLabel.Text = string.Empty;
        }
Ejemplo n.º 60
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

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

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

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

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

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

            case 8:
                this.listaUczelni = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 11:
                this.dataPraktyki = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 12:
                this.groupBox1 = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 13:
                this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 14:
                this.rok1 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 15:
                this.rok2 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 16:
                this.rok3 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 17:
                this.rok4 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.rok5 = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 19:
                this.listaJezykow = ((System.Windows.Controls.ListBox)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 22:
                this.dockPanel1 = ((System.Windows.Controls.DockPanel)(target));
                return;

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

            case 24:
                this.nowyStazysta = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 25:
                this.zapiszDane = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 26:
                this.otworzDane = ((System.Windows.Controls.MenuItem)(target));

            #line 66 "..\..\..\MainWindow.xaml"
                this.otworzDane.Click += new System.Windows.RoutedEventHandler(this.otworzDane_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.wyjscie = ((System.Windows.Controls.MenuItem)(target));

            #line 69 "..\..\..\MainWindow.xaml"
                this.wyjscie.Click += new System.Windows.RoutedEventHandler(this.wyjscie_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.info = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 29:
                this.status = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;
            }
            this._contentLoaded = true;
        }