コード例 #1
0
ファイル: ViewLoadedParams.cs プロジェクト: rafatahmed/Dynamo
 internal ViewLoadedParams(DynamoView dynamoV, DynamoViewModel dynamoVM) :
     base(dynamoVM.Model)
 {
     dynamoView = dynamoV;
     dynamoViewModel = dynamoVM;
     dynamoMenu = dynamoView.titleBar.ChildOfType<Menu>();
 }
コード例 #2
0
        protected override void Attach()
        {
            _control = ControlObject as Menu;
            List<MenuItem> items = new List<MenuItem>();
            HeaderedItemsControlUtility.GetChildren(_control, items);
            foreach (var element in items)
            {
                var item = element;
                string text = HeaderedItemsControlUtility.GetItemText(item);
                if (string.IsNullOrEmpty(text))
                {
                    continue;
                }

                RoutedEventHandler opened = (s, e) =>
                {
                    SubmenuOpened(item, new string[] { text });
                };
                item.SubmenuOpened += opened;

                RoutedEventHandler click = (s, e) =>
                {
                    Click(item, new string[] { text });
                };
                item.Click += click;
                _detach.Add(() =>
                {
                    item.SubmenuOpened -= opened;
                    item.Click -= click;
                });
            }
        }
コード例 #3
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));
        }
コード例 #4
0
        public void Loaded(ViewLoadedParams p)
        {
            if (publishViewModel == null || inviteViewModel == null)
                return;

            publishViewModel.Workspaces = p.WorkspaceModels;
            publishViewModel.CurrentWorkspaceModel = p.CurrentWorkspaceModel;

            dynamoMenu = p.dynamoMenu;
            extensionMenuItem = GenerateMenuItem();
            p.AddMenuItem(MenuBarType.File, extensionMenuItem, 11);

            manageCustomizersMenuItem = GenerateManageCustomizersMenuItem();
            p.AddMenuItem(MenuBarType.File, manageCustomizersMenuItem, 12);

            inviteMenuItem = GenerateInviteMenuItem();
            p.AddMenuItem(MenuBarType.File, inviteMenuItem, 11);

            p.AddSeparator(MenuBarType.File, separator, 14);

            p.CurrentWorkspaceChanged += (ws) =>
            {
                publishViewModel.CurrentWorkspaceModel = ws;

                var isEnabled = ws is HomeWorkspaceModel && publishModel.HasAuthProvider;
                extensionMenuItem.IsEnabled = isEnabled;
            };

        }
コード例 #5
0
        //--------------- 메뉴바에 Help 컬렉션 만들기 -----------------
        void AddHelpMenu(Menu menu)
        {
            //------------------------------------------------------------------
            // 메뉴의 컨트롤의 선택가능한 부분 만들기 (Help 항목 생성)
            MenuItem itemHelp = new MenuItem();

            // 만들 메뉴 이름 설정
            itemHelp.Header = "_Help";

            // 메뉴바의 Help부분을 클릭 했을때 서브 메뉴가 열린다.
            // ViewOnOpen => NotepadClone.View.cs
            itemHelp.SubmenuOpened += ViewOnOpen;

            // 메뉴에 추가
            menu.Items.Add(itemHelp);
            //------------------------------------------------------------------

            //------------------------------------------------------------------
            // About 메뉴 아이템 객체 생성
            MenuItem itemAbout = new MenuItem();

            // 만들 서브 메뉴의 이름 설정
            itemAbout.Header = "_About" + strAppTitle + ". . .";

            // 서브메뉴 클릭 이벤트
            // AboutOnClick => NotepadClone.View.cs
            itemAbout.Click += AboutOnClick;

            // 위에서 만든 Help 메뉴 안에 서브메뉴 추가
            itemHelp.Items.Add(itemAbout);
            //------------------------------------------------------------------
        }
コード例 #6
0
        void AddFormatMenu(Menu menu)
        {
            //탑 레벨 Format 항목 생성
            MenuItem itemFormat = new MenuItem();
            itemFormat.Header = "F_ormat";
            menu.Items.Add(itemFormat);

            //자동 줄바꿈 메뉴 항목 생성
            WordWrapMenuItem itemWrap = new WordWrapMenuItem();
            itemFormat.Items.Add(itemWrap);

            //TextWrapping 프로퍼티 항목과 텍스트 박스를 바인딩

            //TextWrapping 프로퍼티와 WordWramenuItem의 WordWrap프로퍼티를 바인딩하기 위해 Binding 객체 생성.
            Binding bind = new Binding();
            bind.Path = new PropertyPath(TextBox.TextWrappingProperty);
            // 데이터 소스 설정.
            bind.Source = txtbox;
            //바인팅 모드 : 타킷도 소스에 반영할수 있도록 TwoWay 설정.
            bind.Mode = BindingMode.TwoWay;
            //TextBox의 SetBinding 메소드를 호출.
            itemWrap.SetBinding(WordWrapMenuItem.WordWrapProperty, bind);

            //Font 메뉴 항목생성
            MenuItem itemFont = new MenuItem();
            itemFont.Header = "_Font...";
            itemFont.Click +=FontOnClick;
            itemFormat.Items.Add(itemFont);
        }
コード例 #7
0
        public void When_adding_menu_item_should_be_able_to_add_to_root_menu()
		{
            Menu menu = new Menu { Name = "MainMenu" };
            menu.AddMenuItems(new MenuItemData { Parent = "MainMenu" });

            Assert.AreEqual(1, menu.Items.Count);
        }
コード例 #8
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;
		}
コード例 #9
0
 public UC_CONTROLE_Documents()
 {
     InitializeComponent();
     myDisplayArea = new DisplayArea(this);
     myMenu = new Menu(this);
     myMenu.changeMenuItems();
 }
コード例 #10
0
        //[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);
        }
コード例 #11
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));
        }
コード例 #12
0
        // File �޴� �ʱ�ȭ
        void AddFileMenu(Menu menu)
        {
            //============================================================
            // ž ���� ���� �׸� ����
            //============================================================
            MenuItem itemFile = new MenuItem();
            // ��� ����
            itemFile.Header = "_File";
            // Main �޴��� ������(Top Menu) ����
            menu.Items.Add(itemFile);

            // New �޴� �׸� ���� �� Top�޴� File�� �߰�
            MenuItem itemNew = new MenuItem();
            itemNew.Header = "_New";
            itemNew.Command = ApplicationCommands.New;
            itemFile.Items.Add(itemNew);
            CommandBindings.Add(
                new CommandBinding(ApplicationCommands.New, NewOnExecute));

            // Open  �޴� �׸� ���� �� Top�޴� File�� �߰�
            MenuItem itemOpen = new MenuItem();
            itemOpen.Header = "_Open...";
            // Command ����
            itemOpen.Command = ApplicationCommands.Open;
            itemFile.Items.Add(itemOpen);
            // CommandBing�� ���� �̺�Ʈ ��� Open�� OpenOnExecute�Լ� ����
            CommandBindings.Add(
                new CommandBinding(ApplicationCommands.Open, OpenOnExecute));

            // Save  �޴� �׸� ���� �� Top�޴� File�� �߰�
            MenuItem itemSave = new MenuItem();
            itemSave.Header = "_Save";
            itemSave.Command = ApplicationCommands.Save;
            itemFile.Items.Add(itemSave);
            CommandBindings.Add(
                new CommandBinding(ApplicationCommands.Save, SaveOnExecute));

            // Save As  �޴� �׸� ���� �� Top�޴� File�� �߰�
            MenuItem itemSaveAs = new MenuItem();
            itemSaveAs.Header = "Save _As...";
            itemSaveAs.Command = ApplicationCommands.SaveAs;
            itemFile.Items.Add(itemSaveAs);
            CommandBindings.Add(
                new CommandBinding(ApplicationCommands.SaveAs, SaveAsOnExecute));

            // ������(Separators) ����
            itemFile.Items.Add(new Separator());

            // PrintMenu�� �߰��ϴ� �Լ� ȣ��(1������ �˾Ƽ�/ NotepadClone.Print.cs�� ����)
            AddPrintMenuItems(itemFile);
            itemFile.Items.Add(new Separator());

            // Exit  �޴� �׸� ���� �� Top�޴� File�� �߰�
            MenuItem itemExit = new MenuItem();
            itemExit.Header = "E_xit";
            itemExit.Click += ExitOnClick;
            itemFile.Items.Add(itemExit);
        }
コード例 #13
0
ファイル: MainWindow.g.i.cs プロジェクト: leytoon/MyPrograms
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MenuAction = ((System.Windows.Controls.Menu)(target));
     return;
     case 2:
     
     #line 10 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeToENG);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 11 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeToPL);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 16 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAddRecepieWindow);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 17 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowAddComponentWindow);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 20 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowSearchRecipeWindow);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 23 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ShowMigrationB2B);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #14
0
ファイル: ViewLoadedParams.cs プロジェクト: joespiff/Dynamo
        internal ViewLoadedParams(DynamoView dynamoV, DynamoViewModel dynamoVM) :
            base(dynamoVM.Model)
        {
            dynamoView = dynamoV;
            dynamoViewModel = dynamoVM;
            dynamoMenu = dynamoView.titleBar.ChildOfType<Menu>();

            DynamoSelection.Instance.Selection.CollectionChanged += OnSelectionCollectionChanged;
        }
コード例 #15
0
 public Restart(Menu menuToReturnTo, int s)
 {
     InitializeComponent();
     menu = menuToReturnTo;
     Image image = new Image();
     image.Source = new BitmapImage(new Uri(Directory.GetCurrentDirectory() + @"\..\..\Resources\[email protected]", UriKind.Absolute));
     backgroundImage.ImageSource = image.Source;
     Score.Text = s.ToString(); 
 }
コード例 #16
0
        public void When_adding_menu_items_should_be_able_to_add_to_child_menu_item()
		{
            Menu menu = new Menu { Name = "MainMenu" };
            MenuItem child = new MenuItem { Name = "Child" };
            menu.Items.Add(child);
            menu.AddMenuItems(new MenuItemData { Parent = "Child" });

            Assert.AreEqual(1, child.Items.Count);
        }
コード例 #17
0
ファイル: MainWindow.g.i.cs プロジェクト: MindTheGap/BTrader
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.MainMenu = ((System.Windows.Controls.Menu)(target));
     return;
     }
     this._contentLoaded = true;
 }
コード例 #18
0
		public TitleMenuItem (MonoDevelop.Components.Commands.CommandManager manager, CommandEntry entry, CommandInfo commandArrayInfo = null, CommandSource commandSource = CommandSource.MainMenu, object initialCommandTarget = null, Menu menu = null)
		{
			this.manager = manager;
			this.initialCommandTarget = initialCommandTarget;
			this.commandSource = commandSource;
			this.commandArrayInfo = commandArrayInfo;

			this.menu = menu;
			menuEntry = entry;
			menuEntrySet = entry as CommandEntrySet;
			menuLinkEntry = entry as LinkCommandEntry;

			if (commandArrayInfo != null) {
				Header = commandArrayInfo.Text;

				var commandArrayInfoSet = commandArrayInfo as CommandInfoSet;
				if (commandArrayInfoSet != null) {
					foreach (var item in commandArrayInfoSet.CommandInfos) {
						if (item.IsArraySeparator)
							Items.Add (new Separator { UseLayoutRounding = true, });
						else
							Items.Add (new TitleMenuItem (manager, entry, item, commandSource, initialCommandTarget, menu));
					}
				}
			}

			if (menuEntrySet != null) {
				Header = menuEntrySet.Name;

				foreach (CommandEntry item in menuEntrySet) {
					if (item.CommandId == MonoDevelop.Components.Commands.Command.Separator) {
						Items.Add (new Separator { UseLayoutRounding = true, });
					} else
						Items.Add (new TitleMenuItem (manager, item, menu: menu));
				}
			} else if (menuLinkEntry != null) {
				Header = menuLinkEntry.Text;
				Click += OnMenuLinkClicked;
			} else if (entry != null) {
				actionCommand = manager.GetCommand (menuEntry.CommandId) as ActionCommand;
				if (actionCommand == null)
					return;

				IsCheckable = actionCommand.ActionType == ActionType.Check;

				// FIXME: Use proper keybinding text.
				if (actionCommand.KeyBinding != null)
					InputGestureText = actionCommand.KeyBinding.ToString ();
				
				if (!actionCommand.Icon.IsNull)
					Icon = new Image { Source = actionCommand.Icon.GetImageSource (Xwt.IconSize.Small) };
				Click += OnMenuClicked;
			}

			Height = SystemParameters.CaptionHeight;
			UseLayoutRounding = true;
		}
コード例 #19
0
ファイル: MenuController.cs プロジェクト: stevehjohn/Hub
 public MenuController(Menu menu, ToolBarTray toolBarTray)
 {
     _menu = menu;
     _toolBarTray = toolBarTray;
     _menuItems = new List<MingMenuItemAndHandler>();
     _contextMenuItems = new List<object>();
     _contextMenuKeyProviders = new List<ITreeViewContextMenuClient>();
     _menuClients = new List<IMingMenuClient>();
     _pluginTabDocumentItems = new Dictionary<string, IList<string>>();
 }
コード例 #20
0
        public void When_adding_menu_item_and_the_parent_does_not_exist_should_ignore_addition()
		{
            Menu menu = new Menu { Name = "MainMenu" };
            MenuItem child = new MenuItem { Name = "Child" };
            menu.Items.Add(child);
            menu.AddMenuItems(new MenuItemData { Parent = "Grandchild" });

            Assert.AreEqual(1, menu.Items.Count);
            Assert.AreEqual(0, child.Items.Count);
        }
コード例 #21
0
        public void Loaded(ViewLoadedParams p)
        {
            if (publishViewModel == null)
                return;

            publishViewModel.Workspaces = p.WorkspaceModels;

            dynamoMenu = p.dynamoMenu;
            extensionMenuItem = GenerateMenuItem();
            p.AddMenuItem(MenuBarType.File, extensionMenuItem, 11);
        }
コード例 #22
0
        void AddHelpMenu(Menu menu)
        {
            MenuItem itemHelp = new MenuItem();
            itemHelp.Header = "_Help";
            itemHelp.SubmenuOpened += ViewOnOpen;
            menu.Items.Add(itemHelp);

            MenuItem itemAbout = new MenuItem();
            itemAbout.Header = "_About " + strAppTitle + "...";
            itemAbout.Click += AboutOnClick;
            itemHelp.Items.Add(itemAbout);
        }
コード例 #23
0
        public MenuExtension()
        {
            _menu = new Menu();
            var fileMenu = new MenuItem();
            fileMenu.Header = "File";
            _menu.Items.Add(fileMenu);

            var exitCommand = new MenuItem();
            exitCommand.Header = "Exit";
            exitCommand.Click += delegate { Application.Current.Shutdown(); };

            fileMenu.Items.Add(exitCommand);
        }
コード例 #24
0
 public PlantAreaMenuBuilder(StackPanel plantAreaSensorsPanel, StackPanel plantAreaChartsPanel,
     Menu menu, IControlsRefresher controlsRefresher, DbMeasuringMessagesRetriever dbMeasuringMessagesRetriever,
     ChartDescriptor chartDescriptor)
 {
     controlsRefresher.RefreshControl += RefreshControls;
     _plantAreaSensorsPanel = plantAreaSensorsPanel;
     _plantAreaChartsPanel = plantAreaChartsPanel;
     _menu = menu;
     _chartDescriptor = chartDescriptor;
     _dbMeasuringMessagesRetriever = dbMeasuringMessagesRetriever;
     _refreshLastMin = false;
     _autorefresh = false;
 }
コード例 #25
0
        public MeetTheDockers()
        {
            Title = "Meet the Dockers";

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

            // Create menu.
            Menu menu = new Menu();
            MenuItem item = new MenuItem();
            item.Header = "Menu";
            menu.Items.Add(item);

            // Dock menu at top of panel.
            DockPanel.SetDock(menu, Dock.Top);
            dock.Children.Add(menu);

            // Create tool bar.
            ToolBar tool = new ToolBar();
            tool.Header = "Toolbar";

            // Dock tool bar at top of panel.
            DockPanel.SetDock(tool, Dock.Top);
            dock.Children.Add(tool);

            // Create status bar.
            StatusBar status = new StatusBar();
            StatusBarItem statitem = new StatusBarItem();
            statitem.Content = "Status";
            status.Items.Add(statitem);

            // Dock status bar at bottom of panel.
            DockPanel.SetDock(status, Dock.Bottom);
            dock.Children.Add(status);

            // Create list box.
            ListBox lstbox = new ListBox();
            lstbox.Items.Add("List Box Item");

            // Dock list box at left of panel.
            DockPanel.SetDock(lstbox, Dock.Left);
            dock.Children.Add(lstbox);

            // Create text box.
            TextBox txtbox = new TextBox();
            txtbox.AcceptsReturn = true;

            // Add text box to panel & give it input focus.
            dock.Children.Add(txtbox);
            txtbox.Focus();
        }
コード例 #26
0
        private UIElement CreateControls()
        {
            m_menu_main = new Menu();

            ////////
            // File
            m_menuItem_loadFromDatabase = new MenuItem() { Header = "Load DB" };
            m_menuItem_loadFromDatabase.Click += MenuItem_LoadFromDatabase_Click;

            m_menuItem_exportToXml = new MenuItem() { Header = "Export to Xml" };
            m_menuItem_exportToXml.Click += MenuItem_ExportToXml_Click;

            m_menuItem_importFromXml = new MenuItem() { Header = "Import From Xml" };
            m_menuItem_importFromXml.Click += MenuItem_ImportFromXml_Click;

            m_menuItem_file = new MenuItem() { Header = "File" };
            m_menuItem_file.Items.Add(m_menuItem_loadFromDatabase);

            m_menu_main.Items.Add(m_menuItem_file);

            ////////
            // Setup
            m_menuItem_GameStateOnInitialLoad = new MenuItem() { Header = "Area/Room On Initial Load" };
            RoutedEventHandler menuItem_GameStateOnInitialLoad_clickHandler =
                new RoutedEventHandler((x, y) =>
                {
                    if (m_menuItem_GameStateOnInitialLoad.IsSubmenuOpen)
                        m_menuItem_setup.IsSubmenuOpen = false;
                });
            m_menuItem_GameStateOnInitialLoad.AddHandler(Button.ClickEvent, menuItem_GameStateOnInitialLoad_clickHandler);
            m_menuItem_GameStateOnInitialLoad.AddHandler(MenuItem.ClickEvent, menuItem_GameStateOnInitialLoad_clickHandler);

            m_menuItem_setup = new MenuItem() { Header = "Setup" };
            m_menuItem_setup.Items.Add(m_menuItem_GameStateOnInitialLoad);

            ////////
            // Toolbar
            DockPanel dockPanel_main = new DockPanel();
            dockPanel_main.Children.Add(m_menu_main);
            DockPanel.SetDock(m_menu_main, Dock.Top);

            ////////
            // grid
            m_grid_main = new Grid();
            m_grid_main.RowDefinitions.Add(new RowDefinition() { Height = GridLength.Auto });
            m_grid_main.RowDefinitions.Add(new RowDefinition() { Height = new GridLength(100.0, GridUnitType.Star) });
            m_grid_main.SetGridRowColumn(dockPanel_main, 0, 0);

            return m_grid_main;
        }
コード例 #27
0
        void AddFileMenu(Menu menu)
        {
            // Create top-level File item.
            MenuItem itemFile = new MenuItem();
            itemFile.Header = "_File";
            menu.Items.Add(itemFile);

            // New menu item.
            MenuItem itemNew = new MenuItem();
            itemNew.Header = "_New";
            itemNew.Command = ApplicationCommands.New;
            itemFile.Items.Add(itemNew);
            CommandBindings.Add(
                new CommandBinding(ApplicationCommands.New, NewOnExecute));

            // Open menu item.
            MenuItem itemOpen = new MenuItem();
            itemOpen.Header = "_Open...";
            itemOpen.Command = ApplicationCommands.Open;
            itemFile.Items.Add(itemOpen);
            CommandBindings.Add(
                new CommandBinding(ApplicationCommands.Open, OpenOnExecute));

            // Save menu item.
            MenuItem itemSave = new MenuItem();
            itemSave.Header = "_Save";
            itemSave.Command = ApplicationCommands.Save;
            itemFile.Items.Add(itemSave);
            CommandBindings.Add(
                new CommandBinding(ApplicationCommands.Save, SaveOnExecute));

            // Save As menu item.
            MenuItem itemSaveAs = new MenuItem();
            itemSaveAs.Header = "Save _As...";
            itemSaveAs.Command = ApplicationCommands.SaveAs;
            itemFile.Items.Add(itemSaveAs);
            CommandBindings.Add(
                new CommandBinding(ApplicationCommands.SaveAs, SaveAsOnExecute));

            // Separators and printing items.
            itemFile.Items.Add(new Separator());
            AddPrintMenuItems(itemFile);
            itemFile.Items.Add(new Separator());

            // Exit menu item.
            MenuItem itemExit = new MenuItem();
            itemExit.Header = "E_xit";
            itemExit.Click += ExitOnClick;
            itemFile.Items.Add(itemExit);
        }
コード例 #28
0
ファイル: MenuBarManager.cs プロジェクト: Nieko/Nieko
        public MenuBarManager(IViewNavigator viewNavigator)
        {
            _ViewNavigator = viewNavigator;

            _NavigatingRouter = WeakEventRouter.CreateInstance(this,
                viewNavigator,
                () => default(NavigationEventArgs),
                (o, d) =>  o.Navigating += d.Handler,
                (o, d) => o.Navigating -= d.Handler,
                Navigating);

            _CleanupsByOwner = new Dictionary<EndPoint, Stack<Action>>();

            _ViewNavigator.EnqueueUIWork(() => MenuBar = new Menu());
        }
コード例 #29
0
        public void Loaded(ViewLoadedParams p)
        {
            if (publishViewModel == null)
                return;

            publishViewModel.Workspaces = p.WorkspaceModels;
            publishViewModel.CurrentWorkspaceModel = p.CurrentWorkspaceModel;

            dynamoMenu = p.dynamoMenu;
            extensionMenuItem = GenerateMenuItem();
            manageCustomizersMenuItem = GenerateManageCustomizersMenuItem();

            p.AddMenuItem(MenuBarType.File, extensionMenuItem, 11);
            p.AddMenuItem(MenuBarType.File, manageCustomizersMenuItem, 12);
        }
コード例 #30
0
        void AddViewMenu(Menu menu)
        {
            //탑 레벨 View  항목을 생성 ..
            MenuItem itemView = new MenuItem();         //메뉴 아이템 생성
            itemView.Header = "_View";                      //메뉴의 제목설정..
            itemView.SubmenuOpened += ViewOnOpen; //메뉴를 클릭하여 서브 매뉴가 열릴때의 이벤트 핸들러 등록.
            menu.Items.Add(itemView);                      // 메뉴에 생성한 아이템 추가.

            //View 메뉴의 상태바 항목을 생성.
            itemStatus = new MenuItem();                    //새로운 메뉴아이템 생성.
            itemStatus.Header = "_Status Bar";            // 제목설정..
            itemStatus.IsCheckable = true;                  // 체크가능하게 설정.
            itemStatus.Checked += StatusOnCheck;      // 체크가 됬을때와 풀릴때의 이밴트 핸들러 등록.
            itemStatus.Unchecked += StatusOnCheck;  //
            itemView.Items.Add(itemStatus);              // View메뉴에 서브아이템으로 등록.
        }
コード例 #31
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 4 "..\..\MainWindow.xaml"
                ((WpfApplication4.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MainWindow_OnClosing);

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 32 "..\..\MainWindow.xaml"
                this.AboutDmsItem.Click += new System.Windows.RoutedEventHandler(this.AboutDmsItem_OnClick);

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

            #line 26 "..\..\ComponentPropertiesControl.xaml"
                ((System.Windows.Controls.StackPanel)(target)).Loaded += new System.Windows.RoutedEventHandler(this.ComponentListMenuControl_Loaded);

            #line default
            #line hidden
                return;

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

            #line 28 "..\..\ComponentPropertiesControl.xaml"
                this.ComponentListMenuControl.Loaded += new System.Windows.RoutedEventHandler(this.ComponentListMenuControl_Loaded);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\ComponentPropertiesControl.xaml"
                this.PrimaryComponentTypesHeader.Loaded += new System.Windows.RoutedEventHandler(this.PrimaryComponentTypesHeader_Loaded);

            #line default
            #line hidden
                return;

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

            #line 30 "..\..\ComponentPropertiesControl.xaml"
                this.AddScriptHeader.Loaded += new System.Windows.RoutedEventHandler(this.AddScriptHeader_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 51 "..\..\ComponentPropertiesControl.xaml"
                this.NewTagTextBox.KeyDown += new System.Windows.Input.KeyEventHandler(this.NewTagTextBox_KeyDown);

            #line default
            #line hidden
                return;

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

            #line 59 "..\..\ComponentPropertiesControl.xaml"
                this.AlignViewButton.Click += new System.Windows.RoutedEventHandler(this.AlignViewButton_Click);

            #line default
            #line hidden
                return;

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

            #line 60 "..\..\ComponentPropertiesControl.xaml"
                this.GroundSnapButton.Click += new System.Windows.RoutedEventHandler(this.GroundSnapButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line 79 "..\..\ComponentPropertiesControl.xaml"
                this.RevertButton.Click += new System.Windows.RoutedEventHandler(this.RevertButton_Click);

            #line default
            #line hidden
                return;

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

            #line 80 "..\..\ComponentPropertiesControl.xaml"
                this.DetachButton.Click += new System.Windows.RoutedEventHandler(this.DetachButton_Click);

            #line default
            #line hidden
                return;

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

            #line 81 "..\..\ComponentPropertiesControl.xaml"
                this.ApplyButton.Click += new System.Windows.RoutedEventHandler(this.ApplyButton_Click);

            #line default
            #line hidden
                return;

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

            #line 84 "..\..\ComponentPropertiesControl.xaml"
                this.MakePrefabButton.Click += new System.Windows.RoutedEventHandler(this.MakePrefabButton_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.ComponentListViewControl = ((System.Windows.Controls.ListView)(target));

            #line 92 "..\..\ComponentPropertiesControl.xaml"
                this.ComponentListViewControl.Drop += new System.Windows.DragEventHandler(this.ComponentListView_Drop);

            #line default
            #line hidden

            #line 92 "..\..\ComponentPropertiesControl.xaml"
                this.ComponentListViewControl.DragEnter += new System.Windows.DragEventHandler(this.ComponentListView_DragEnter);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #33
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnDKHV = ((System.Windows.Controls.Menu)(target));

            #line 14 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnDKHV.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.btnDKHV_MouseEnter));

            #line default
            #line hidden

            #line 14 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnDKHV.AddHandler(System.Windows.Input.Mouse.MouseLeaveEvent, new System.Windows.Input.MouseEventHandler(this.btnDKHV_MouseLeave));

            #line default
            #line hidden
                return;

            case 2:

            #line 18 "..\..\..\..\VIEW\FeeScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Register_Click);

            #line default
            #line hidden
                return;

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

            #line 21 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnSearch.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.btnSearch_MouseEnter));

            #line default
            #line hidden

            #line 21 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnSearch.AddHandler(System.Windows.Input.Mouse.MouseLeaveEvent, new System.Windows.Input.MouseEventHandler(this.btnSearch_MouseLeave));

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnSearchI.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.btnSearch_MouseEnter));

            #line default
            #line hidden

            #line 22 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnSearchI.AddHandler(System.Windows.Input.Mouse.MouseLeaveEvent, new System.Windows.Input.MouseEventHandler(this.btnSearch_MouseLeave));

            #line default
            #line hidden
                return;

            case 5:

            #line 23 "..\..\..\..\VIEW\FeeScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Quick_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 24 "..\..\..\..\VIEW\FeeScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Condition_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.btnQLHP = ((System.Windows.Controls.Menu)(target));

            #line 29 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnQLHP.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.btnQLHP_MouseEnter));

            #line default
            #line hidden

            #line 29 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnQLHP.AddHandler(System.Windows.Input.Mouse.MouseLeaveEvent, new System.Windows.Input.MouseEventHandler(this.btnQLHP_MouseLeave));

            #line default
            #line hidden
                return;

            case 8:

            #line 33 "..\..\..\..\VIEW\FeeScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.FeeManagement_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnQLL = ((System.Windows.Controls.Menu)(target));

            #line 37 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnQLL.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.btnQLL_MouseEnter));

            #line default
            #line hidden

            #line 37 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnQLL.AddHandler(System.Windows.Input.Mouse.MouseLeaveEvent, new System.Windows.Input.MouseEventHandler(this.btnQLL_MouseLeave));

            #line default
            #line hidden
                return;

            case 10:

            #line 41 "..\..\..\..\VIEW\FeeScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ClassManagement_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.btnTL = ((System.Windows.Controls.Menu)(target));

            #line 44 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnTL.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.btnTL_MouseEnter));

            #line default
            #line hidden

            #line 44 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnTL.AddHandler(System.Windows.Input.Mouse.MouseLeaveEvent, new System.Windows.Input.MouseEventHandler(this.btnTL_MouseLeave));

            #line default
            #line hidden
                return;

            case 12:

            #line 48 "..\..\..\..\VIEW\FeeScreen.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Setting_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.btnHelp = ((System.Windows.Controls.Menu)(target));
                return;

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

            #line 52 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnHelpI.Click += new System.Windows.RoutedEventHandler(this.btnHelpI_Click);

            #line default
            #line hidden

            #line 52 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnHelpI.AddHandler(System.Windows.Input.Mouse.MouseEnterEvent, new System.Windows.Input.MouseEventHandler(this.btnHelpI_MouseEnter));

            #line default
            #line hidden

            #line 52 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnHelpI.AddHandler(System.Windows.Input.Mouse.MouseLeaveEvent, new System.Windows.Input.MouseEventHandler(this.btnHelpI_MouseLeave));

            #line default
            #line hidden
                return;

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

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

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

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

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

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

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

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

            #line 96 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.cmbClassName.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbClassName_SelectionChanged);

            #line default
            #line hidden
                return;

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

            #line 99 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.btnExport.Click += new System.Windows.RoutedEventHandler(this.btnExport_Click);

            #line default
            #line hidden
                return;

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

            #line 101 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.dgvFee2.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.dgvFee2_LoadingRow);

            #line default
            #line hidden

            #line 101 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.dgvFee2.CellEditEnding += new System.EventHandler <System.Windows.Controls.DataGridCellEditEndingEventArgs>(this.dgvFee2_CellEditEnding);

            #line default
            #line hidden

            #line 104 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.dgvFee2.AddHandler(System.Windows.Controls.ScrollViewer.ScrollChangedEvent, new System.Windows.Controls.ScrollChangedEventHandler(this.dgvFee2_ScrollChanged));

            #line default
            #line hidden
                return;

            case 25:
                this.dgvFee1 = ((System.Windows.Controls.DataGrid)(target));

            #line 126 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.dgvFee1.AddHandler(System.Windows.Controls.ScrollViewer.ScrollChangedEvent, new System.Windows.Controls.ScrollChangedEventHandler(this.dgvFee1_ScrollChanged));

            #line default
            #line hidden

            #line 131 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.dgvFee1.Loaded += new System.Windows.RoutedEventHandler(this.dgvFee_Loaded);

            #line default
            #line hidden
                return;

            case 26:
                this.dgvFee = ((System.Windows.Controls.DataGrid)(target));

            #line 146 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.dgvFee.Loaded += new System.Windows.RoutedEventHandler(this.dgvFee_Loaded);

            #line default
            #line hidden

            #line 146 "..\..\..\..\VIEW\FeeScreen.xaml"
                this.dgvFee.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.dgvFee_LoadingRow);

            #line default
            #line hidden
                return;

            case 27:
                this.dgvTotalC = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #34
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Parent = ((WpfApplication1.MainWindow)(target));

            #line 4 "..\..\..\MainWindow.xaml"
                this.Parent.Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:
                this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 5:
                this.tabItem1 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 6:
                this.XStackPanel = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

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

            case 9:
                this.scrolly = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            case 11:
                this.scale = ((System.Windows.Media.ScaleTransform)(target));
                return;

            case 12:
                this.tabItem2 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 13:
                this.scrolly1 = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 14:
                this.LowestOctif = ((System.Windows.Controls.Canvas)(target));
                return;

            case 15:
                this.scrolly2 = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 16:
                this.LowOctif = ((System.Windows.Controls.Canvas)(target));
                return;

            case 17:
                this.scrolly3 = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 18:
                this.MiddleOctif = ((System.Windows.Controls.Canvas)(target));
                return;

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

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

            case 21:
                this.scrolly5 = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 22:
                this.HighestOctif = ((System.Windows.Controls.Canvas)(target));
                return;

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

            case 24:
                this.LowestBb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.LowestB = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.LowestC = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.LowestDb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.LowestD = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

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

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

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

            case 34:
                this.LowestAb = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 36:
                this.LowBb = ((System.Windows.Controls.TextBlock)(target));
                return;

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

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

            case 39:
                this.LowDb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 40:
                this.LowD = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 41:
                this.LowEb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 42:
                this.LowE = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 43:
                this.LowF = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 44:
                this.LowGb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 45:
                this.LowG = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 47:
                this.MiddleA = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 49:
                this.MiddleB = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 51:
                this.MiddleDb = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 53:
                this.MiddleEb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 54:
                this.MiddleE = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 55:
                this.MiddleF = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 56:
                this.MiddleGb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 57:
                this.MiddleG = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 59:
                this.HighA = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 61:
                this.HighB = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 63:
                this.HighDb = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 65:
                this.HighEb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 66:
                this.HighE = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 67:
                this.HighF = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 69:
                this.HighG = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 70:
                this.HighAb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 71:
                this.HighestA = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 73:
                this.HighestB = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 74:
                this.HighestC = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 75:
                this.HighestDb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 76:
                this.HighestD = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 77:
                this.HighestEb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 78:
                this.HighestE = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 79:
                this.HighestF = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 80:
                this.HighestGb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 81:
                this.HighestG = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 82:
                this.HighestAb = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 83:
                this.slider1 = ((System.Windows.Controls.Slider)(target));
                return;

            case 84:
                this.button3 = ((System.Windows.Controls.Button)(target));

            #line 158 "..\..\..\MainWindow.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;

            case 85:
                this.button4 = ((System.Windows.Controls.Button)(target));

            #line 159 "..\..\..\MainWindow.xaml"
                this.button4.Click += new System.Windows.RoutedEventHandler(this.button4_Click);

            #line default
            #line hidden
                return;

            case 86:
                this.tabItem3 = ((System.Windows.Controls.TabItem)(target));
                return;

            case 87:
                this.staffscroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 88:
                this.noteStaff = ((System.Windows.Controls.Canvas)(target));
                return;

            case 89:
                this.Fline = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 90:
                this.Dline = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 91:
                this.Bline = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 92:
                this.Gline = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 93:
                this.Eline = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 94:
                this.NoteStatsTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 95:
                this.NoteStatsPTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 96:
                this.NoteStatsP = ((System.Windows.Controls.TextBox)(target));
                return;

            case 97:
                this.NoteStatsFTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 98:
                this.NoteStatsF = ((System.Windows.Controls.TextBox)(target));
                return;

            case 99:
                this.NoteStatsETitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 100:
                this.NoteStatsE = ((System.Windows.Controls.TextBox)(target));
                return;

            case 101:
                this.CommentsTitle = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 102:
                this.Comments = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #35
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.File = ((System.Windows.Controls.MenuItem)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 18 "..\..\..\MainWindow.xaml"
                this.FileItemSaveFile.Click += new System.Windows.RoutedEventHandler(this.buttonSaveTileData_Click);

            #line default
            #line hidden
                return;

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

            case 7:
                this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 8:
                this.TabItemDataViewer = ((System.Windows.Controls.TabItem)(target));
                return;

            case 9:
                this.SuperGridTiles = ((XenToolsGui.TileViewer.Types.SuperGridTree)(target));
                return;

            case 10:
                this.SuperGridLosedTiles = ((XenToolsGui.TileViewer.Types.SuperGridTree)(target));
                return;

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

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

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

            #line 45 "..\..\..\MainWindow.xaml"
                this.buttonWallsRight.Click += new System.Windows.RoutedEventHandler(this.buttonWallsRight_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 25:
                this.dataGridTmpStyles = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 26:
                this.dataGridTmpTiles = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 27:
                this.stackPanel1 = ((System.Windows.Controls.StackPanel)(target));
                return;

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

            #line 80 "..\..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.AddTileTmpClick);

            #line default
            #line hidden
                return;

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

            #line 81 "..\..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.button2_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 83 "..\..\..\MainWindow.xaml"
                this.ButtonAddStyles.Click += new System.Windows.RoutedEventHandler(this.ButtonAddStyles_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.TabItemMapMaking = ((System.Windows.Controls.TabItem)(target));
                return;

            case 33:
                this.TabControlMakeMapData = ((System.Windows.Controls.TabControl)(target));
                return;

            case 34:
                this.TabItemColorArea = ((System.Windows.Controls.TabItem)(target));
                return;

            case 35:
                this.DocPanelDataGridAreaColor = ((System.Windows.Controls.DockPanel)(target));
                return;

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

            #line 116 "..\..\..\MainWindow.xaml"
                this.ButtonLoadScript.Click += new System.Windows.RoutedEventHandler(this.ButtonLoadScript_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 40:
                this.button7 = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #36
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 10 "..\..\MainOUP.xaml"
     ((Cards_of_defectation.MainOUP)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     
     #line 14 "..\..\MainOUP.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 16 "..\..\MainOUP.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     
     #line 18 "..\..\MainOUP.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.menu = ((System.Windows.Controls.Menu)(target));
     return;
     case 6:
     
     #line 42 "..\..\MainOUP.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_1);
     
     #line default
     #line hidden
     return;
     case 7:
     
     #line 50 "..\..\MainOUP.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_2);
     
     #line default
     #line hidden
     return;
     case 8:
     
     #line 54 "..\..\MainOUP.xaml"
     ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_3);
     
     #line default
     #line hidden
     return;
     case 9:
     this.main_table = ((System.Windows.Controls.DataGrid)(target));
     
     #line 59 "..\..\MainOUP.xaml"
     this.main_table.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.main_table_PreviewKeyDown);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
コード例 #37
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

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

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

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

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

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

            case 8:

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden
                return;

            case 10:

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

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            case 14:
                this.textBlock_Premier = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #38
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

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

            #line 15 "..\..\MainWindow.xaml"
                this.txt_nome.KeyDown += new System.Windows.Input.KeyEventHandler(this.txt_nome_KeyDown);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 5:
                this.scroll_pontuacao = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

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

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

            #line 23 "..\..\MainWindow.xaml"
                this.txt_chute.KeyDown += new System.Windows.Input.KeyEventHandler(this.txt_chute_KeyDown);

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;

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

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

            case 13:
                this.txtLetrasErradas = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #39
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.NewMenu = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

            case 6:
                this.SimulationChart = ((System.Windows.Controls.DataVisualization.Charting.Chart)(target));
                return;

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

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

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

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

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

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

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

            #line 52 "..\..\MainWindow.xaml"
                this.StartingPotential.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.StartingPotential_PreviewTextInput);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.FileItem = ((System.Windows.Controls.MenuItem)(target));
                return;

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

            #line 12 "..\..\MainWindow.xaml"
                this.ConfigItem.Click += new System.Windows.RoutedEventHandler(this.ConfigItem_OnClick);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 18 "..\..\MainWindow.xaml"
                this.StartServerButton.Click += new System.Windows.RoutedEventHandler(this.StartServerButton_OnClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #41
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.labelSumCred = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 4:
                this.dtPicker = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            case 6:
                this.comboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 8:
                this.rbRub = ((System.Windows.Controls.RadioButton)(target));
                return;

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

            case 10:
                this.rbEur = ((System.Windows.Controls.RadioButton)(target));
                return;

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

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

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

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

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

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

            case 17:
                this.rbAnnuit = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 18:
                this.rbDiffer = ((System.Windows.Controls.RadioButton)(target));
                return;

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

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

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

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

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

            case 24:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #42
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Button_turnon = ((ArduinoCommunication.MainWindow)(target));
                return;

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

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

            case 4:
                this.StatusBar_mystatus = ((System.Windows.Controls.Primitives.StatusBar)(target));
                return;

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

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

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

            case 8:

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

            #line default
            #line hidden
                return;

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

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

            #line 40 "..\..\MainWindow.xaml"
                this.Slider_Deg1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.Slider_Deg1_ValueChanged);

            #line default
            #line hidden
                return;

            case 11:
                this.Textbox_test = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #43
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\PlayImageWindow.xaml"
                ((N_Puzzle.PlayImageWindow)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Window_MouseMove);

            #line default
            #line hidden

            #line 8 "..\..\PlayImageWindow.xaml"
                ((N_Puzzle.PlayImageWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

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

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

            #line 13 "..\..\PlayImageWindow.xaml"
                this.NewGameItem.Click += new System.Windows.RoutedEventHandler(this.NewGame_Click);

            #line default
            #line hidden
                return;

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

            #line 14 "..\..\PlayImageWindow.xaml"
                this.PlayItem.Click += new System.Windows.RoutedEventHandler(this.PlayItem_Click);

            #line default
            #line hidden
                return;

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

            #line 15 "..\..\PlayImageWindow.xaml"
                this.SaveItem.Click += new System.Windows.RoutedEventHandler(this.SaveItem_Click);

            #line default
            #line hidden
                return;

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

            #line 16 "..\..\PlayImageWindow.xaml"
                this.LoadItem.Click += new System.Windows.RoutedEventHandler(this.LoadItem_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.previewCanvas = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #44
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\..\MainWindow.xaml"
     ((WpfApp1.MainWindow)(target)).Initialized += new System.EventHandler(this.Window_Initialized);
     
     #line default
     #line hidden
     
     #line 8 "..\..\..\MainWindow.xaml"
     ((WpfApp1.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 8 "..\..\..\MainWindow.xaml"
     ((WpfApp1.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);
     
     #line default
     #line hidden
     
     #line 8 "..\..\..\MainWindow.xaml"
     ((WpfApp1.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);
     
     #line default
     #line hidden
     return;
     case 2:
     this.menustrip = ((System.Windows.Controls.Menu)(target));
     return;
     case 3:
     this.open1 = ((System.Windows.Controls.MenuItem)(target));
     
     #line 17 "..\..\..\MainWindow.xaml"
     this.open1.Click += new System.Windows.RoutedEventHandler(this.Open1_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.equset = ((System.Windows.Controls.MenuItem)(target));
     
     #line 20 "..\..\..\MainWindow.xaml"
     this.equset.Click += new System.Windows.RoutedEventHandler(this.Equset_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.reset = ((System.Windows.Controls.MenuItem)(target));
     
     #line 23 "..\..\..\MainWindow.xaml"
     this.reset.Click += new System.Windows.RoutedEventHandler(this.Reset_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.DataExpert = ((System.Windows.Controls.MenuItem)(target));
     
     #line 25 "..\..\..\MainWindow.xaml"
     this.DataExpert.Click += new System.Windows.RoutedEventHandler(this.DataExpert_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.StopMotor = ((System.Windows.Controls.MenuItem)(target));
     
     #line 26 "..\..\..\MainWindow.xaml"
     this.StopMotor.Click += new System.Windows.RoutedEventHandler(this.StopMotor_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.dataGridView1 = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 9:
     this.test = ((WpfApp1.ButtonEx)(target));
     return;
     case 10:
     this.pause3 = ((WpfApp1.ButtonEx)(target));
     return;
     case 11:
     this.si = ((WpfApp1.ButtonEx)(target));
     return;
     case 12:
     this.CheckBox1 = ((System.Windows.Controls.CheckBox)(target));
     
     #line 234 "..\..\..\MainWindow.xaml"
     this.CheckBox1.Click += new System.Windows.RoutedEventHandler(this.CheckBox_Click);
     
     #line default
     #line hidden
     return;
     case 13:
     this.ErrBox = ((System.Windows.Controls.ListBox)(target));
     return;
     case 14:
     this.MODEL = ((System.Windows.Controls.Label)(target));
     return;
     case 15:
     this.Statue = ((System.Windows.Controls.Label)(target));
     return;
     case 16:
     this.snbox2 = ((System.Windows.Controls.TextBox)(target));
     return;
     case 17:
     this.STOP = ((WpfApp1.ButtonEx)(target));
     return;
     case 18:
     this.list1 = ((System.Windows.Controls.ListBox)(target));
     return;
     case 19:
     this.Time = ((System.Windows.Controls.Label)(target));
     return;
     }
     this._contentLoaded = true;
 }
コード例 #45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.createMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

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

            #line 18 "..\..\MainWindow.xaml"
                this.openMenuItem.Click += new System.Windows.RoutedEventHandler(this.OpenMenuItemClick);

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\MainWindow.xaml"
                this.saveMenuItem.Click += new System.Windows.RoutedEventHandler(this.SaveMenuItemClick);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 8:
                this.richTextBox = ((System.Windows.Controls.RichTextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #46
0
ファイル: MainWindow.g.i.cs プロジェクト: llenroc/MobiGuide
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

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

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

            #line 12 "..\..\MainWindow.xaml"
                this.AddNewUserMenuItem.Click += new System.Windows.RoutedEventHandler(this.AddNewUserMenuItem_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

            case 12:
                this.nameTxtBlock = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindowMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.logoffMenuItem = ((System.Windows.Controls.MenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 6:
                this.tabControl1 = ((System.Windows.Controls.TabControl)(target));
                return;

            case 7:
                this.student_tab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 8:
                this.grdStudentTab = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

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

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

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

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

            #line default
            #line hidden
                return;

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

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

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

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

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

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

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

            #line default
            #line hidden
                return;

            case 21:
                this.studentSearch_DataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 43 "..\..\..\MainWindow.xaml"
                this.studentSearch_DataGrid.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.StudentSearch_DataGrid_OnMouseDoubleClick);

            #line default
            #line hidden

            #line 44 "..\..\..\MainWindow.xaml"
                this.studentSearch_DataGrid.AutoGeneratingColumn += new System.EventHandler <System.Windows.Controls.DataGridAutoGeneratingColumnEventArgs>(this.studentSearch_DataGrid_AutoGeneratingColumn);

            #line default
            #line hidden
                return;

            case 22:
                this.studentSearch_ContextMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 23:

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

            #line default
            #line hidden
                return;

            case 24:

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

            #line default
            #line hidden
                return;

            case 25:

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

            #line default
            #line hidden
                return;

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

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

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

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

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

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

            case 32:
                this.serviceType_CBX = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            case 35:
                this.semester_CBX = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

            case 41:
                this.agency_tab = ((System.Windows.Controls.TabItem)(target));
                return;

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

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

            case 44:
                this.agencyCoordinatorName_LBL = ((System.Windows.Controls.Label)(target));
                return;

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

            case 46:
                this.agencyPhone_LBL = ((System.Windows.Controls.Label)(target));
                return;

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

            case 48:
                this.agencyAddressCity_LBL = ((System.Windows.Controls.Label)(target));
                return;

            case 49:
                this.agencyAddressState_LBL = ((System.Windows.Controls.Label)(target));
                return;

            case 50:
                this.agencyAddressZipcode_LBL = ((System.Windows.Controls.Label)(target));
                return;

            case 51:
                this.agencyWebsite_LBL = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 54:
                this.agencyRating_TB = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 56:
                this.agencyCoordinatorName_TB = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 58:
                this.agencyPhone_TB = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

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

            case 63:
                this.agencySearch_DataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 110 "..\..\..\MainWindow.xaml"
                this.agencySearch_DataGrid.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.AgencySearch_DataGrid_OnMouseDoubleClick);

            #line default
            #line hidden
                return;

            case 64:
                this.agencySearch_ContextMenu = ((System.Windows.Controls.ContextMenu)(target));
                return;

            case 65:

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

            #line default
            #line hidden
                return;

            case 66:

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

            #line default
            #line hidden
                return;

            case 67:

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

            #line default
            #line hidden
                return;

            case 68:
                this.agencySearch_BTN = ((System.Windows.Controls.Button)(target));

            #line 119 "..\..\..\MainWindow.xaml"
                this.agencySearch_BTN.Click += new System.Windows.RoutedEventHandler(this.agencySearch_BTN_Click);

            #line default
            #line hidden
                return;

            case 69:
                this.newAgencyProfile_BTN = ((System.Windows.Controls.Button)(target));

            #line 120 "..\..\..\MainWindow.xaml"
                this.newAgencyProfile_BTN.Click += new System.Windows.RoutedEventHandler(this.newAgencyProfile_BTN_Click);

            #line default
            #line hidden
                return;

            case 70:
                this.agencyFax_LBL = ((System.Windows.Controls.Label)(target));
                return;

            case 71:
                this.agencyFax_TB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 72:
                this.agencyClear_BTN = ((System.Windows.Controls.Button)(target));

            #line 123 "..\..\..\MainWindow.xaml"
                this.agencyClear_BTN.Click += new System.Windows.RoutedEventHandler(this.agency_clear_BTN_Click);

            #line default
            #line hidden
                return;

            case 73:
                this.faculty_tab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 74:
                this.admin_tab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 75:
                this.grdAminTab = ((System.Windows.Controls.Grid)(target));
                return;

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

            #line 132 "..\..\..\MainWindow.xaml"
                this.saveNewUser_BTN.Click += new System.Windows.RoutedEventHandler(this.saveUser_BTN_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            case 79:
                this.runQuery_BTN = ((System.Windows.Controls.Button)(target));

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

            #line default
            #line hidden
                return;

            case 80:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 81:
                this.label1 = ((System.Windows.Controls.Label)(target));
                return;

            case 82:
                this.totalStudents_TB = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

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

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

            case 87:
                this.totalHours_TB = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 89:
                this.avgHoursStudent_TB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 90:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 91:
                this.courseCount_TB = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 94:
                this.label8 = ((System.Windows.Controls.Label)(target));
                return;

            case 95:
                this.coursesByType_Datagrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 96:
                this.dataGrid2 = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 97:
                this.queryYear_TB = ((System.Windows.Controls.TextBox)(target));
                return;

            case 98:
                this.querySemester_ComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 99:
                this.label9 = ((System.Windows.Controls.Label)(target));
                return;

            case 100:
                this.label10 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #48
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.VentanaPrincipal = ((ExtractorFicherosWPF.MainWindow)(target));
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 15:
                this.TextBox_TodoBien = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #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.File = ((System.Windows.Controls.MenuItem)(target));
                return;

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

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

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

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

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

            case 10:
                this.portfolioStackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

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

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

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

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

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

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

            #line 64 "..\..\MainWindow.xaml"
                this.addStockButton.Click += new System.Windows.RoutedEventHandler(this.addStockButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 18:
                this.portfolioDataGrid = ((System.Windows.Controls.DataGrid)(target));

            #line 70 "..\..\MainWindow.xaml"
                this.portfolioDataGrid.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.portfolioDataGrid_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

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

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

            #line 89 "..\..\MainWindow.xaml"
                this.livedataComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.livedataComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 23:
                this.livedataChart = ((CitiZen_TradingApp.Livedata)(target));
                return;

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

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

            case 26:
                this.strategyHeader = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 27:
                this.strategyStockComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 113 "..\..\MainWindow.xaml"
                this.strategyStockComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.strategyStockComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 28:

            #line 116 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            #line 129 "..\..\MainWindow.xaml"
                this.thresholdTextBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden
                return;

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

            #line 131 "..\..\MainWindow.xaml"
                this.volumeTextBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden
                return;

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

            #line 133 "..\..\MainWindow.xaml"
                this.longMATextBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden
                return;

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

            #line 135 "..\..\MainWindow.xaml"
                this.shortMATextBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden
                return;

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

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

            #line 141 "..\..\MainWindow.xaml"
                this.activateTwoMAButton.Click += new System.Windows.RoutedEventHandler(this.activateTwoMAButton_Click);

            #line default
            #line hidden
                return;

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

            #line 142 "..\..\MainWindow.xaml"
                this.pauseResumeTwoMAButton.Click += new System.Windows.RoutedEventHandler(this.pauseResumeTwoMAButton_Click);

            #line default
            #line hidden
                return;

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

            #line 143 "..\..\MainWindow.xaml"
                this.deactivateTwoMAButton.Click += new System.Windows.RoutedEventHandler(this.deactivateTwoMAButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line 155 "..\..\MainWindow.xaml"
                this.thresholdBBTextBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden
                return;

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

            #line 157 "..\..\MainWindow.xaml"
                this.volumeBBTextBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden
                return;

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

            #line 159 "..\..\MainWindow.xaml"
                this.movingAvgBBTextBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden
                return;

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

            #line 161 "..\..\MainWindow.xaml"
                this.stdDevBBTextBox.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.TextBox_PreviewTextInput);

            #line default
            #line hidden
                return;

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

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

            #line 167 "..\..\MainWindow.xaml"
                this.activateBBButton.Click += new System.Windows.RoutedEventHandler(this.activateBBButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 169 "..\..\MainWindow.xaml"
                this.deactivateBBButton.Click += new System.Windows.RoutedEventHandler(this.deactivateBBButton_Click);

            #line default
            #line hidden
                return;

            case 47:
                this.ordersDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 48:
                this.buySellColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

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

            case 50:
                this.twoMAStrategyComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 215 "..\..\MainWindow.xaml"
                this.twoMAStrategyComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.twoMAStrategyComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 51:
                this.selectedStrategyLabel = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 54:
                this.twoMAChart = ((CitiZen_TradingApp.TwoMAView)(target));
                return;

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

            case 56:
                this.bBStrategyComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 234 "..\..\MainWindow.xaml"
                this.bBStrategyComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.bBStrategyComboBox_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

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

            case 60:
                this.bollingerBandsChart = ((CitiZen_TradingApp.BollingerBandsView)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #50
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.txtNome = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 13 "..\..\Doador.xaml"
                this.txtCpf.LostFocus += new System.Windows.RoutedEventHandler(this.txtCpf_LostFocus);

            #line default
            #line hidden

            #line 13 "..\..\Doador.xaml"
                this.txtCpf.GotFocus += new System.Windows.RoutedEventHandler(this.txtCpf_GotFocus);

            #line default
            #line hidden

            #line 13 "..\..\Doador.xaml"
                this.txtCpf.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txtCpf_PreviewTextInput);

            #line default
            #line hidden
                return;

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

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

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

            #line 49 "..\..\Doador.xaml"
                this.btnCadastrar.Click += new System.Windows.RoutedEventHandler(this.btnCadastrar_Click);

            #line default
            #line hidden
                return;

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

            #line 50 "..\..\Doador.xaml"
                this.btnLimpar.Click += new System.Windows.RoutedEventHandler(this.btnLimpar_Click);

            #line default
            #line hidden
                return;

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

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

            #line 53 "..\..\Doador.xaml"
                this.miRemedio.Click += new System.Windows.RoutedEventHandler(this.miRemedio_Click);

            #line default
            #line hidden
                return;

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

            #line 54 "..\..\Doador.xaml"
                this.miDoador.Click += new System.Windows.RoutedEventHandler(this.miDoador_Click);

            #line default
            #line hidden
                return;

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

            #line 55 "..\..\Doador.xaml"
                this.miInstituicao.Click += new System.Windows.RoutedEventHandler(this.miInstituicao_Click);

            #line default
            #line hidden
                return;

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

            #line 59 "..\..\Doador.xaml"
                this.miConsultar.Click += new System.Windows.RoutedEventHandler(this.miConsultar_Click);

            #line default
            #line hidden
                return;

            case 12:

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

            #line default
            #line hidden
                return;

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

            #line 63 "..\..\Doador.xaml"
                this.btnSair.Click += new System.Windows.RoutedEventHandler(this.btnSair_Click);

            #line default
            #line hidden
                return;

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

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

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

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

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

            #line 69 "..\..\Doador.xaml"
                this.txtTelefone.LostFocus += new System.Windows.RoutedEventHandler(this.txtTelefone_LostFocus);

            #line default
            #line hidden

            #line 69 "..\..\Doador.xaml"
                this.txtTelefone.GotFocus += new System.Windows.RoutedEventHandler(this.txtTelefone_GotFocus);

            #line default
            #line hidden

            #line 69 "..\..\Doador.xaml"
                this.txtTelefone.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txtTelefone_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 19:
                this.dgDoador = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            #line 82 "..\..\Doador.xaml"
                this.btnPesquisar.Click += new System.Windows.RoutedEventHandler(this.btnPesquisar_Click);

            #line default
            #line hidden
                return;

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

            #line 83 "..\..\Doador.xaml"
                this.txtPesquisar.GotFocus += new System.Windows.RoutedEventHandler(this.txtPesquisar_GotFocus);

            #line default
            #line hidden

            #line 83 "..\..\Doador.xaml"
                this.txtPesquisar.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txtPesquisar_PreviewTextInput);

            #line default
            #line hidden
                return;

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

            #line 84 "..\..\Doador.xaml"
                this.btnAtualizar.Click += new System.Windows.RoutedEventHandler(this.btnAtualizar_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #51
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menu1 = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.menuOpenEncrypyFile = ((System.Windows.Controls.MenuItem)(target));

            #line 21 "..\..\..\..\View\WinSiemens.xaml"
                this.menuOpenEncrypyFile.Click += new System.Windows.RoutedEventHandler(this.menuOpenEncrypyFile_Click);

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\..\..\View\WinSiemens.xaml"
                this.menuOpenDecrypyFile.Click += new System.Windows.RoutedEventHandler(this.menuOpenDecrypyFile_Click);

            #line default
            #line hidden
                return;

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

            #line 41 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification1.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification1_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 42 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification1Bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification1Bkp_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 46 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification2.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification2_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 47 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification2Bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification2Bkp_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 51 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification3.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification3_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 52 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification3Bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification3Bkp_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 56 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification4.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification4_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 57 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification4Bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification4Bkp_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 61 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification5.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification5_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 62 "..\..\..\..\View\WinSiemens.xaml"
                this.tbKeyIdentification5Bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification5Bkp_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 66 "..\..\..\..\View\WinSiemens.xaml"
                this.tbPin.GotFocus += new System.Windows.RoutedEventHandler(this.tbPin_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 67 "..\..\..\..\View\WinSiemens.xaml"
                this.tbPinBkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbPinBkp_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 71 "..\..\..\..\View\WinSiemens.xaml"
                this.tbSecretKey.GotFocus += new System.Windows.RoutedEventHandler(this.tbSecretKey_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 72 "..\..\..\..\View\WinSiemens.xaml"
                this.tbSecretKeyBkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbSecretKeyBkp_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 77 "..\..\..\..\View\WinSiemens.xaml"
                this.tbManufacturer.GotFocus += new System.Windows.RoutedEventHandler(this.tbManufacturer_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 78 "..\..\..\..\View\WinSiemens.xaml"
                this.tbManufacturerASCII.GotFocus += new System.Windows.RoutedEventHandler(this.tbManufacturerASCII_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 81 "..\..\..\..\View\WinSiemens.xaml"
                this.tbManufacturerBkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbManufacturerBkp_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 82 "..\..\..\..\View\WinSiemens.xaml"
                this.tbManufacturerASCIIBkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbManufacturerASCIIBkp_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 88 "..\..\..\..\View\WinSiemens.xaml"
                this.tbErrCode1.GotFocus += new System.Windows.RoutedEventHandler(this.tbErrCode1_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 92 "..\..\..\..\View\WinSiemens.xaml"
                this.tbErrCode3.GotFocus += new System.Windows.RoutedEventHandler(this.tbErrCode3_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 99 "..\..\..\..\View\WinSiemens.xaml"
                this.tbErrCode2.GotFocus += new System.Windows.RoutedEventHandler(this.tbErrCode2_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 103 "..\..\..\..\View\WinSiemens.xaml"
                this.tbErrCode4.GotFocus += new System.Windows.RoutedEventHandler(this.tbErrCode4_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 111 "..\..\..\..\View\WinSiemens.xaml"
                this.tbImmobiliserCode1.GotFocus += new System.Windows.RoutedEventHandler(this.tbImmobiliserCode1_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 112 "..\..\..\..\View\WinSiemens.xaml"
                this.tbImmobiliserCode1ASCII.GotFocus += new System.Windows.RoutedEventHandler(this.tbImmobiliserCode1ASCII_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 118 "..\..\..\..\View\WinSiemens.xaml"
                this.tbImmobiliserCode2.GotFocus += new System.Windows.RoutedEventHandler(this.tbImmobiliserCode2_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 119 "..\..\..\..\View\WinSiemens.xaml"
                this.tbImmobiliserCode2ASCII.GotFocus += new System.Windows.RoutedEventHandler(this.tbImmobiliserCode2ASCII_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 126 "..\..\..\..\View\WinSiemens.xaml"
                this.tbField1.GotFocus += new System.Windows.RoutedEventHandler(this.tbField1_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 130 "..\..\..\..\View\WinSiemens.xaml"
                this.tbField2.GotFocus += new System.Windows.RoutedEventHandler(this.tbField2_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 137 "..\..\..\..\View\WinSiemens.xaml"
                this.tbvin.GotFocus += new System.Windows.RoutedEventHandler(this.tbvin_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 138 "..\..\..\..\View\WinSiemens.xaml"
                this.tbvinASCII.GotFocus += new System.Windows.RoutedEventHandler(this.tbvinASCII_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 144 "..\..\..\..\View\WinSiemens.xaml"
                this.tbFactoryDate.GotFocus += new System.Windows.RoutedEventHandler(this.tbFactoryDate_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 145 "..\..\..\..\View\WinSiemens.xaml"
                this.tbFactoryDateASCII.GotFocus += new System.Windows.RoutedEventHandler(this.tbFactoryDateASCII_GotFocus);

            #line default
            #line hidden
                return;

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

            #line 150 "..\..\..\..\View\WinSiemens.xaml"
                this.tbSoftwareVersion.GotFocus += new System.Windows.RoutedEventHandler(this.tbSoftwareVersion_GotFocus);

            #line default
            #line hidden
                return;

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

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

            #line 160 "..\..\..\..\View\WinSiemens.xaml"
                this.btnFix.Click += new System.Windows.RoutedEventHandler(this.btnFix_Click);

            #line default
            #line hidden
                return;

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

            #line 161 "..\..\..\..\View\WinSiemens.xaml"
                this.btnAlter.Click += new System.Windows.RoutedEventHandler(this.btnAlter_Click);

            #line default
            #line hidden
                return;

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

            #line 162 "..\..\..\..\View\WinSiemens.xaml"
                this.btnExportDecrypt.Click += new System.Windows.RoutedEventHandler(this.btnExportDecrypt_Click);

            #line default
            #line hidden
                return;

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

            #line 163 "..\..\..\..\View\WinSiemens.xaml"
                this.btnExportEncrypt.Click += new System.Windows.RoutedEventHandler(this.btnExportEncrypt_Click);

            #line default
            #line hidden
                return;

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

            case 43:
                this.uchbDecrypy = ((carkey.UC.UCHexBox)(target));
                return;

            case 44:
                this.uchbEncrypy = ((carkey.UC.UCHexBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #52
0
        public static System.Windows.Window Initialize(Window model)
        {
            var dispatcher = Fusion.Application.MainThread;

            var windowSubject = new BehaviorSubject <Optional <WindowWithOverlays> >(Optional.None());

            var menu = new System.Windows.Controls.Menu();

            DockPanel.SetDock(menu, Dock.Top);

            var contentContainer = new Canvas()
            {
                // This is needed for native overlays to work
                ClipToBounds = true,
            };
            var panel = new DockPanel()
            {
                LastChildFill = true,
                Children      =
                {
                    menu,
                    contentContainer
                }
            };

            var ret = new FancyWindow(model.Style == WindowStyle.Regular || model.Style == WindowStyle.Fat)
            {
                Content = panel
            };

            var focused = new Subject <Unit>();

            model.Focused.Execute.Sample(focused).Subscribe(c => c());
            ret.Activated += (sender, args) => focused.OnNext(Unit.Default);

            var availableSize = DataBinding
                                .ObservableFromNativeEvent <SizeChangedEventArgs>(contentContainer, "SizeChanged")
                                .Select(e => e.NewSize.ToFusion())
                                .Replay(1);

            availableSize.Connect();

            var content = model.Content;
            //.SetNativeWindow(windowSubject)
            //.SetDensity(ret.DensityFactor);
            var transize = availableSize.Transpose();

            content.Mount(
                new MountLocation.Mutable
            {
                AvailableSize = transize,
                NativeFrame   = ObservableMath.RectangleWithSize(transize),
                IsRooted      = Observable
                                .FromEventPattern <DependencyPropertyChangedEventArgs>(ret, "IsVisibleChanged")
                                .Select(arg => ret.IsVisible)
                                .Replay(1).RefCount(),
            });

            content.BindNativeProperty(dispatcher, "Background", model.Background, color =>
                                       menu.Background = ret.Background = new SolidColorBrush(color.ToColor()));

            content.BindNativeProperty(dispatcher, "Foreground", model.Foreground, color =>
                                       menu.Foreground = ret.Foreground = new SolidColorBrush(color.ToColor()));

            content.BindNativeProperty(dispatcher, "BorderBrush", model.Border.Brush, color =>
                                       ret.BorderBrush = new SolidColorBrush(color.ToColor()));

            content.BindNativeProperty(dispatcher, "BorderThickness", model.Border.Thickness, thickness =>
                                       ret.BorderThickness = new System.Windows.Thickness(thickness));


            Fusion.Application.MainThread
            .InvokeAsync(() => content.NativeHandle)
            .ToObservable().OfType <UIElement>()
            .Subscribe(nativeContent =>
                       contentContainer.Children.Add(nativeContent));

            var windowState =
                model.State
                .Or(Property.Default <Optional <WindowState> >())
                .Or(WindowState.Normal)
                .AutoInvalidate()
                .PreventFeedback();

            windowState.Subscribe(state => dispatcher.InvokeAsync(() =>
                                                                  ret.WindowState = state == WindowState.Normal ? System.Windows.WindowState.Normal : System.Windows.WindowState.Maximized));

            ret.StateChanged += (sender, args) =>
                                windowState.Write(
                ret.WindowState == System.Windows.WindowState.Maximized
                                                ? WindowState.Maximized
                                                : WindowState.Normal);

            model.Size.Do(
                maybeSize =>
            {
                var size = maybeSize
                           .Or(Size.Create <Points>(Double.NaN, Double.NaN))
                           .AutoInvalidate(TimeSpan.FromSeconds(2))
                           .PreventFeedback();

                bool setByUs = false;

                size.Subscribe(s => dispatcher.Schedule(() =>
                {
                    setByUs       = true;
                    ret.Width     = (float)s.Width;
                    var newHeight = s.Height + (TitleBarHeight + menu.ActualHeight);
                    ret.Height    = (float)newHeight;
                    setByUs       = false;
                }));

                ret.SizeChanged += (s, a) =>
                {
                    if (setByUs)
                    {
                        return;
                    }

                    var contentSize = new Size <Points>(a.NewSize.Width, a.NewSize.Height - (TitleBarHeight + menu.ActualHeight));
                    size.Write(contentSize);
                };
            });

            model.Position.Do(
                maybePosition =>
            {
                var pos = maybePosition
                          .Or(new Point <Points>(double.NaN, double.NaN))
                          .AutoInvalidate(TimeSpan.FromSeconds(2))
                          .PreventFeedback();
                // TODO: ConnectWhile() ?

                bool setByUs = false;

                pos.Subscribe(p => dispatcher.Schedule(() =>
                {
                    setByUs  = true;
                    ret.Left = p.X;
                    ret.Top  = p.Y;
                    setByUs  = false;
                }));

                Fusion.Application.MainThread.Schedule(() =>
                {
                    ret.LocationChanged += (s, args) =>
                    {
                        if (setByUs)
                        {
                            return;
                        }

                        var sender = s as FancyWindow;
                        if (sender == null)
                        {
                            return;
                        }

                        pos.Write(new Point <Points>(sender.Left, sender.Top));
                    };
                });
            });

            model.TopMost.Do(topMost =>
                             topMost.Subscribe(t => dispatcher.Schedule(() =>
            {
                ret.Topmost = t;
                ret.Show();
            })));

            model.Size.Do(s =>
                          s.IsReadOnly.Subscribe(isReadOnly => dispatcher.Schedule(() =>
            {
                if (isReadOnly)
                {
                    ret.ResizeMode            = ResizeMode.NoResize;
                    ret.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                }
            })));


            var closed = new Subject <Unit>();

            ret.Closed += (s, a) => closed.OnNext(Unit.Default);
            model.Closed.Execute.Sample(closed).Subscribe(e => e());

            model.Title.Subscribe(title => dispatcher.Schedule(() =>
            {
                ret.Title = model.HideTitle ? "" : title;
            }));

            model.Menu.Do(m => WindowsMenuBuilder.Populate(m, menu, ret, dispatcher));

            DataBinding
            .ObservableFromNativeEvent <EventArgs>(ret, "Loaded")
            .Subscribe(_ => windowSubject.OnNext(ret));

            DataBinding
            .ObservableFromNativeEvent <EventArgs>(ret, "LayoutUpdated")
            .Select(a => PresentationSource.FromVisual(ret))
            .DistinctUntilChanged()
            .Subscribe(
                presentation =>
            {
                if (presentation == null)
                {
                    return;
                }

                var winHandle = new WindowInteropHelper(ret).Handle;
                WindowPlacement.SetPlacement(winHandle, WindowPlacement.GetPlacement(winHandle));
            });

            ret.Closing += (s, a) =>
            {
                model.Closed.Execute.Take(1).Subscribe(e => e());
                ExitIfLastVisibleWindow(ret);
            };

            ret.IsVisibleChanged += (s, a) =>
            {
                if (ret.IsVisible == false)
                {
                    ExitIfLastVisibleWindow(ret);
                }
            };

            return(ret);
        }
コード例 #53
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.grid_Main = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

            #line 9 "..\..\ResultDB.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_2);

            #line default
            #line hidden
                return;

            case 5:

            #line 10 "..\..\ResultDB.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_3);

            #line default
            #line hidden
                return;

            case 6:

            #line 12 "..\..\ResultDB.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_4);

            #line default
            #line hidden
                return;

            case 7:

            #line 13 "..\..\ResultDB.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_5);

            #line default
            #line hidden
                return;

            case 8:

            #line 15 "..\..\ResultDB.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_1);

            #line default
            #line hidden
                return;

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

            #line 18 "..\..\ResultDB.xaml"
                this.cmb_box_dept.Loaded += new System.Windows.RoutedEventHandler(this.ComboBox_Loaded);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\ResultDB.xaml"
                this.cmb_box_year.Loaded += new System.Windows.RoutedEventHandler(this.cmb_box_year_Loaded);

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden
                return;

            case 12:
                this.dept_label = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #54
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\MainWindow.xaml"
                ((TextEditor.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Align_TextBox);

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

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

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\..\MainWindow.xaml"
                this.TextWrappingBtn.Click += new System.Windows.RoutedEventHandler(this.TextWrapping_Click);

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 11:

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

            #line default
            #line hidden
                return;

            case 12:
                this.textBox = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #55
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

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

            #line 11 "..\..\..\Main\wndMain.xaml"
                this.searchBtn.Click += new System.Windows.RoutedEventHandler(this.searchBtn_Click);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            case 17:
                this.itemsCB = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 18:
                this.itemsDG = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            case 20:
                this.itemLbl = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #56
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.wndLocalizationInfo = ((WpfLocalizationResx.LocalizationInfo)(target));
                return;

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

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

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

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

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

            #line 27 "..\..\LocalizationInfo.xaml"
                this.mnuExit.Click += new System.Windows.RoutedEventHandler(this.ButtonHandler);

            #line default
            #line hidden
                return;

            case 7:
                this.ToolbarMain = ((System.Windows.Controls.ToolBar)(target));
                return;

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

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

            #line 49 "..\..\LocalizationInfo.xaml"
                this.lstLanguageSelections.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstLanguageSelections_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

            #line 61 "..\..\LocalizationInfo.xaml"
                this.lstThemeSelections.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lstThemeSelections_SelectionChanged);

            #line default
            #line hidden
                return;

            case 12:
                this.gbValueInput = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 13:
                this.Grid_2 = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            #line 81 "..\..\LocalizationInfo.xaml"
                this.txtNumber.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.txtNumber_TextChanged);

            #line default
            #line hidden
                return;

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

            case 17:
                this.txtDate = ((Microsoft.Windows.Controls.DatePicker)(target));
                return;

            case 18:
                this.gbLocaleInformation = ((System.Windows.Controls.GroupBox)(target));
                return;

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

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

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

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

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

            case 24:
                this.lblNativeNameValue = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 25:
                this.lblLocaleDateName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 26:
                this.lblLocaleDateValue = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 27:
                this.lblLocaleNumberName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 28:
                this.lblLocaleNumberValue = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 30:
                this.chkRightToLeft = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 31:
                this.grpBoundValues = ((System.Windows.Controls.GroupBox)(target));
                return;

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

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

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

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

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

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

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

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

            case 40:
                this.imgFlag = ((System.Windows.Controls.Image)(target));
                return;

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

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

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

            #line 199 "..\..\LocalizationInfo.xaml"
                this.btnExit.Click += new System.Windows.RoutedEventHandler(this.ButtonHandler);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #57
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((Exam_3.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.mainWindow.Loaded += new System.Windows.RoutedEventHandler(this.mainWindow_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

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

            case 8:
                this.listViewScores = ((System.Windows.Controls.ListView)(target));

            #line 21 "..\..\MainWindow.xaml"
                this.listViewScores.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.listViewScores_SelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.mainMenu = ((System.Windows.Controls.Menu)(target));
                return;

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #58
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.uc_RdsClientMainWindow = ((RdsClient.MainWindow)(target));

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

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                this.uc_RdsClientMainWindow.Activated += new System.EventHandler(this.Window_Activated);

            #line default
            #line hidden

            #line 9 "..\..\MainWindow.xaml"
                this.uc_RdsClientMainWindow.Loaded += new System.Windows.RoutedEventHandler(this.uc_RdsClientMainWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:
                this.uc_MainTabControl = ((System.Windows.Controls.TabControl)(target));
                return;

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

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

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

            #line default
            #line hidden
                return;

            case 7:
                this.uc_Sessions = ((System.Windows.Controls.ListView)(target));

            #line 157 "..\..\MainWindow.xaml"
                this.uc_Sessions.ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.uc_Sessions_ContextMenuOpening);

            #line default
            #line hidden

            #line 158 "..\..\MainWindow.xaml"
                this.uc_Sessions.Loaded += new System.Windows.RoutedEventHandler(this.uc_Sessions_Loaded);

            #line default
            #line hidden

            #line 158 "..\..\MainWindow.xaml"
                this.uc_Sessions.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.uc_Sessions_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.uc_SessionsGridView = ((System.Windows.Controls.GridView)(target));
                return;

            case 10:
                this.uc_SessionProcesses = ((System.Windows.Controls.ListView)(target));
                return;

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

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

            #line 242 "..\..\MainWindow.xaml"
                this.uc_UserfreshButton.Click += new System.Windows.RoutedEventHandler(this.uc_UserSessionsRefreshButton_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.uc_Users = ((System.Windows.Controls.ListView)(target));

            #line 262 "..\..\MainWindow.xaml"
                this.uc_Users.ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.uc_Sessions_ContextMenuOpening);

            #line default
            #line hidden

            #line 263 "..\..\MainWindow.xaml"
                this.uc_Users.Loaded += new System.Windows.RoutedEventHandler(this.uc_Users_Loaded);

            #line default
            #line hidden

            #line 263 "..\..\MainWindow.xaml"
                this.uc_Users.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.uc_Users_SelectionChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.uc_UsersGridView = ((System.Windows.Controls.GridView)(target));
                return;

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

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

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

            #line 298 "..\..\MainWindow.xaml"
                this.uc_MenuItem_SaveAppState.Click += new System.Windows.RoutedEventHandler(this.uc_MenuItem_SaveAppState_Click);

            #line default
            #line hidden
                return;

            case 18:

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

            #line default
            #line hidden
                return;

            case 19:

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

            #line default
            #line hidden
                return;

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

            #line 303 "..\..\MainWindow.xaml"
                this.uc_MenuItem_ManageRemoteApps.Click += new System.Windows.RoutedEventHandler(this.uc_MenuItem_ManageRemoteApps_Click);

            #line default
            #line hidden
                return;

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

            #line 304 "..\..\MainWindow.xaml"
                this.uc_MenuItem_AddRemoteAppConnection.Click += new System.Windows.RoutedEventHandler(this.uc_MenuItem_AddRemoteAppConnection_Click);

            #line default
            #line hidden
                return;

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

            #line 305 "..\..\MainWindow.xaml"
                this.uc_MenuItem_ClearUserRdsConnections.Click += new System.Windows.RoutedEventHandler(this.uc_MenuItem_ClearUserRdsConnections_Click);

            #line default
            #line hidden
                return;

            case 23:

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

            case 25:

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

            #line default
            #line hidden
                return;

            case 26:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #59
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.ProjectLabel = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden
                return;

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

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

            case 8:
                this.STKDataXAML = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 9:

            #line 53 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.BindingReassign_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 54 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.BindingDelete_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 15:
                this.ValiUnit = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 16:
                this.projectTree = ((System.Windows.Controls.TreeView)(target));

            #line 163 "..\..\MainWindow.xaml"
                this.projectTree.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.ProjectTree_SelectedItemChanged);

            #line default
            #line hidden
                return;

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

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

            #line 195 "..\..\MainWindow.xaml"
                this.RefreshButton.Click += new System.Windows.RoutedEventHandler(this.Refresh_Click);

            #line default
            #line hidden
                return;

            case 20:

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

            #line default
            #line hidden
                return;

            case 21:

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

            #line default
            #line hidden
                return;

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

            #line 199 "..\..\MainWindow.xaml"
                this.SelectValiButton.Click += new System.Windows.RoutedEventHandler(this.SelectButton_Click);

            #line default
            #line hidden
                return;

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

            #line 200 "..\..\MainWindow.xaml"
                this.CancelSelectButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.LoadProject_Msg = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 216 "..\..\MainWindow.xaml"
                this.RefreshSTK.Click += new System.Windows.RoutedEventHandler(this.RefreshSTK_Click);

            #line default
            #line hidden
                return;

            case 26:

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

            #line default
            #line hidden
                return;

            case 27:
                this.DPTree = ((System.Windows.Controls.TreeView)(target));
                return;

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

            case 30:
                this.valiTree_XAML = ((System.Windows.Controls.TreeView)(target));
                return;

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

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

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

            case 35:

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

            #line default
            #line hidden
                return;

            case 36:

            #line 288 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.UseObjectTime_Click);

            #line default
            #line hidden
                return;

            case 37:

            #line 289 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.RadioButton)(target)).Checked += new System.Windows.RoutedEventHandler(this.SpecifyTime_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 41:

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

            #line default
            #line hidden
                return;

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

            #line 298 "..\..\MainWindow.xaml"
                this.valispace_DataSet.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.Valispace_DataSet_TextChanged);

            #line default
            #line hidden
                return;

            case 43:

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

            #line default
            #line hidden
                return;

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

            case 45:
                this.DSBindingGridXAML = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 46:

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

            #line default
            #line hidden
                return;

            case 47:

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

            #line default
            #line hidden
                return;

            case 48:
                this.DSCol1 = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 49:
                this.DSCol2 = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 50:
                this.ValiDataset = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

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

            #line 365 "..\..\MainWindow.xaml"
                this.GenerateUpdateBtn.Click += new System.Windows.RoutedEventHandler(this.GenUpd_Btn_click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #60
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.split = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 3:
                this.help = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 31 "..\..\acceuil.xaml"
                this.help.Click += new System.Windows.RoutedEventHandler(this.help_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.about = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 36 "..\..\acceuil.xaml"
                this.about.Click += new System.Windows.RoutedEventHandler(this.about_Click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.materialButton = ((Xceed.Wpf.Toolkit.MaterialButton)(target));
                return;

            case 7:
                this.planning = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 47 "..\..\acceuil.xaml"
                this.planning.Click += new System.Windows.RoutedEventHandler(this.planning_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.activities = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 49 "..\..\acceuil.xaml"
                this.activities.Click += new System.Windows.RoutedEventHandler(this.activ_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.etat = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 50 "..\..\acceuil.xaml"
                this.etat.Click += new System.Windows.RoutedEventHandler(this.etat_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.@event = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 51 "..\..\acceuil.xaml"
                [email protected] += new System.Windows.RoutedEventHandler(this.event_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.docs = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 52 "..\..\acceuil.xaml"
                this.docs.Click += new System.Windows.RoutedEventHandler(this.docs_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.materialButton_Copy5 = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 53 "..\..\acceuil.xaml"
                this.materialButton_Copy5.Click += new System.Windows.RoutedEventHandler(this.materialButton_Copy4_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.parameteres = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 54 "..\..\acceuil.xaml"
                this.parameteres.Click += new System.Windows.RoutedEventHandler(this.parameter_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.frame = ((System.Windows.Controls.Frame)(target));

            #line 56 "..\..\acceuil.xaml"
                this.frame.Navigated += new System.Windows.Navigation.NavigatedEventHandler(this.frame_Navigated);

            #line default
            #line hidden
                return;

            case 15:
                this.diconect = ((Xceed.Wpf.Toolkit.MaterialButton)(target));

            #line 59 "..\..\acceuil.xaml"
                this.diconect.Click += new System.Windows.RoutedEventHandler(this.disconnect_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }