void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 12 "..\..\Window1.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.bExecuted); #line default #line hidden return; case 2: this.MenuBalk = ((System.Windows.Controls.Menu)(target)); return; case 3: this.EditeerBalk = ((System.Windows.Controls.ToolBar)(target)); return; case 4: this.StatusVet = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 5: this.TextBoxVoorbeeld = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.otree = ((System.Windows.Controls.TreeView)(target)); #line 10 "..\..\..\Janelas\WndTree.xaml" this.otree.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.otree_onMouseUp); #line default #line hidden return; case 2: this.lbStatus = ((System.Windows.Controls.Label)(target)); return; case 3: this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 4: this.info = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 22 "..\..\Transponder.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 2: this.AutoUpdateMenuItem = ((System.Windows.Controls.MenuItem)(target)); return; case 3: this.DataOutput = ((System.Windows.Controls.DataGrid)(target)); return; case 4: this.DataOutput2 = ((System.Windows.Controls.DataGrid)(target)); return; case 5: this.LastUpdateStatus = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.StatusBarN = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 2: this.StatusBarI = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 3: this.MenuBar = ((System.Windows.Controls.Menu)(target)); return; case 4: this.MenuFile = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.Help = ((System.Windows.Controls.MenuItem)(target)); return; } this._contentLoaded = true; }
private void AddStatusBarItem(StatusBarItemViewModel statusBarItemViewModel) { var statusbaritem = new System.Windows.Controls.Primitives.StatusBarItem(); // style statusbaritem.Background = new SolidColorBrush(Color.FromRgb(0x18, 0x18, 0x18)); statusbaritem.FontFamily = new FontFamily("Segoe UI Mono"); statusbaritem.FontSize = 12; statusbaritem.Foreground = new SolidColorBrush(Color.FromRgb(0x82, 0x87, 0x90)); statusbaritem.BorderThickness = new System.Windows.Thickness(1); statusbaritem.BorderBrush = new SolidColorBrush(Color.FromRgb(0x82, 0x87, 0x90)); statusbaritem.Margin = new System.Windows.Thickness(2); //statusbaritem.Width = // auto statusbaritem.HorizontalAlignment = System.Windows.HorizontalAlignment.Left; statusbaritem.VerticalAlignment = System.Windows.VerticalAlignment.Center; statusbaritem.Padding = new System.Windows.Thickness(5, 1, 5, 1); statusbaritem.DataContext = statusBarItemViewModel; //statusbaritem.Name = statusBarItemViewModel.Name; statusbaritem.ToolTip = statusBarItemViewModel.Name; //statusbaritem.ItemsSource = toolbarViewModel.ControlItems; statusbaritem.Content = statusBarItemViewModel.Content; _statusBar.Items.Add(statusbaritem); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.browser = ((System.Windows.Controls.WebBrowser)(target)); return; case 2: this.status = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 3: this.buttonBack = ((System.Windows.Controls.Button)(target)); return; case 4: this.buttonForward = ((System.Windows.Controls.Button)(target)); return; case 5: this.buttonHome = ((System.Windows.Controls.Button)(target)); return; case 6: this.Uri = ((System.Windows.Controls.TextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\..\..\Windows\FaceDetectionWindow.xaml" ((FaceRecognition.Windows.FaceDetectionWindow)(target)).Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden return; case 2: this.faceDetectionControl = ((FaceRecognition.Controls.FaceDetectionControl)(target)); return; case 3: this.GoAlgorithmsBtn = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\..\..\Windows\FaceDetectionWindow.xaml" this.GoAlgorithmsBtn.Click += new System.Windows.RoutedEventHandler(this.GoAlgorithmsBtn_Click); #line default #line hidden return; case 4: this.statusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.txtAdress = ((System.Windows.Controls.TextBox)(target)); #line 17 "..\..\..\MainWindow.xaml" this.txtAdress.KeyDown += new System.Windows.Input.KeyEventHandler(this.txtAdress_KeyDown); #line default #line hidden return; case 2: #line 18 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 3: #line 19 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1); #line default #line hidden return; case 4: #line 20 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2); #line default #line hidden return; case 5: #line 21 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_3); #line default #line hidden return; case 6: this.container = ((System.Windows.Controls.ContentControl)(target)); return; case 7: this.stsBar1 = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\Window1.xaml" ((ComputoClient_wpf.Window1)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.lbl_conexion = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 3: this.button = ((System.Windows.Controls.Button)(target)); #line 13 "..\..\Window1.xaml" this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; case 4: this.txt_msg = ((System.Windows.Controls.RichTextBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.path_tb = ((System.Windows.Controls.TextBox)(target)); return; case 2: #line 41 "..\..\TXTDebugWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Browse_Click); #line default #line hidden return; case 3: this.datagrid = ((System.Windows.Controls.DataGrid)(target)); return; case 4: this.statusbar = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 7 "..\..\..\..\Windows\TrainAndTestImagesWindow.xaml" ((FaceRecognition.Windows.TrainAndTestImagesWindow)(target)).Closed += new System.EventHandler(this.Window_Closed); #line default #line hidden return; case 2: this.traingTestFaceControl = ((FaceRecognition.Controls.TrainAndTestFaceControl)(target)); return; case 3: this.GoPreprocBtn = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\..\..\Windows\TrainAndTestImagesWindow.xaml" this.GoPreprocBtn.Click += new System.Windows.RoutedEventHandler(this.GoPreprocBtn_Click); #line default #line hidden return; case 4: this.statusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MenuBar = ((System.Windows.Controls.Menu)(target)); return; case 2: this.MenuFile = ((System.Windows.Controls.MenuItem)(target)); return; case 3: #line 12 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenClick); #line default #line hidden return; case 4: #line 13 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.SaveClick); #line default #line hidden return; case 5: #line 14 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ExitClick); #line default #line hidden return; case 6: this.Help = ((System.Windows.Controls.MenuItem)(target)); return; case 7: #line 17 "..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AboutWindow); #line default #line hidden return; case 8: this.StatusBarI = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mnuEditPlayerAgainstPlayer = ((System.Windows.Controls.MenuItem)(target)); return; case 2: this.mnuEditDesignMode = ((System.Windows.Controls.MenuItem)(target)); return; case 3: this.mnuOptionFlashPiece = ((System.Windows.Controls.MenuItem)(target)); return; case 4: this.mnuOptionPGNNotation = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.m_toolbar = ((SrcChess2.ChessToolBar)(target)); return; case 6: this.m_statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 7: this.m_statusLabelSearchMode = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 8: this.m_statusLabelMove = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 9: this.m_statusLabelPermutation = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 10: this.m_chessCtl = ((SrcChess2.LocalChessBoardControl)(target)); return; case 11: this.m_moveViewer = ((SrcChess2.MoveViewer)(target)); return; case 12: this.m_lostPieceBlack = ((SrcChess2.LostPiecesControl)(target)); return; case 13: this.m_lostPieceWhite = ((SrcChess2.LostPiecesControl)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.StatusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Initializes a new instance of the <see cref="VSInteractiveWindowControl"/> class. /// </summary> public VSInteractiveWindowControl() { this.InitializeComponent(); // Set window look Background = ExecutingBackground; // Add dock panel and status bar DockPanel dockPanel = new DockPanel(); StatusBar statusBar = new StatusBar(); statusBarStatusText = new StatusBarItem(); statusBarStatusText.Content = InitializingStatusText; statusBar.Items.Add(statusBarStatusText); DockPanel.SetDock(statusBar, Dock.Bottom); dockPanel.Children.Add(statusBar); Content = dockPanel; // Add results panel ScrollViewer scrollViewer = new ScrollViewer(); scrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto; scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto; scrollViewer.Margin = new Thickness(5); dockPanel.Children.Add(scrollViewer); resultsPanel = new StackPanel(); resultsPanel.Orientation = Orientation.Vertical; resultsPanel.CanVerticallyScroll = true; resultsPanel.CanHorizontallyScroll = true; scrollViewer.Content = resultsPanel; // Add prompt for text editor var panel = new DockPanel(); resultsPanel.Children.Add(panel); promptBlock = new TextBlock(); promptBlock.FontFamily = new FontFamily("Consolas"); promptBlock.FontSize = 14; promptBlock.Text = ExecutingPrompt; DockPanel.SetDock(promptBlock, Dock.Left); panel.Children.Add(promptBlock); // Add text editor textEditor = new InteractiveCodeEditor(); textEditor.Background = Brushes.Transparent; textEditor.CommandExecuted += TextEditor_CommandExecuted; textEditor.CommandFailed += TextEditor_CommandFailed; textEditor.Executing += TextEditor_Executing; textEditor.CloseRequested += TextEditor_CloseRequested; textEditor.HorizontalScrollBarVisibility = ScrollBarVisibility.Hidden; textEditor.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden; textEditor.TextArea.PreviewKeyDown += TextEditor_PreviewKeyDown; panel.Children.Add(textEditor); MakeEnabled(VSContext.CurrentDebugMode == EnvDTE.dbgDebugMode.dbgBreakMode); VSContext.DebuggerEnteredBreakMode += () => MakeEnabled(true); VSContext.DebuggerEnteredDesignMode += () => MakeEnabled(false); VSContext.DebuggerEnteredRunMode += () => MakeEnabled(false); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.statusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
public UserControl1(CaseObject caseObj) { m_CaseObj = caseObj; InitializeComponent(); CultureResources.registerDataProvider(this); this.Loaded += new RoutedEventHandler(UserControl1_Loaded); InfoDisplayArea.DataContext = m_CaseObj; m_EventRecords = new List<CaseObject.CaseEventRecord>(); listView2.DataContext = m_CaseObj.NewAttachments; m_statusBarItems = new List<StatusBarItem>(); TextBlock caseIdTextBlck = new TextBlock(); // Bind the case id text to the resource file var binding = new Binding("CaseId_Colon"); binding.Source = CultureResources.getDataProvider(); BindingOperations.SetBinding(caseIdTextBlck, TextBlock.TextProperty, binding); TextBlock textBlck = new TextBlock(); textBlck.Text = " " + m_CaseObj.CaseId; // Put the label and the text next side by side in a stack panel StackPanel stackPanel = new StackPanel(); stackPanel.Orientation = Orientation.Horizontal; stackPanel.Children.Add(caseIdTextBlck); stackPanel.Children.Add(textBlck); StatusBarItem item = new StatusBarItem(); item.Content = stackPanel; item.HorizontalAlignment = System.Windows.HorizontalAlignment.Center; item.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Center; m_statusBarItems.Add(item); CultureResources.getDataProvider().DataChanged += new EventHandler(CultureResources_DataChanged); if (caseObj.ResultsList == null || caseObj.ResultsList.Count == 0) { ResultsSectionBorder.Visibility = System.Windows.Visibility.Collapsed; ResultsView.Visibility = System.Windows.Visibility.Collapsed; } else { foreach (result result in caseObj.ResultsList) { ResultItem resultItem = new ResultItem(result); ResultsView.Children.Add(resultItem); } } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MenuBalk = ((System.Windows.Controls.Menu)(target)); return; case 2: this.StatusKaartPath = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 3: this.WensTekst = ((System.Windows.Controls.TextBox)(target)); return; case 4: this.KleurKiezer = ((System.Windows.Controls.Label)(target)); return; case 5: this.comboBoxKleuren = ((System.Windows.Controls.ComboBox)(target)); return; case 6: this.Bal = ((System.Windows.Shapes.Ellipse)(target)); return; case 7: this.Vuilnisbak = ((System.Windows.Controls.Image)(target)); return; case 8: this.LetterType = ((System.Windows.Controls.Label)(target)); return; case 9: this.LettertypeComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 10: this.Grotte = ((System.Windows.Controls.Label)(target)); return; case 11: this.RepeatButtonGroter = ((System.Windows.Controls.Primitives.RepeatButton)(target)); return; case 12: this.RepeatButtonKleiner = ((System.Windows.Controls.Primitives.RepeatButton)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Initializes a new instance of the <see cref="InteractiveWindow"/> class. /// </summary> public InteractiveWindow() { // Set window look Background = ExecutingBackground; ShowInTaskbar = false; Title = "C# Interactive Window"; // Add dock panel and status bar DockPanel dockPanel = new DockPanel(); StatusBar statusBar = new StatusBar(); statusBarStatusText = new StatusBarItem(); statusBarStatusText.Content = InitializingStatusText; statusBar.Items.Add(statusBarStatusText); DockPanel.SetDock(statusBar, Dock.Bottom); dockPanel.Children.Add(statusBar); Content = dockPanel; // Add results panel ScrollViewer scrollViewer = new ScrollViewer(); scrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto; scrollViewer.VerticalScrollBarVisibility = ScrollBarVisibility.Auto; scrollViewer.Margin = new Thickness(5); dockPanel.Children.Add(scrollViewer); resultsPanel = new StackPanel(); resultsPanel.Orientation = Orientation.Vertical; resultsPanel.CanVerticallyScroll = true; resultsPanel.CanHorizontallyScroll = true; scrollViewer.Content = resultsPanel; // Add prompt for text editor var panel = new DockPanel(); resultsPanel.Children.Add(panel); promptBlock = new TextBlock(); promptBlock.FontFamily = new FontFamily("Consolas"); promptBlock.FontSize = 14; promptBlock.Text = ExecutingPrompt; DockPanel.SetDock(promptBlock, Dock.Left); panel.Children.Add(promptBlock); // Add text editor textEditor = new InteractiveCodeEditor(); textEditor.Background = Brushes.Transparent; textEditor.CommandExecuted += TextEditor_CommandExecuted; textEditor.CommandFailed += TextEditor_CommandFailed; textEditor.Executing += TextEditor_Executing; textEditor.CloseRequested += TextEditor_CloseRequested; textEditor.HorizontalScrollBarVisibility = ScrollBarVisibility.Hidden; textEditor.VerticalScrollBarVisibility = ScrollBarVisibility.Hidden; textEditor.TextArea.PreviewKeyDown += TextEditor_PreviewKeyDown; panel.Children.Add(textEditor); }
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(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnAddContactClick); #line default #line hidden return; case 2: #line 9 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnRefreshClick); #line default #line hidden return; case 3: #line 10 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnRepopulateClick); #line default #line hidden return; case 4: this.pendingOperationStatusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 5: this.treeView = ((System.Windows.Controls.TreeView)(target)); #line 16 "..\..\MainWindow.xaml" this.treeView.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.treeView_SelectedItemChanged); #line default #line hidden return; case 6: this.detailPanel = ((System.Windows.Controls.StackPanel)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Tabcontrol = ((XCode.Common.Controls.TabControls.XImgTabControl)(target)); return; case 2: this.weather = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.recAlgorithmsControl = ((FaceRecognition.Controls.RecognitionAlgorithmsControl)(target)); return; case 2: this.statusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void AddStatusBar(DockPanel dock) { StatusBar status = new StatusBar(); dock.Children.Add(status); DockPanel.SetDock(status, Dock.Bottom); itemDateTime = new StatusBarItem(); itemDateTime.HorizontalAlignment = HorizontalAlignment.Right; status.Items.Add(itemDateTime); DispatcherTimer tmr = new DispatcherTimer(); tmr.Interval = TimeSpan.FromSeconds(1); tmr.Tick += TimerOnTick; tmr.Start(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MainWindow = ((EpiPlanTool.MainView)(target)); return; case 2: this.mainDock = ((System.Windows.Controls.DockPanel)(target)); return; case 3: this.MainHeader = ((System.Windows.Controls.StackPanel)(target)); return; case 4: #line 132 "..\..\..\..\Views\MainView.xaml" ((System.Windows.Documents.Hyperlink)(target)).RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.Hyperlink_RequestNavigate); #line default #line hidden return; case 5: #line 147 "..\..\..\..\Views\MainView.xaml" ((System.Windows.Documents.Hyperlink)(target)).RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(this.File_RequestNavigate); #line default #line hidden return; case 6: this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 7: this.connectIcon = ((System.Windows.Controls.Image)(target)); return; case 8: this.editMode = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.btnLogin = ((System.Windows.Controls.Button)(target)); return; case 2: this.txtUsername = ((System.Windows.Controls.TextBox)(target)); return; case 3: this.pwdPassword = ((System.Windows.Controls.PasswordBox)(target)); return; case 4: this.tabsetMain = ((System.Windows.Controls.TabControl)(target)); return; case 5: this.tabSchools = ((System.Windows.Controls.TabItem)(target)); return; case 6: this.tabStudents = ((System.Windows.Controls.TabItem)(target)); return; case 7: this.tabIEP = ((System.Windows.Controls.TabItem)(target)); return; case 8: this.tabTeachers = ((System.Windows.Controls.TabItem)(target)); return; case 9: this.Message = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 10: this.Alert = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
private bool TryAddItemsControlToVisualRoot() { if(_itemsControl.Parent != null) { return true; } if (_visualRoot == null) { _visualRoot = GetRootVisual(); } if (_visualRoot == null) { return false; } var statusBarControl = _visualRoot.FindFirstVisualChildBreadthFirst<StatusBarControl>(); if (statusBarControl != null) { var item = new StatusBarItem { Content = _itemsControl, HorizontalAlignment = HorizontalAlignment.Right, VerticalAlignment = VerticalAlignment.Stretch, Visibility = Visibility.Visible }; DockPanel.SetDock(item, Dock.Right); statusBarControl.Items.Insert(0, item); return true; } // It is possible that StatusBarControl isn't created yet. // In this case, we will add ItemsControl directly to the dock panel that holds the StatusBarControl // It should be the same panel that holds VsResizeGrip var resizeGrip = _visualRoot.FindFirstVisualChildBreadthFirst<ResizeGrip>(); var statusBarPanel = resizeGrip?.Parent as DockPanel; if (statusBarPanel == null) { return false; } DockPanel.SetDock(_itemsControl, Dock.Right); var resizeGripIndex = statusBarPanel.Children.IndexOf(resizeGrip); if (resizeGripIndex == statusBarPanel.Children.Count - 1) { statusBarPanel.Children.Add(_itemsControl); } else { statusBarPanel.Children.Insert(resizeGripIndex + 1, _itemsControl); } return true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.RibbonRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 2: this.AppRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 3: this.StatusBarRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 4: this.ClientArea = ((System.Windows.Controls.Grid)(target)); return; case 5: this.NavigationColumn = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 6: this.WorkspaceColumn = ((System.Windows.Controls.ColumnDefinition)(target)); return; case 7: this.ProjectExplorerRegion = ((System.Windows.Controls.ContentControl)(target)); return; case 8: this.DisplayContentRegion = ((System.Windows.Controls.ContentControl)(target)); return; case 9: this.StatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 10: this.StatusBarProjectExplorer = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\MainWindow.xaml" ((NiceDesign.MainWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Move_Window); #line default #line hidden return; case 2: this.checkboxFullpathfromdb = ((System.Windows.Controls.CheckBox)(target)); return; case 3: this.checkboxFullpathfromfile = ((System.Windows.Controls.CheckBox)(target)); return; case 4: this.checkboxOpenImporter = ((System.Windows.Controls.CheckBox)(target)); return; case 5: this.buttonStart = ((System.Windows.Controls.Button)(target)); #line 28 "..\..\MainWindow.xaml" this.buttonStart.Click += new System.Windows.RoutedEventHandler(this.buttonStart_Click); #line default #line hidden return; case 6: this.statusbar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 7: this.statusText = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ControlRoot = ((TraceLab.UI.WPF.Controls.ProgressControl)(target)); return; case 2: this.Progress = ((System.Windows.Controls.ProgressBar)(target)); return; case 3: this.StatusMessage = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
public MeetTheDockers() { Title = "Meet the Dockers"; DockPanel dock = new DockPanel(); Content = dock; Menu menu = new Menu(); MenuItem item = new MenuItem(); item.Header = "Menu"; menu.Items.Add(item); DockPanel.SetDock(menu, Dock.Top); dock.Children.Add(menu); ToolBar tool = new ToolBar(); tool.Header = "Toolbar"; DockPanel.SetDock(tool, Dock.Top); dock.Children.Add(tool); StatusBar status = new StatusBar(); StatusBarItem statitem = new StatusBarItem(); statitem.Content = "Status"; status.Items.Add(statitem); DockPanel.SetDock(status, Dock.Bottom); dock.Children.Add(status); ListBox lstbox = new ListBox(); lstbox.Items.Add("List Box Item"); DockPanel.SetDock(lstbox, Dock.Left); dock.Children.Add(lstbox); TextBox txtbox = new TextBox(); txtbox.AcceptsReturn = true; dock.Children.Add(txtbox); txtbox.Focus(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Email = ((System.Windows.Controls.Button)(target)); return; case 2: this.Notificaciones = ((System.Windows.Controls.MenuItem)(target)); return; case 3: this.statusBar = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 4: this.dataFrame = ((System.Windows.Controls.Frame)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MenuStripRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 2: this.ContentRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 3: this.StatusBarRow = ((System.Windows.Controls.RowDefinition)(target)); return; case 4: this.tabControl = ((System.Windows.Controls.TabControl)(target)); return; case 5: this.KinectColor = ((System.Windows.Controls.Image)(target)); return; case 6: this.KinectDepth = ((System.Windows.Controls.Image)(target)); return; case 7: this.KinectSkeleton = ((System.Windows.Controls.Image)(target)); return; case 8: this.statusBarText = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\MainWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 2: this.loadingText = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 3: this.myPB = ((System.Windows.Controls.ProgressBar)(target)); return; } this._contentLoaded = true; }
StatusBarItem _statLineCol; // Line and column status. #endregion Fields #region Constructors public MyNotePad() { InitializeComponent(); this.Loaded += (sender, e) => { AddFindMenuItems(editMenu); AddFormatMenu(formatMenu); AddViewMenu(viewMenu); AddHelpMenu(helpMenu); // Create StatusBarItem to display line and column. _statLineCol = new StatusBarItem(); _statLineCol.HorizontalAlignment = HorizontalAlignment.Right; status.Items.Add(_statLineCol); txtBox.TextChanged += TextBoxOnTextChanged; txtBox.SelectionChanged += TextBoxOnSelectionChanged; txtBox.Focus(); CommandBindings.Add(new CommandBinding(ExitCommand, ExitOnExecute)); UpdateTitle(); }; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.EinzahlbetragTextbox = ((System.Windows.Controls.TextBox)(target)); return; case 2: this.EinzahlbetragLabel = ((System.Windows.Controls.Label)(target)); return; case 3: this.EinzahlenButton = ((System.Windows.Controls.Button)(target)); #line 8 "..\..\..\GeldEinzahlenView.xaml" this.EinzahlenButton.Click += new System.Windows.RoutedEventHandler(this.EinzahlenButton_Click); #line default #line hidden return; case 4: this.BereitsEingezahlteVorgaengeGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 5: this.VorgangsStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 6: this.VorgangsNummerBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.recAlgorithmsControl = ((FaceRecognition.Controls.RecognitionAlgorithmsControl)(target)); return; case 2: this.Continue = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\..\..\Windows\FaceRecognitionMethodsWindow.xaml" this.Continue.Click += new System.Windows.RoutedEventHandler(this.Continue_Click); #line default #line hidden return; case 3: this.statusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 18 "..\..\MainWindow.xaml" ((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.Exit); #line default #line hidden return; case 2: this.menuNy = ((System.Windows.Controls.MenuItem)(target)); return; case 3: this.btnBack = ((System.Windows.Controls.Button)(target)); return; case 4: this.btnForward = ((System.Windows.Controls.Button)(target)); return; case 5: this.btnAdd = ((System.Windows.Controls.Button)(target)); return; case 6: this.btnMinus = ((System.Windows.Controls.Button)(target)); return; case 7: this.tbxFileName = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.sbiDateTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 9: this.spClock = ((System.Windows.Controls.StackPanel)(target)); return; case 10: this.tblkDate = ((System.Windows.Controls.TextBlock)(target)); return; case 11: this.tblkTime = ((System.Windows.Controls.TextBlock)(target)); return; case 12: this.NameId = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.lblCodeName = ((System.Windows.Controls.Label)(target)); return; case 14: this.tbxCodeName = ((System.Windows.Controls.TextBox)(target)); return; case 15: this.tbxSpeciality = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.tbxAssignment = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.lbxAgents = ((System.Windows.Controls.ListBox)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.menuTop = ((System.Windows.Controls.Menu)(target)); return; case 2: this.menuFile = ((System.Windows.Controls.MenuItem)(target)); #line 7 "..\..\Window1.xaml" this.menuFile.Click += new System.Windows.RoutedEventHandler(this.menuFile_Click); #line default #line hidden return; case 3: this.menuFileNew = ((System.Windows.Controls.MenuItem)(target)); return; case 4: this.menuFileEdit = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.menuFileSave = ((System.Windows.Controls.MenuItem)(target)); return; case 6: this.menuFileSaveAs = ((System.Windows.Controls.MenuItem)(target)); return; case 7: this.menuFileImport = ((System.Windows.Controls.MenuItem)(target)); return; case 8: this.menuFileExit = ((System.Windows.Controls.MenuItem)(target)); return; case 9: this.menuEdit = ((System.Windows.Controls.MenuItem)(target)); return; case 10: this.menuEditUndo = ((System.Windows.Controls.MenuItem)(target)); return; case 11: this.menuEditRedo = ((System.Windows.Controls.MenuItem)(target)); return; case 12: this.menuEditLayers = ((System.Windows.Controls.MenuItem)(target)); return; case 13: this.menuEditPlayers = ((System.Windows.Controls.MenuItem)(target)); return; case 14: this.menuEditMapObjects = ((System.Windows.Controls.MenuItem)(target)); return; case 15: this.menuEditResourceFile = ((System.Windows.Controls.MenuItem)(target)); return; case 16: this.menuEditScripts = ((System.Windows.Controls.MenuItem)(target)); return; case 17: this.menuEditSounds = ((System.Windows.Controls.MenuItem)(target)); return; case 18: this.menuEditMapOptions = ((System.Windows.Controls.MenuItem)(target)); return; case 19: this.menuEditConfig = ((System.Windows.Controls.MenuItem)(target)); return; case 20: this.menuView = ((System.Windows.Controls.MenuItem)(target)); return; case 21: this.menuViewFullScreen = ((System.Windows.Controls.MenuItem)(target)); return; case 22: this.menuHelp = ((System.Windows.Controls.MenuItem)(target)); return; case 23: this.menuHelpContents = ((System.Windows.Controls.MenuItem)(target)); return; case 24: this.menuHelpAbout = ((System.Windows.Controls.MenuItem)(target)); return; case 25: this.statusBar1 = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 26: this.statusBar = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 27: this.toolBar = ((System.Windows.Controls.ToolBar)(target)); return; case 28: this.tabControl1 = ((System.Windows.Controls.TabControl)(target)); return; case 29: this.tabMenuResources = ((System.Windows.Controls.TabItem)(target)); return; case 30: this.tabMenuLayers = ((System.Windows.Controls.TabItem)(target)); return; case 31: this.tabMenuScripts = ((System.Windows.Controls.TabItem)(target)); return; case 32: this.tabMenuProperties = ((System.Windows.Controls.TabItem)(target)); return; case 33: this.zoomSlider = ((System.Windows.Controls.Slider)(target)); return; case 34: this.zoomPositionLabel = ((System.Windows.Controls.Label)(target)); return; case 35: this.statusBarZoomLabel = ((System.Windows.Controls.Label)(target)); return; case 36: this.statusBarMapCoord = ((System.Windows.Controls.Label)(target)); return; case 37: this.frameMiniMap = ((System.Windows.Controls.Frame)(target)); return; case 38: this.frameMap = ((System.Windows.Controls.Frame)(target)); return; case 39: this.selectButton = ((System.Windows.Controls.Button)(target)); #line 51 "..\..\Window1.xaml" this.selectButton.Click += new System.Windows.RoutedEventHandler(this.button1_Click); #line default #line hidden return; case 40: this.newButton = ((System.Windows.Controls.Button)(target)); #line 52 "..\..\Window1.xaml" this.newButton.Click += new System.Windows.RoutedEventHandler(this.newButton_Click); #line default #line hidden return; case 41: this.saveButton = ((System.Windows.Controls.Button)(target)); return; case 42: this.mapOptionsButton = ((System.Windows.Controls.Button)(target)); return; case 43: this.listBox1 = ((System.Windows.Controls.ListBox)(target)); return; case 44: this.playerSelectList = ((System.Windows.Controls.ListBoxItem)(target)); return; case 45: this.toolbarPlayerSelect2 = ((System.Windows.Controls.ListBoxItem)(target)); return; case 46: this.toolbarPlayerSelect3 = ((System.Windows.Controls.ListBoxItem)(target)); return; case 47: this.toolbarPlayerSelect4 = ((System.Windows.Controls.ListBoxItem)(target)); return; case 48: this.toolbarPlayerSelect5 = ((System.Windows.Controls.ListBoxItem)(target)); return; case 49: this.toolbarPlayerSelect6 = ((System.Windows.Controls.ListBoxItem)(target)); return; case 50: this.toolbarPlayerSelect7 = ((System.Windows.Controls.ListBoxItem)(target)); return; case 51: this.toolbarPlayerSelect8 = ((System.Windows.Controls.ListBoxItem)(target)); return; case 52: this.toolbarPlayerLabel = ((System.Windows.Controls.Label)(target)); return; case 53: this.statusBarInfoLabel = ((System.Windows.Controls.Label)(target)); return; case 54: this.showGridButton = ((System.Windows.Controls.Button)(target)); return; case 55: this.mirrorMapButton = ((System.Windows.Controls.Button)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.btnGetWines = ((System.Windows.Controls.Button)(target)); #line 16 "..\..\MainWindow.xaml" this.btnGetWines.Click += new System.Windows.RoutedEventHandler(this.btnGetWines_Click); #line default #line hidden return; case 2: this.cmbBoxSelectCountry = ((System.Windows.Controls.ComboBox)(target)); #line 17 "..\..\MainWindow.xaml" this.cmbBoxSelectCountry.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cmbBoxSelectCountry_SelectionChanged); #line default #line hidden return; case 3: this.dtGridWines = ((System.Windows.Controls.DataGrid)(target)); return; case 4: this.cID = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 5: this.cName = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 6: this.cDescription = ((System.Windows.Controls.DataGridTextColumn)(target)); return; case 7: this.stsBarItemStatus = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 8: this.lblSortLabel = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.engineChoiceGroup = ((System.Windows.Controls.GroupBox)(target)); return; case 2: this.engineChoice = ((System.Windows.Controls.ComboBox)(target)); return; case 3: this.CreateProjectBtn = ((System.Windows.Controls.Button)(target)); #line 22 "..\..\WizardDialog.xaml" this.CreateProjectBtn.Click += new System.Windows.RoutedEventHandler(this.CreateProjectClick); #line default #line hidden return; case 4: this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 5: this.umbracoVersionStatusBar = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 6: this.databaseGroup = ((System.Windows.Controls.GroupBox)(target)); return; case 7: this.databaseType = ((System.Windows.Controls.ComboBox)(target)); #line 29 "..\..\WizardDialog.xaml" this.databaseType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.databaseTypeChanged); #line default #line hidden return; case 8: this.databaseDetailsGroup = ((System.Windows.Controls.GroupBox)(target)); return; case 9: this.testConnectionButton = ((System.Windows.Controls.Button)(target)); #line 41 "..\..\WizardDialog.xaml" this.testConnectionButton.Click += new System.Windows.RoutedEventHandler(this.testConnectionButtonClick); #line default #line hidden return; case 10: this.serverLabel = ((System.Windows.Controls.Label)(target)); return; case 11: this.databaseNameLabel = ((System.Windows.Controls.Label)(target)); return; case 12: this.usernameLabel = ((System.Windows.Controls.Label)(target)); return; case 13: this.passwordLabel = ((System.Windows.Controls.Label)(target)); return; case 14: this.securityLabel = ((System.Windows.Controls.Label)(target)); return; case 15: this.connectionLabel = ((System.Windows.Controls.Label)(target)); return; case 16: this.password = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.username = ((System.Windows.Controls.TextBox)(target)); return; case 18: this.databaseName = ((System.Windows.Controls.TextBox)(target)); return; case 19: this.server = ((System.Windows.Controls.TextBox)(target)); return; case 20: this.connection = ((System.Windows.Controls.TextBox)(target)); return; case 21: this.security = ((System.Windows.Controls.CheckBox)(target)); #line 53 "..\..\WizardDialog.xaml" this.security.Click += new System.Windows.RoutedEventHandler(this.intergratedSecurityClick); #line default #line hidden return; case 22: this.skipWebInstaller = ((System.Windows.Controls.CheckBox)(target)); #line 59 "..\..\WizardDialog.xaml" this.skipWebInstaller.Click += new System.Windows.RoutedEventHandler(this.skipWebInstallerClick); #line default #line hidden return; } this._contentLoaded = true; }
public StatusBarItems() { m_StatusDisplay = new List<StatusBarItem>(); StatusBarItem item = new StatusBarItem(); StackPanel panel = new StackPanel(); TextBlock blck = new TextBlock(); Binding textBinding = new Binding("ImageCursorCoordX") { Source = this, }; textBinding.Mode = BindingMode.OneWay; blck.SetBinding(TextBlock.TextProperty, textBinding); blck.DataContext = ImageCursorCoordX; blck.Width = 50; panel.Children.Add(blck); Separator separator = new Separator(); panel.Children.Add(separator); blck = new TextBlock(); textBinding = new Binding("ImageCursorCoordY") { Source = this, }; textBinding.Mode = BindingMode.OneWay; blck.SetBinding(TextBlock.TextProperty, textBinding); blck.DataContext = ImageCursorCoordY; blck.Width = 50; panel.Children.Add(blck); separator = new Separator(); panel.Children.Add(separator); blck = new TextBlock(); textBinding = new Binding("ImageCursorPixelVal") { Source = this, }; textBinding.Mode = BindingMode.OneWay; blck.SetBinding(TextBlock.TextProperty, textBinding); blck.DataContext = ImageCursorPixelVal; blck.Width = 80; panel.Children.Add(blck); separator = new Separator(); panel.Children.Add(separator); blck = new TextBlock(); textBinding = new Binding("ImageCursorBoardVal") { Source = this, }; textBinding.Mode = BindingMode.OneWay; blck.SetBinding(TextBlock.TextProperty, textBinding); blck.DataContext = ImageCursorBoardVal; blck.Width = 50; panel.Children.Add(blck); separator = new Separator(); panel.Children.Add(separator); blck = new TextBlock(); textBinding = new Binding("ImageCursorDetectorVal") { Source = this, }; textBinding.Mode = BindingMode.OneWay; blck.SetBinding(TextBlock.TextProperty, textBinding); blck.DataContext = ImageCursorDetectorVal; blck.Width = 45; panel.Children.Add(blck); separator = new Separator(); panel.Children.Add(separator); blck = new TextBlock(); textBinding = new Binding("ImageWidth") { Source = this, }; textBinding.Mode = BindingMode.OneWay; blck.SetBinding(TextBlock.TextProperty, textBinding); blck.DataContext = ImageWidth; blck.Width = 75; panel.Children.Add(blck); separator = new Separator(); panel.Children.Add(separator); blck = new TextBlock(); textBinding = new Binding("ImageHeight") { Source = this, }; textBinding.Mode = BindingMode.OneWay; blck.SetBinding(TextBlock.TextProperty, textBinding); blck.DataContext = ImageHeight; blck.Width = 75; panel.Children.Add(blck); separator = new Separator(); panel.Children.Add(separator); blck = new TextBlock(); textBinding = new Binding("ZoomFactor") { Source = this, }; textBinding.Mode = BindingMode.OneWay; blck.SetBinding(TextBlock.TextProperty, textBinding); blck.DataContext = ZoomFactor; blck.Width = 75; panel.Children.Add(blck); panel.Orientation = Orientation.Horizontal; item.Content = panel; item.HorizontalContentAlignment = System.Windows.HorizontalAlignment.Right; m_StatusDisplay.Add(item); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.stationComboBox = ((System.Windows.Controls.ComboBox)(target)); return; case 2: this.btnGetTrains = ((System.Windows.Controls.Button)(target)); #line 11 "..\..\MainWindow.xaml" this.btnGetTrains.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; case 3: this.trainDataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 4: this.statusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 5: this.statusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 6: this.statusTextBlock = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
public WhiteStatusBarItemPeer(StatusBarItem owner) : base(owner) { whitePeer = WhitePeer.Create(this, owner); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 4 "..\..\Main.xaml" ((clientWPF.Main)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 4 "..\..\Main.xaml" ((clientWPF.Main)(target)).StateChanged += new System.EventHandler(this.Window_StateChanged); #line default #line hidden return; case 2: this.lUsername = ((System.Windows.Controls.Label)(target)); return; case 3: this.bLogInOut = ((System.Windows.Controls.Button)(target)); #line 15 "..\..\Main.xaml" this.bLogInOut.Click += new System.Windows.RoutedEventHandler(this.LogInOut_Click); #line default #line hidden return; case 4: this.lbStatus = ((System.Windows.Controls.ListBox)(target)); return; case 5: this.tDirectory = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.bBrowse = ((System.Windows.Controls.Button)(target)); #line 29 "..\..\Main.xaml" this.bBrowse.Click += new System.Windows.RoutedEventHandler(this.Browse_Click); #line default #line hidden return; case 7: this.tAddress = ((System.Windows.Controls.TextBox)(target)); return; case 8: this.tPort = ((System.Windows.Controls.TextBox)(target)); return; case 9: this.bStart = ((System.Windows.Controls.Button)(target)); #line 34 "..\..\Main.xaml" this.bStart.Click += new System.Windows.RoutedEventHandler(this.StartSync_Click); #line default #line hidden return; case 10: this.bStop = ((System.Windows.Controls.Button)(target)); #line 35 "..\..\Main.xaml" this.bStop.Click += new System.Windows.RoutedEventHandler(this.StopSync_Click); #line default #line hidden return; case 11: this.tTimeout = ((System.Windows.Controls.TextBox)(target)); return; case 12: #line 42 "..\..\Main.xaml" ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.tabVersions_Clicked); #line default #line hidden return; case 13: this.lDetails = ((System.Windows.Controls.ListView)(target)); #line 53 "..\..\Main.xaml" this.lDetails.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lDetails_MouseDoubleClick); #line default #line hidden return; case 14: this.lFileVersions = ((System.Windows.Controls.ListView)(target)); #line 63 "..\..\Main.xaml" this.lFileVersions.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lFileVersions_MouseDoubleClick); #line default #line hidden return; case 15: this.bSyncNow = ((System.Windows.Controls.Button)(target)); #line 71 "..\..\Main.xaml" this.bSyncNow.Click += new System.Windows.RoutedEventHandler(this.bSyncNow_Click); #line default #line hidden return; case 16: #line 76 "..\..\Main.xaml" ((System.Windows.Controls.Label)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.tabRecycleBin_Clicked); #line default #line hidden return; case 17: this.lDeletedFiles = ((System.Windows.Controls.ListView)(target)); #line 86 "..\..\Main.xaml" this.lDeletedFiles.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lDeletedFiles_MouseDoubleClick); #line default #line hidden return; case 18: this.lDeletedFileVersions = ((System.Windows.Controls.ListView)(target)); #line 96 "..\..\Main.xaml" this.lDeletedFileVersions.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lDeletedFileVersions_MouseDoubleClick); #line default #line hidden return; case 19: this.lStatus = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 20: this.lStatusBar = ((System.Windows.Controls.ProgressBar)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\MainWindow.xaml" ((PluggableRepoClient.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 9 "..\..\MainWindow.xaml" ((PluggableRepoClient.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.tabCntrl = ((System.Windows.Controls.TabControl)(target)); return; case 3: this.navTab = ((System.Windows.Controls.TabItem)(target)); return; case 4: this.RepoReqt = ((System.Windows.Controls.Button)(target)); #line 90 "..\..\MainWindow.xaml" this.RepoReqt.Click += new System.Windows.RoutedEventHandler(this.GetFilesButton_Click); #line default #line hidden return; case 5: this.testLabel = ((System.Windows.Controls.TextBox)(target)); return; case 6: this.testFiles = ((System.Windows.Controls.TextBox)(target)); return; case 7: this.driverListBox = ((System.Windows.Controls.ListBox)(target)); #line 97 "..\..\MainWindow.xaml" this.driverListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.driverListBox_MouseDoubleClick); #line default #line hidden return; case 8: this.filesListBox = ((System.Windows.Controls.ListBox)(target)); #line 98 "..\..\MainWindow.xaml" this.filesListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.filesListBox_MouseDoubleClick); #line default #line hidden return; case 9: this.AddTest = ((System.Windows.Controls.Button)(target)); #line 99 "..\..\MainWindow.xaml" this.AddTest.Click += new System.Windows.RoutedEventHandler(this.TestAddButton_Click); #line default #line hidden return; case 10: this.TestReqt = ((System.Windows.Controls.Button)(target)); #line 100 "..\..\MainWindow.xaml" this.TestReqt.Click += new System.Windows.RoutedEventHandler(this.CreateRequestButton_Click); #line default #line hidden return; case 11: this.TestReq = ((System.Windows.Controls.TabItem)(target)); return; case 12: this.filesLabel2 = ((System.Windows.Controls.TextBox)(target)); return; case 13: this.testReqListBox = ((System.Windows.Controls.ListBox)(target)); #line 123 "..\..\MainWindow.xaml" this.testReqListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.testReqListBox_MouseDoubleClick); #line default #line hidden return; case 14: this.Send = ((System.Windows.Controls.Button)(target)); #line 125 "..\..\MainWindow.xaml" this.Send.Click += new System.Windows.RoutedEventHandler(this.sendButton_Click); #line default #line hidden return; case 15: this.Logs = ((System.Windows.Controls.TabItem)(target)); return; case 16: this.filesLabel3 = ((System.Windows.Controls.TextBox)(target)); return; case 17: this.loglist = ((System.Windows.Controls.ListBox)(target)); #line 149 "..\..\MainWindow.xaml" this.loglist.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.loglist_MouseDoubleClick); #line default #line hidden return; case 18: this.Refresh = ((System.Windows.Controls.Button)(target)); #line 151 "..\..\MainWindow.xaml" this.Refresh.Click += new System.Windows.RoutedEventHandler(this.refreshButton_Click); #line default #line hidden return; case 19: this.builder = ((System.Windows.Controls.TabItem)(target)); return; case 20: this.instruction1 = ((System.Windows.Controls.Label)(target)); return; case 21: this.child = ((System.Windows.Controls.Label)(target)); return; case 22: this.childNum = ((System.Windows.Controls.TextBox)(target)); return; case 23: this.Start = ((System.Windows.Controls.Button)(target)); #line 169 "..\..\MainWindow.xaml" this.Start.Click += new System.Windows.RoutedEventHandler(this.StartBuilder_Click); #line default #line hidden return; case 24: this.stop = ((System.Windows.Controls.Button)(target)); #line 170 "..\..\MainWindow.xaml" this.stop.Click += new System.Windows.RoutedEventHandler(this.StopBuillder_Click); #line default #line hidden return; case 25: this.status = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 26: this.statusLabel = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
Window win; // XAML�κ��� ������ window #endregion Fields #region Constructors // ������. public XamlCruncher() { // File open�� save ��ȭ���ڸ� ���� ���� strFilter = "XAML Files(*.xaml)|*.xaml|All Files(*.*)|*.*"; // DockPanel�� ã���� �װͿ��� TextBox�� �����Ѵ� DockPanel dock = txtbox.Parent as DockPanel; dock.Children.Remove(txtbox); // 3���� ���� ������ ������ Gred�� �����ϰ� ũ��� 0���� ������� // Grid ���� ������ �����Ǵ� ������ ǥ ������ �����մϴ� Grid grid = new Grid(); dock.Children.Add(grid); for (int i = 0; i < 3; i++) { RowDefinition rowdef = new RowDefinition(); rowdef.Height = new GridLength(0); grid.RowDefinitions.Add(rowdef); ColumnDefinition coldef = new ColumnDefinition(); coldef.Width = new GridLength(0); grid.ColumnDefinitions.Add(coldef); } // ù°���� ���� ũ�⸦ 100���� �ʱ�ȭ ��Ų�� grid.RowDefinitions[0].Height = new GridLength(100, GridUnitType.Star); grid.ColumnDefinitions[0].Width = new GridLength(100, GridUnitType.Star); // 2���� GridSplitter ��Ʈ���� Grid�� �߰� ��ĭ�� GridSplitter ��Ʈ���� Grid ����� �ڵ� ���� �� �� �ֵ��� ���ش�. GridSplitter split = new GridSplitter(); split.HorizontalAlignment = HorizontalAlignment.Stretch; split.VerticalAlignment = VerticalAlignment.Center; split.Height = 6; grid.Children.Add(split); Grid.SetRow(split, 1); Grid.SetColumn(split, 0); Grid.SetColumnSpan(split, 3); split = new GridSplitter(); split.HorizontalAlignment = HorizontalAlignment.Center; split.VerticalAlignment = VerticalAlignment.Stretch; split.Width = 6; grid.Children.Add(split); Grid.SetRow(split, 0); Grid.SetColumn(split, 1); Grid.SetRowSpan(split, 3); // XAML ��ü�� �����ֱ� ���� Frame �� �����Ѵ� frameParent = new Frame(); frameParent.NavigationUIVisibility = NavigationUIVisibility.Hidden; grid.Children.Add(frameParent); // TextBox�� Grid�� ������ txtbox.TextChanged += TextBoxOnTextChanged; grid.Children.Add(txtbox); // �ε�� ������ XamlCruncherSettings�� ����ȯ ��Ų�� settingsXaml = (XamlCruncherSettings)settings; // Xaml���� �ֻ��� �Ŵ��� ���� ��Ų�� MenuItem itemXaml = new MenuItem(); itemXaml.Header = "_Xaml"; menu.Items.Insert(menu.Items.Count - 1, itemXaml); // XamlOrientationMenuItem�� �����ϰ� �Ŵ��� �߰� ��Ų�� itemOrientation = new XamlOrientationMenuItem(grid, txtbox, frameParent); itemOrientation.Orientation = settingsXaml.Orientation; itemXaml.Items.Add(itemOrientation); //�ǿ� ������ �����ϱ� ���� �� MenuItem itemTabs = new MenuItem(); itemTabs.Header = "_�ǰ��ݼ���..."; itemTabs.Click += TabSpacesOnClick; itemXaml.Items.Add(itemTabs); //�Ľ� �ߴ��� �ϱ����� �� MenuItem itemNoParse = new MenuItem(); itemNoParse.Header = "_Suspend Parsing"; itemNoParse.IsCheckable = true; itemNoParse.SetBinding(MenuItem.IsCheckedProperty, "IsSuspendParsing"); itemNoParse.DataContext = this; itemXaml.Items.Add(itemNoParse); // Reparse�ϱ� ���� Ŀ�ǵ� InputGestureCollection collGest = new InputGestureCollection(); collGest.Add(new KeyGesture(Key.F6)); RoutedUICommand commReparse = new RoutedUICommand("_Reparse", "Reparse", GetType(), collGest); // Reparse�� ���� �� MenuItem itemReparse = new MenuItem(); itemReparse.Command = commReparse; itemXaml.Items.Add(itemReparse); // Reparse�� ���� Ŀ�ǵ� ���ε� CommandBindings.Add(new CommandBinding(commReparse, ReparseOnExecuted)); // â�� �����ֱ��� �� Ŀ�ǵ� collGest = new InputGestureCollection(); collGest.Add(new KeyGesture(Key.F7)); RoutedUICommand commShowWin = new RoutedUICommand("Show _Window", "ShowWindow", GetType(), collGest); // â�� �����ֱ� ���� �� MenuItem itemShowWin = new MenuItem(); itemShowWin.Command = commShowWin; itemXaml.Items.Add(itemShowWin); //â�� �����ֱ� ���� Ŀ�ǵ� ���ε� CommandBindings.Add(new CommandBinding(commShowWin, ShowWindowOnExecuted, ShowWindowCanExecute)); // Save as Startup Document �� MenuItem itemTemplate = new MenuItem(); itemTemplate.Header = "Save as Startup _Document"; itemTemplate.Click += NewStartupOnClick; itemXaml.Items.Add(itemTemplate); // Help �� �� ������ ���� MenuItem itemXamlHelp = new MenuItem(); itemXamlHelp.Header = "_Help..."; itemXamlHelp.Click += HelpOnClick; MenuItem itemHelp = (MenuItem)menu.Items[menu.Items.Count - 1]; itemHelp.Items.Insert(0, itemXamlHelp); // ���ο� StatusBar(����ǥ����) �� statusParse = new StatusBarItem(); status.Items.Insert(0, statusParse); status.Visibility = Visibility.Visible; //��Ÿ ���� ��Ȳ�鿡 ���� �ڵ鷯�� ���� //�ڵ尡 ��ġ�� ���ο� Ư¡�̳� ��ȭ�� ǥ���Ѵ� Dispatcher.UnhandledException += DispatcherOnUnhandledException; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\..\..\Modules\Law\PolicePad\PolicePadWindow.xaml" ((Invert911.InvertCommon.Modules.Law.PolicePad.PolicePadWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.MainDockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 3: this.UserNameStatusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 4: this.MessageStatusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 5: this.NightModeStatusBarItem = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 6: this.NightModeButton = ((System.Windows.Controls.Button)(target)); #line 18 "..\..\..\..\..\Modules\Law\PolicePad\PolicePadWindow.xaml" this.NightModeButton.Click += new System.Windows.RoutedEventHandler(this.NightModeButton_Click); #line default #line hidden return; case 7: this.ShowKeyboardButton = ((System.Windows.Controls.Button)(target)); #line 20 "..\..\..\..\..\Modules\Law\PolicePad\PolicePadWindow.xaml" this.ShowKeyboardButton.Click += new System.Windows.RoutedEventHandler(this.ShowKeyboardButton_Click); #line default #line hidden return; case 8: this.MainKeyBoard = ((Invert911.InvertCommon.StandardGui.psKeyboard)(target)); return; case 9: this.ConsoleTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.MenuDockPanel = ((System.Windows.Controls.DockPanel)(target)); return; case 11: this.NavigationStackPanel = ((System.Windows.Controls.StackPanel)(target)); return; case 12: this.MainFrame = ((System.Windows.Controls.Frame)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.MainRibbon = ((DevComponents.WpfRibbon.Ribbon)(target)); return; case 2: this.ribbonBarClipboard = ((DevComponents.WpfRibbon.RibbonBar)(target)); return; case 3: this.ribbonBarDPO = ((DevComponents.WpfRibbon.RibbonBar)(target)); return; case 4: this.ribbonBarTool = ((DevComponents.WpfRibbon.RibbonBar)(target)); return; case 5: this.edtRowPerPage = ((DevComponents.WpfEditors.IntegerInput)(target)); #line 151 "..\..\MainWindow.xaml" this.edtRowPerPage.ValueChanged += new System.Windows.RoutedEventHandler(this.edtRowPerPage_ValueChanged); #line default #line hidden return; case 6: this._statusServer = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 7: this.AppDock = ((DevComponents.WpfDock.DockSite)(target)); return; case 8: this.rightPanel = ((DevComponents.WpfDock.SplitPanel)(target)); return; case 9: this.dockWindowGroup = ((DevComponents.WpfDock.DockWindowGroup)(target)); return; case 10: this.rightPanelTool = ((DevComponents.WpfDock.DockWindow)(target)); return; case 11: this.renderView = ((DevComponents.WpfDock.SplitPanel)(target)); return; case 12: this.dockGroup = ((DevComponents.WpfDock.DockWindowGroup)(target)); return; case 13: this.renderWindow = ((DevComponents.WpfDock.DockWindow)(target)); return; case 14: this.renderingDock = ((System.Windows.Controls.DockPanel)(target)); return; case 15: this.dgPassenger = ((PAU.UserControls.ucPassenger)(target)); return; case 16: this.dgDPO = ((PAU.UserControls.ucDPO)(target)); return; case 17: this.dgNationality = ((PAU.UserControls.ucNationality)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Root = ((Frontend.OptionsWindow)(target)); return; case 2: this.Status = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 3: this.AnyTopicCheckbox = ((System.Windows.Controls.CheckBox)(target)); return; case 4: this.TopicList = ((System.Windows.Controls.ListView)(target)); return; case 5: #line 95 "..\..\OptionsWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Invert_Click); #line default #line hidden return; case 6: #line 99 "..\..\OptionsWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SelectAll_Click); #line default #line hidden return; case 7: #line 103 "..\..\OptionsWindow.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Delete_Click); #line default #line hidden return; case 8: this.AddTopic = ((System.Windows.Controls.TextBox)(target)); #line 116 "..\..\OptionsWindow.xaml" this.AddTopic.GotKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.AddTopic_GotKeyboardFocus); #line default #line hidden #line 116 "..\..\OptionsWindow.xaml" this.AddTopic.LostKeyboardFocus += new System.Windows.Input.KeyboardFocusChangedEventHandler(this.AddTopic_LostKeyboardFocus); #line default #line hidden return; case 9: this.AddButton = ((System.Windows.Controls.Button)(target)); #line 118 "..\..\OptionsWindow.xaml" this.AddButton.Click += new System.Windows.RoutedEventHandler(this.Add_Click); #line default #line hidden return; case 10: this.OkButton = ((System.Windows.Controls.Button)(target)); #line 130 "..\..\OptionsWindow.xaml" this.OkButton.Click += new System.Windows.RoutedEventHandler(this.Ok_Click); #line default #line hidden return; } this._contentLoaded = true; }
string strLoadedFile; // �ҷ��� ������ ��ü �̸� #endregion Fields #region Constructors public NotepadClone() { // �Ӽ��� �����ϱ� ���� executing assembly�� ���� Assembly asmbly = Assembly.GetExecutingAssembly(); // strAppTitle(���α��� Ÿ��Ʋ�� �̸�) �ʵ带 �����ϱ� ���� AssemblyTitle �Ӽ��� ���� // Assembly�� ����� ����� ���� Ư���� �迭�� �˻��� Title�� �ִ´� AssemblyTitleAttribute title = (AssemblyTitleAttribute)asmbly. GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0]; strAppTitle = title.Title; // strAppData(��ü�����̸�) ���� �̸��� �����ϱ� ���� AssemblyProduct �Ӽ��� ���� AssemblyProductAttribute product = (AssemblyProductAttribute)asmbly. GetCustomAttributes(typeof(AssemblyProductAttribute), false)[0]; // GetFolderPath�� ������ ���������� �ĺ��Ǵ� �ý��� Ư�� ������ ��θ� �������� Path.Combine���� ���ڿ� �迭�� �� ��η� ���� strAppData = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Petzold\\" + product.Product + "\\" + product.Product + ".Settings.xml"); DockPanel dock = new DockPanel(); // DockPanel ���� Content = dock; // Content ������Ƽ�� DockPanel ��ü �Ҵ� menu = new Menu(); // �� ���� dock.Children.Add(menu); // DockPanel�� �ڽļӼ� ���� Menu �߰� DockPanel.SetDock(menu, Dock.Top); // Menu�� ��ܺκп� ���� status = new StatusBar(); // ���¹� ���� dock.Children.Add(status); // DockPanel�� �ڽļӼ� ���� ���¹� �߰� DockPanel.SetDock(status, Dock.Bottom); // ���¹ٸ� �ϴܺκп� ���� statLineCol = new StatusBarItem(); // ���� ���� �����ֱ� ���� StatusBarItem ���� statLineCol.HorizontalAlignment = HorizontalAlignment.Right; // statLineCol�� ��ġ�� �θ��ҿ� �Ҵ�� ���̾ƿ� ������ �����ʿ� ����� status.Items.Add(statLineCol); // ���¹ٿ� statLineCol �߰� DockPanel.SetDock(statLineCol, Dock.Right); // statLineCol�� �����ʺκп� ���� // Ŭ���̾�Ʈ ������ ���� �κ��� ä�� �ؽ�Ʈ �ڽ� ���� txtbox = new TextBox(); // �ؽ�Ʈ�ڽ� ���� txtbox.AcceptsReturn = true; // �ؽ�Ʈ�ڽ��� �� �ٲ� ���ڸ� ����� �� �ִ� txtbox.AcceptsTab = true; // TabŰ�� ���� �� �� ������ ���� ���� ��Ʈ�ѷ� ��Ŀ���� �̵��ϴ� ��� �ش� // ��Ʈ�ѿ� �� ���ڸ� �Է����� ���θ� ��Ÿ���� �� ���� txtbox.VerticalScrollBarVisibility = ScrollBarVisibility.Auto; // ���� ��ũ�� ���븦 �ڵ����� ���� txtbox.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto; // ���� ��ũ�� ���븦 �ڵ����� ���� txtbox.TextChanged += TextBoxOnTextChanged; // �ؽ�Ʈ�ڽ��� �����Է��� ���ϸ� TextBoxOnTextChanged �̺�Ʈ ȣ�� txtbox.SelectionChanged += TextBoxOnSelectionChanged; // �ؽ�Ʈ ���� ������ ����� ��쿡 TextBoxOnSelectionChanged �̺�Ʈ ȣ�� dock.Children.Add(txtbox); // DockPanel�� �ڽļӼ� ���� �ؽ�Ʈ�ڽ� �߰� // ��� ž ���� �� �� ���� AddFileMenu(menu); // in NotepadClone.File.cs AddEditMenu(menu); // in NotepadClone.Edit.cs AddFormatMenu(menu); // in NotepadClone.Format.cs AddViewMenu(menu); // in NotepadClone.View.cs AddHelpMenu(menu); // in NotepadClone.Help.cs // ������ ����Ǹ鼭 �����س��� ������ �ҷ��ͼ� settings�� ���� settings = (NotepadCloneSettings) LoadSettings(); // ����� ������ Windowstate�� ���� WindowState = settings.WindowState; if (settings.RestoreBounds != Rect.Empty) { Left = settings.RestoreBounds.Left; Top = settings.RestoreBounds.Top; Width = settings.RestoreBounds.Width; Height = settings.RestoreBounds.Height; } // Rect�� ������� ������ RestoreBounds(â�� ũ��� ��ġ)�� ���� if (settings.RestoreBounds != Rect.Empty) { Left = settings.RestoreBounds.Left; Top = settings.RestoreBounds.Top; Width = settings.RestoreBounds.Width; Height = settings.RestoreBounds.Height; } txtbox.TextWrapping = settings.TextWrapping; // �ؽ�Ʈ�ڽ��� settings�� �ٹٲ� ����� ���� txtbox.FontFamily = new FontFamily(settings.FontFamily); // �ؽ�Ʈ�ڽ��� �۲��йи��� settings�� �۲��йи��� ���� txtbox.FontStyle = (FontStyle)new FontStyleConverter(). // �ؽ�Ʈ�ڽ��� �۲ý�Ÿ���� settings�� �۲ý�Ÿ�Ϸ� ���� ConvertFromString(settings.FontStyle); txtbox.FontWeight = (FontWeight)new FontWeightConverter(). // �ؽ�Ʈ�ڽ��� �۲õβ��� settings�� �۲õβ��� ���� ConvertFromString(settings.FontWeight); txtbox.FontStretch = (FontStretch)new FontStretchConverter(). // �ؽ�Ʈ�ڽ��� �۲ô��̱⸦ settings�� �۲ô��̱�� ���� ConvertFromString(settings.FontStretch); txtbox.FontSize = settings.FontSize; // �ؽ�Ʈ�ڽ��� �۲�ũ�⸦ settings�� �۲�ũ��� ���� // Loaded �̺�Ʈ �ڵ鷯 ���� Loaded += WindowOnLoaded; // �ؽ�Ʈ�ڽ��� ��Ŀ�� ���� txtbox.Focus(); }
private void InitStatusBar() { StatusOverview = new StatusBarItem() { Width = 250, HorizontalAlignment = HorizontalAlignment.Left, Content = "System Overview" }; StatusCurrentPos = new StatusBarItem() { Width = 100, HorizontalAlignment = HorizontalAlignment.Right, Content = "CurrentPos" }; MainStatusBar = new StatusBar() { HorizontalAlignment = HorizontalAlignment.Stretch, Background = System.Windows.Media.Brushes.WhiteSmoke }; MainStatusBar.Items.Add(StatusOverview); MainStatusBar.Items.Add(new Separator()); MainStatusBar.Items.Add(StatusCurrentPos); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.mainWindow = ((UFSJ.MainWnd)(target)); #line 1 "..\..\MainWnd.xaml" this.mainWindow.Drop += new System.Windows.DragEventHandler(this.Grid_Drop); #line default #line hidden #line 1 "..\..\MainWnd.xaml" this.mainWindow.DragEnter += new System.Windows.DragEventHandler(this.Grid_DragEnter); #line default #line hidden #line 1 "..\..\MainWnd.xaml" this.mainWindow.LocationChanged += new System.EventHandler(this.mainWindow_LocationChanged); #line default #line hidden return; case 2: this.TaskBarInfo = ((System.Windows.Shell.TaskbarItemInfo)(target)); return; case 3: #line 6 "..\..\MainWnd.xaml" ((System.Windows.Shell.ThumbButtonInfo)(target)).Click += new System.EventHandler(this.ThumbButtonInfo_Click); #line default #line hidden return; case 4: this.mainTab = ((System.Windows.Controls.TabControl)(target)); return; case 5: this.mainTabFile = ((System.Windows.Controls.TabItem)(target)); return; case 6: this.fileGird = ((System.Windows.Controls.Grid)(target)); return; case 7: this.fileTab = ((System.Windows.Controls.TabControl)(target)); return; case 8: this.fileTabOptions = ((System.Windows.Controls.TabItem)(target)); return; case 9: this.OptionGrid = ((System.Windows.Controls.Grid)(target)); return; case 10: this.GridTrans = ((System.Windows.Media.TranslateTransform)(target)); return; case 11: this.FileOptOntop = ((System.Windows.Controls.CheckBox)(target)); #line 39 "..\..\MainWnd.xaml" this.FileOptOntop.Click += new System.Windows.RoutedEventHandler(this.chkOntop_Click); #line default #line hidden return; case 12: this.FileOptHideProgress = ((System.Windows.Controls.CheckBox)(target)); #line 40 "..\..\MainWnd.xaml" this.FileOptHideProgress.Click += new System.Windows.RoutedEventHandler(this.chkOntop_Click); #line default #line hidden return; case 13: this.FileOptShowInfo = ((System.Windows.Controls.CheckBox)(target)); #line 41 "..\..\MainWnd.xaml" this.FileOptShowInfo.Unloaded += new System.Windows.RoutedEventHandler(this.FileOptShowInfo_Unloaded); #line default #line hidden return; case 14: this.fileAppTheme = ((System.Windows.Controls.ComboBox)(target)); #line 45 "..\..\MainWnd.xaml" this.fileAppTheme.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.fileAppTheme_SelectionChanged); #line default #line hidden return; case 15: this.fileAppLanguage = ((System.Windows.Controls.ComboBox)(target)); return; case 16: this.fileAppLangA = ((System.Windows.Controls.Button)(target)); #line 103 "..\..\MainWnd.xaml" this.fileAppLangA.Click += new System.Windows.RoutedEventHandler(this.fileAppLangA_Click); #line default #line hidden return; case 17: this.fileAppLangM = ((System.Windows.Controls.Button)(target)); #line 104 "..\..\MainWnd.xaml" this.fileAppLangM.Click += new System.Windows.RoutedEventHandler(this.fileAppLangM_Click); #line default #line hidden return; case 18: this.fileSettingAssociateExt = ((System.Windows.Controls.CheckBox)(target)); return; case 19: this.fileSettingIntergrate = ((System.Windows.Controls.CheckBox)(target)); return; case 20: this.fileSettingStartSilent = ((System.Windows.Controls.CheckBox)(target)); return; case 21: this.bSaveSetting = ((System.Windows.Controls.Button)(target)); #line 118 "..\..\MainWnd.xaml" this.bSaveSetting.Click += new System.Windows.RoutedEventHandler(this.button_Click); #line default #line hidden return; case 22: this.bLoadSetting = ((System.Windows.Controls.Button)(target)); return; case 23: this.fileSettingFormat = ((System.Windows.Controls.TextBox)(target)); return; case 24: this.fileSettingPreview = ((System.Windows.Controls.Label)(target)); return; case 25: this.fileCDefs = ((System.Windows.Controls.ComboBox)(target)); #line 124 "..\..\MainWnd.xaml" this.fileCDefs.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.fileCDefs_SelectionChanged); #line default #line hidden return; case 26: this.fileTabCredits = ((System.Windows.Controls.TabItem)(target)); return; case 27: this.CreditsGrid = ((System.Windows.Controls.Grid)(target)); return; case 28: this.CredTrans = ((System.Windows.Media.TranslateTransform)(target)); return; case 29: this.fileTabAbout = ((System.Windows.Controls.TabItem)(target)); return; case 30: this.Titles = ((System.Windows.Controls.Label)(target)); return; case 31: this.Edition = ((System.Windows.Controls.Label)(target)); return; case 32: this.FreeLabel = ((System.Windows.Controls.Label)(target)); return; case 33: this.FreeTrans = ((System.Windows.Media.TranslateTransform)(target)); return; case 34: this.LogoGrid = ((System.Windows.Controls.Grid)(target)); return; case 35: this.Logo = ((System.Windows.Controls.Image)(target)); return; case 36: this.AboutGrid = ((System.Windows.Controls.Grid)(target)); return; case 37: this.About = ((System.Windows.Controls.Label)(target)); return; case 38: this.About3 = ((System.Windows.Controls.Label)(target)); return; case 39: this.About5 = ((System.Windows.Controls.Label)(target)); return; case 40: this.OsInfo = ((System.Windows.Controls.Label)(target)); return; case 41: this.AboutName = ((System.Windows.Controls.Label)(target)); return; case 42: this.AboutVersion = ((System.Windows.Controls.Label)(target)); return; case 43: this.FreeLabel_Copy = ((System.Windows.Controls.Label)(target)); return; case 44: this.imgKIR = ((System.Windows.Controls.Image)(target)); #line 233 "..\..\MainWnd.xaml" this.imgKIR.MouseMove += new System.Windows.Input.MouseEventHandler(this.imgKIR_MouseMove); #line default #line hidden return; case 45: this.imgUFSJ = ((System.Windows.Controls.Image)(target)); #line 234 "..\..\MainWnd.xaml" this.imgUFSJ.MouseMove += new System.Windows.Input.MouseEventHandler(this.imgUFSJ_MouseMove); #line default #line hidden return; case 46: this.imgUFASoft = ((System.Windows.Controls.Image)(target)); #line 235 "..\..\MainWnd.xaml" this.imgUFASoft.MouseMove += new System.Windows.Input.MouseEventHandler(this.imgUFASoft_MouseMove); #line default #line hidden return; case 47: this.imgSMP = ((System.Windows.Controls.Image)(target)); #line 236 "..\..\MainWnd.xaml" this.imgSMP.MouseMove += new System.Windows.Input.MouseEventHandler(this.imgSMP_MouseMove); #line default #line hidden return; case 48: this.lInformationSupport = ((System.Windows.Controls.Label)(target)); return; case 49: this.fileTabUpdates = ((System.Windows.Controls.TabItem)(target)); return; case 50: this.mainTabSplit = ((System.Windows.Controls.TabItem)(target)); return; case 51: this.splitGird = ((System.Windows.Controls.Grid)(target)); #line 253 "..\..\MainWnd.xaml" this.splitGird.DragEnter += new System.Windows.DragEventHandler(this.Grid_DragEnter); #line default #line hidden #line 253 "..\..\MainWnd.xaml" this.splitGird.Drop += new System.Windows.DragEventHandler(this.Grid_Drop); #line default #line hidden return; case 52: this.splitInSize = ((System.Windows.Controls.Label)(target)); return; case 53: this.splitInPath = ((System.Windows.Controls.TextBox)(target)); #line 257 "..\..\MainWnd.xaml" this.splitInPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.splitPathIn_TextChanged); #line default #line hidden return; case 54: this.splitInBrowse = ((System.Windows.Controls.Button)(target)); #line 258 "..\..\MainWnd.xaml" this.splitInBrowse.Click += new System.Windows.RoutedEventHandler(this.SpltBrowseIn_Click); #line default #line hidden return; case 55: this.splitOutSize = ((System.Windows.Controls.Label)(target)); return; case 56: this.splitOutPath = ((System.Windows.Controls.TextBox)(target)); #line 260 "..\..\MainWnd.xaml" this.splitOutPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.splitPathOut_TextChanged); #line default #line hidden return; case 57: this.splitOutBrowse = ((System.Windows.Controls.Button)(target)); #line 261 "..\..\MainWnd.xaml" this.splitOutBrowse.Click += new System.Windows.RoutedEventHandler(this.SpltBrowseOut_Click); #line default #line hidden return; case 58: this.splitOptionGrid = ((System.Windows.Controls.Grid)(target)); return; case 59: this.splitOptComboPreDef = ((System.Windows.Controls.ComboBox)(target)); #line 274 "..\..\MainWnd.xaml" this.splitOptComboPreDef.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cPresent_SelectionChanged); #line default #line hidden return; case 60: this.splitOptSizeT = ((System.Windows.Controls.TextBox)(target)); return; case 61: this.splitOptSizeC = ((System.Windows.Controls.ComboBox)(target)); return; case 62: this.cSplitBytes = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 63: this.cSplitKilo = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 64: this.cSplitMega = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 65: this.cSplitGiga = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 66: this.cSplitParts = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 67: this.splitOptDelete = ((System.Windows.Controls.CheckBox)(target)); return; case 68: this.splitOpenOutDir = ((System.Windows.Controls.Button)(target)); return; case 69: this.splitViewSum = ((System.Windows.Controls.Button)(target)); return; case 70: this.splitStart = ((System.Windows.Controls.Button)(target)); #line 288 "..\..\MainWnd.xaml" this.splitStart.Click += new System.Windows.RoutedEventHandler(this.spltStart_Click); #line default #line hidden return; case 71: this.splitOptBatch = ((System.Windows.Controls.CheckBox)(target)); return; case 72: this.splitOptGenerateValue = ((System.Windows.Controls.TextBox)(target)); return; case 73: this.splitOptGenerateLabel = ((System.Windows.Controls.Label)(target)); return; case 74: this.splitPreManage = ((System.Windows.Controls.Button)(target)); #line 293 "..\..\MainWnd.xaml" this.splitPreManage.Click += new System.Windows.RoutedEventHandler(this.splitPreManage_Click); #line default #line hidden return; case 75: this.splitOptGenerate = ((System.Windows.Controls.ComboBox)(target)); #line 294 "..\..\MainWnd.xaml" this.splitOptGenerate.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.splitOptGenerate_SelectionChanged); #line default #line hidden return; case 76: this.mainTabJoin = ((System.Windows.Controls.TabItem)(target)); return; case 77: this.joinGird = ((System.Windows.Controls.Grid)(target)); return; case 78: this.joinInPath = ((System.Windows.Controls.TextBox)(target)); #line 313 "..\..\MainWnd.xaml" this.joinInPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.joinInPath_TextChanged); #line default #line hidden return; case 79: this.joinInSize = ((System.Windows.Controls.Label)(target)); return; case 80: this.joinInBrowse = ((System.Windows.Controls.Button)(target)); #line 315 "..\..\MainWnd.xaml" this.joinInBrowse.Click += new System.Windows.RoutedEventHandler(this.JoinBrowseIn_Click); #line default #line hidden return; case 81: this.joinOutPath = ((System.Windows.Controls.TextBox)(target)); #line 316 "..\..\MainWnd.xaml" this.joinOutPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.joinOutPath_TextChanged); #line default #line hidden return; case 82: this.joinOutSize = ((System.Windows.Controls.Label)(target)); return; case 83: this.joinOutBrowse = ((System.Windows.Controls.Button)(target)); #line 318 "..\..\MainWnd.xaml" this.joinOutBrowse.Click += new System.Windows.RoutedEventHandler(this.JoinBrowseOut_Click); #line default #line hidden return; case 84: this.joinOptionGrid = ((System.Windows.Controls.Grid)(target)); return; case 85: this.joinOptDelete = ((System.Windows.Controls.CheckBox)(target)); return; case 86: this.joinOpenOutDir = ((System.Windows.Controls.Button)(target)); #line 330 "..\..\MainWnd.xaml" this.joinOpenOutDir.Click += new System.Windows.RoutedEventHandler(this.joinOpenOutDir_Click); #line default #line hidden return; case 87: this.joinViewSum = ((System.Windows.Controls.Button)(target)); return; case 88: this.joinStart = ((System.Windows.Controls.Button)(target)); #line 332 "..\..\MainWnd.xaml" this.joinStart.Click += new System.Windows.RoutedEventHandler(this.joinStart_Click); #line default #line hidden return; case 89: this.mainTabHash = ((System.Windows.Controls.TabItem)(target)); return; case 90: this.HashGrid = ((System.Windows.Controls.Grid)(target)); return; case 91: this.hashInPath = ((System.Windows.Controls.TextBox)(target)); #line 341 "..\..\MainWnd.xaml" this.hashInPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.hashInPath_TextChanged); #line default #line hidden return; case 92: this.hashInSize = ((System.Windows.Controls.Label)(target)); return; case 93: this.hashInBrowse = ((System.Windows.Controls.Button)(target)); #line 343 "..\..\MainWnd.xaml" this.hashInBrowse.Click += new System.Windows.RoutedEventHandler(this.HashBrowseIn_Click); #line default #line hidden return; case 94: this.hashOutPath = ((System.Windows.Controls.TextBox)(target)); #line 344 "..\..\MainWnd.xaml" this.hashOutPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.hashOutPath_TextChanged); #line default #line hidden return; case 95: this.hashOutSize = ((System.Windows.Controls.Label)(target)); return; case 96: this.hashOutBrowse = ((System.Windows.Controls.Button)(target)); #line 346 "..\..\MainWnd.xaml" this.hashOutBrowse.Click += new System.Windows.RoutedEventHandler(this.HashBrowseOut_Click); #line default #line hidden return; case 97: this.hashOptGrid = ((System.Windows.Controls.Grid)(target)); return; case 98: this.hashOutT = ((System.Windows.Controls.TextBox)(target)); #line 357 "..\..\MainWnd.xaml" this.hashOutT.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.hashOutT_TextChanged); #line default #line hidden return; case 99: this.hashOutAlgol = ((System.Windows.Controls.ComboBox)(target)); return; case 100: this.hashOutA1 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 101: this.hashOutA2 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 102: this.hashOutA3 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 103: this.hashOutA4 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 104: this.hashOutA5 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 105: this.hashOutA6 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 106: this.hashOutView = ((System.Windows.Controls.Button)(target)); #line 366 "..\..\MainWnd.xaml" this.hashOutView.Click += new System.Windows.RoutedEventHandler(this.hashOutView_Click); #line default #line hidden return; case 107: this.hashOutCopy = ((System.Windows.Controls.Button)(target)); #line 367 "..\..\MainWnd.xaml" this.hashOutCopy.Click += new System.Windows.RoutedEventHandler(this.hashOutCopy_Click); #line default #line hidden return; case 108: this.hashOpenOutDir = ((System.Windows.Controls.Button)(target)); #line 368 "..\..\MainWnd.xaml" this.hashOpenOutDir.Click += new System.Windows.RoutedEventHandler(this.hashOpenOutDir_Click); #line default #line hidden return; case 109: this.hashViewSum = ((System.Windows.Controls.Button)(target)); return; case 110: this.hashStart = ((System.Windows.Controls.Button)(target)); #line 370 "..\..\MainWnd.xaml" this.hashStart.Click += new System.Windows.RoutedEventHandler(this.hashStart_Click); #line default #line hidden return; case 111: this.hashOptMD5 = ((System.Windows.Controls.CheckBox)(target)); return; case 112: this.hashOptCRC32 = ((System.Windows.Controls.CheckBox)(target)); return; case 113: this.hashOptSHA1 = ((System.Windows.Controls.CheckBox)(target)); return; case 114: this.hashOptSHA2 = ((System.Windows.Controls.CheckBox)(target)); return; case 115: this.hashOptSHA3 = ((System.Windows.Controls.CheckBox)(target)); return; case 116: this.hashOptSHA4 = ((System.Windows.Controls.CheckBox)(target)); return; case 117: this.hashSaveRes = ((System.Windows.Controls.CheckBox)(target)); return; case 118: this.mainTabCompare = ((System.Windows.Controls.TabItem)(target)); return; case 119: this.diffInPath = ((System.Windows.Controls.TextBox)(target)); #line 393 "..\..\MainWnd.xaml" this.diffInPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.diffInPath_TextChanged); #line default #line hidden return; case 120: this.diffInBrowse = ((System.Windows.Controls.Button)(target)); #line 394 "..\..\MainWnd.xaml" this.diffInBrowse.Click += new System.Windows.RoutedEventHandler(this.diffInBrowse_Click); #line default #line hidden return; case 121: this.diffOutPath = ((System.Windows.Controls.TextBox)(target)); #line 395 "..\..\MainWnd.xaml" this.diffOutPath.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.diffOutPath_TextChanged); #line default #line hidden return; case 122: this.diffOutBrowse = ((System.Windows.Controls.Button)(target)); #line 396 "..\..\MainWnd.xaml" this.diffOutBrowse.Click += new System.Windows.RoutedEventHandler(this.diffOutBrowse_Click); #line default #line hidden return; case 123: this.diffStart = ((System.Windows.Controls.Button)(target)); #line 397 "..\..\MainWnd.xaml" this.diffStart.Click += new System.Windows.RoutedEventHandler(this.diffStart_Click); #line default #line hidden return; case 124: this.diffOpenOutDir = ((System.Windows.Controls.Button)(target)); #line 398 "..\..\MainWnd.xaml" this.diffOpenOutDir.Click += new System.Windows.RoutedEventHandler(this.diffOpenOutDir_Click); #line default #line hidden return; case 125: this.diffViewSum = ((System.Windows.Controls.Button)(target)); return; case 126: this.diffInSize = ((System.Windows.Controls.Label)(target)); return; case 127: this.diffOutSize = ((System.Windows.Controls.Label)(target)); return; case 128: this.taskCancel = ((System.Windows.Controls.Button)(target)); return; case 129: this.taskChildProgress = ((System.Windows.Controls.ProgressBar)(target)); return; case 130: this.taskMainProgress = ((System.Windows.Controls.ProgressBar)(target)); return; case 131: this.taskChildStatus = ((System.Windows.Controls.Label)(target)); return; case 132: this.taskMainStatus = ((System.Windows.Controls.Label)(target)); return; case 133: this.taskProgress = ((System.Windows.Controls.Label)(target)); return; case 134: this.taskSize = ((System.Windows.Controls.Label)(target)); return; case 135: this.taskElapsed = ((System.Windows.Controls.Label)(target)); return; case 136: this.taskRemaining = ((System.Windows.Controls.Label)(target)); return; case 137: this.taskHide = ((System.Windows.Controls.Button)(target)); return; case 138: this.mainStatusBar = ((System.Windows.Controls.Primitives.StatusBar)(target)); return; case 139: this.siStatus = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 140: this.prgStatus = ((System.Windows.Controls.ProgressBar)(target)); #line 424 "..\..\MainWnd.xaml" this.prgStatus.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.prgStatus_ValueChanged); #line default #line hidden return; } this._contentLoaded = true; }
/// <summary> /// Creates a new Editor Manager /// </summary> /// <param name="editor">AvalonEdit Editor</param> /// <param name="highlightersMenu">MenuItem under which Syntax Highlighting options are displayed</param> /// <param name="currSyntax">StatusBarItem to display current Syntax in</param> /// <param name="validatorStatus">StatusBarItem to display Validation Status in</param> public EditorManager(TextEditor editor, MenuItem highlightersMenu, StatusBarItem currSyntax, StatusBarItem validatorStatus) : this(editor, highlightersMenu, currSyntax) { this._validatorStatus = validatorStatus; this._validateAsYouType = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 8 "..\..\MainWindow.xaml" ((PluggableRepoClient.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 9 "..\..\MainWindow.xaml" ((PluggableRepoClient.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.tabCntrl = ((System.Windows.Controls.TabControl)(target)); return; case 3: this.navTab = ((System.Windows.Controls.TabItem)(target)); return; case 4: this.filesLabel = ((System.Windows.Controls.Label)(target)); return; case 5: this.TestDriver = ((System.Windows.Controls.Label)(target)); return; case 6: this.testDriverListBox = ((System.Windows.Controls.ListBox)(target)); #line 63 "..\..\MainWindow.xaml" this.testDriverListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.testDriverListBox_MouseDoubleClick); #line default #line hidden return; case 7: this.TestFiles = ((System.Windows.Controls.Label)(target)); return; case 8: this.filesListBox = ((System.Windows.Controls.ListBox)(target)); #line 67 "..\..\MainWindow.xaml" this.filesListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.filesListBox_MouseDoubleClick); #line default #line hidden return; case 9: this.AddTest = ((System.Windows.Controls.Button)(target)); #line 68 "..\..\MainWindow.xaml" this.AddTest.Click += new System.Windows.RoutedEventHandler(this.AddTestButton_Click); #line default #line hidden return; case 10: this.TestRequest = ((System.Windows.Controls.Button)(target)); #line 69 "..\..\MainWindow.xaml" this.TestRequest.Click += new System.Windows.RoutedEventHandler(this.CreateTestRequestButton_Click); #line default #line hidden return; case 11: this.requestFiles = ((System.Windows.Controls.Button)(target)); #line 70 "..\..\MainWindow.xaml" this.requestFiles.Click += new System.Windows.RoutedEventHandler(this.requestFileClick); #line default #line hidden return; case 12: this.StartMotherBuilder = ((System.Windows.Controls.TabItem)(target)); return; case 13: this.StartLabel = ((System.Windows.Controls.Label)(target)); return; case 14: this.noOfProcessesLabel = ((System.Windows.Controls.Label)(target)); return; case 15: this.noOfProcessesTextBox = ((System.Windows.Controls.TextBox)(target)); return; case 16: this.StartBuilder = ((System.Windows.Controls.Button)(target)); #line 83 "..\..\MainWindow.xaml" this.StartBuilder.Click += new System.Windows.RoutedEventHandler(this.StartBuilderButton_Click); #line default #line hidden return; case 17: this.StopBuilder = ((System.Windows.Controls.Button)(target)); #line 84 "..\..\MainWindow.xaml" this.StopBuilder.Click += new System.Windows.RoutedEventHandler(this.StopBuilderButton_Click); #line default #line hidden return; case 18: this.ViewLog = ((System.Windows.Controls.TabItem)(target)); return; case 19: this.LogFiles = ((System.Windows.Controls.Label)(target)); return; case 20: this.logListBox = ((System.Windows.Controls.ListBox)(target)); #line 99 "..\..\MainWindow.xaml" this.logListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.logListBox_MouseDoubleClick); #line default #line hidden return; case 21: this.Refresh = ((System.Windows.Controls.Button)(target)); #line 100 "..\..\MainWindow.xaml" this.Refresh.Click += new System.Windows.RoutedEventHandler(this.Refresh_Click); #line default #line hidden return; case 22: this.ViewTestLog = ((System.Windows.Controls.TabItem)(target)); return; case 23: this.TestLogFiles = ((System.Windows.Controls.Label)(target)); return; case 24: this.testLogListBox = ((System.Windows.Controls.ListBox)(target)); #line 115 "..\..\MainWindow.xaml" this.testLogListBox.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.testLogListBox_MouseDoubleClick); #line default #line hidden return; case 25: this.TestRefresh = ((System.Windows.Controls.Button)(target)); #line 116 "..\..\MainWindow.xaml" this.TestRefresh.Click += new System.Windows.RoutedEventHandler(this.Test_Refresh_Click); #line default #line hidden return; case 26: this.status = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 27: this.statusLabel = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 10 "..\..\..\MainWindow.xaml" ((AGV_WPF.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 10 "..\..\..\MainWindow.xaml" ((AGV_WPF.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this._loading = ((NS_LoadingWait.LoadingWait)(target)); return; case 3: this.menu = ((System.Windows.Controls.Menu)(target)); return; case 4: this.MenuAGVManager = ((System.Windows.Controls.MenuItem)(target)); return; case 5: this.AGVPara = ((System.Windows.Controls.MenuItem)(target)); #line 40 "..\..\..\MainWindow.xaml" this.AGVPara.Click += new System.Windows.RoutedEventHandler(this.AGVPara_Click); #line default #line hidden return; case 6: this.Mark = ((System.Windows.Controls.MenuItem)(target)); #line 45 "..\..\..\MainWindow.xaml" this.Mark.Click += new System.Windows.RoutedEventHandler(this.Mark_Click); #line default #line hidden return; case 7: this.Route = ((System.Windows.Controls.MenuItem)(target)); #line 50 "..\..\..\MainWindow.xaml" this.Route.Click += new System.Windows.RoutedEventHandler(this.Route_Click); #line default #line hidden return; case 8: this.Traffic = ((System.Windows.Controls.MenuItem)(target)); #line 55 "..\..\..\MainWindow.xaml" this.Traffic.Click += new System.Windows.RoutedEventHandler(this.Traffic_Click); #line default #line hidden return; case 9: this.WorkLine = ((System.Windows.Controls.MenuItem)(target)); #line 60 "..\..\..\MainWindow.xaml" this.WorkLine.Click += new System.Windows.RoutedEventHandler(this.WorkLine_Click); #line default #line hidden return; case 10: this.DockArea = ((System.Windows.Controls.MenuItem)(target)); #line 65 "..\..\..\MainWindow.xaml" this.DockArea.Click += new System.Windows.RoutedEventHandler(this.DockArea_Click); #line default #line hidden return; case 11: this.ChargeArea = ((System.Windows.Controls.MenuItem)(target)); #line 70 "..\..\..\MainWindow.xaml" this.ChargeArea.Click += new System.Windows.RoutedEventHandler(this.ChargeArea_Click); #line default #line hidden return; case 12: this.Speed = ((System.Windows.Controls.MenuItem)(target)); #line 75 "..\..\..\MainWindow.xaml" this.Speed.Click += new System.Windows.RoutedEventHandler(this.Speed_Click); #line default #line hidden return; case 13: this.Custom = ((System.Windows.Controls.MenuItem)(target)); #line 80 "..\..\..\MainWindow.xaml" this.Custom.Click += new System.Windows.RoutedEventHandler(this.Custom_Click); #line default #line hidden return; case 14: this.MenuCallManage = ((System.Windows.Controls.MenuItem)(target)); return; case 15: #line 87 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallManage_Click); #line default #line hidden return; case 16: #line 92 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CallAddressSet_Click); #line default #line hidden return; case 17: this.MenuSystemManage = ((System.Windows.Controls.MenuItem)(target)); return; case 18: #line 99 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.UserManage_Click); #line default #line hidden return; case 19: this.MenuSettings = ((System.Windows.Controls.MenuItem)(target)); return; case 20: this.ControlCOM = ((System.Windows.Controls.MenuItem)(target)); #line 106 "..\..\..\MainWindow.xaml" this.ControlCOM.Click += new System.Windows.RoutedEventHandler(this.ControlCOM_Click); #line default #line hidden return; case 21: this.MCallCOM = ((System.Windows.Controls.MenuItem)(target)); #line 111 "..\..\..\MainWindow.xaml" this.MCallCOM.Click += new System.Windows.RoutedEventHandler(this.CallCOM_Click); #line default #line hidden return; case 22: #line 118 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.PassWord_Click); #line default #line hidden return; case 23: #line 125 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exception_Click); #line default #line hidden return; case 24: #line 132 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Help_Click); #line default #line hidden return; case 25: #line 138 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.About_Click); #line default #line hidden return; case 26: this.lblTime = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 27: this.lblusername = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 28: this.imgSystem = ((System.Windows.Controls.Image)(target)); return; case 29: this.lblsystemstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 30: this.imgCOM = ((System.Windows.Controls.Image)(target)); return; case 31: this.lblcomstate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 32: this.imgService = ((System.Windows.Controls.Image)(target)); return; case 33: this.lblservicestate = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 34: this.imgClient = ((System.Windows.Controls.Image)(target)); return; case 35: this.lblclientnum = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 36: this.background = ((System.Windows.Controls.Image)(target)); return; case 37: this.canvas = ((System.Windows.Controls.ZoomableCanvas)(target)); return; case 38: this.marquee = ((NS_Marquee.Marquee)(target)); return; case 39: this.dataGrid = ((System.Windows.Controls.DataGrid)(target)); return; case 40: this.expanderMain = ((System.Windows.Controls.Expander)(target)); #line 301 "..\..\..\MainWindow.xaml" this.expanderMain.MouseEnter += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseEnter); #line default #line hidden #line 301 "..\..\..\MainWindow.xaml" this.expanderMain.MouseLeave += new System.Windows.Input.MouseEventHandler(this.expanderMain_MouseLeave); #line default #line hidden return; case 41: this.textBlock12 = ((System.Windows.Controls.TextBlock)(target)); return; case 42: this.cb_AgvNum = ((System.Windows.Controls.ComboBox)(target)); #line 334 "..\..\..\MainWindow.xaml" this.cb_AgvNum.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cb_AgvNum_SelectionChanged); #line default #line hidden return; case 43: this.textBlock9 = ((System.Windows.Controls.TextBlock)(target)); return; case 44: this.cb_Operation = ((System.Windows.Controls.ComboBox)(target)); return; case 45: this.label1 = ((System.Windows.Controls.TextBlock)(target)); return; case 46: this.cb_Speed = ((System.Windows.Controls.ComboBox)(target)); return; case 47: this.textBlock11 = ((System.Windows.Controls.TextBlock)(target)); return; case 48: this.cb_LineNum = ((System.Windows.Controls.ComboBox)(target)); return; case 49: this.btnControl = ((System.Windows.Controls.Button)(target)); #line 355 "..\..\..\MainWindow.xaml" this.btnControl.Click += new System.Windows.RoutedEventHandler(this.btnControl_Click); #line default #line hidden return; case 50: this.cbautoshift = ((System.Windows.Controls.CheckBox)(target)); #line 363 "..\..\..\MainWindow.xaml" this.cbautoshift.Checked += new System.Windows.RoutedEventHandler(this.cbautoshift_Checked); #line default #line hidden #line 363 "..\..\..\MainWindow.xaml" this.cbautoshift.Unchecked += new System.Windows.RoutedEventHandler(this.cbautoshift_Unchecked); #line default #line hidden return; case 51: this.tbpageinterval = ((System.Windows.Controls.TextBox)(target)); #line 366 "..\..\..\MainWindow.xaml" this.tbpageinterval.AddHandler(System.Windows.DataObject.PastingEvent, new System.Windows.DataObjectPastingEventHandler(this.tbpageinterval_Pasting)); #line default #line hidden #line 366 "..\..\..\MainWindow.xaml" this.tbpageinterval.PreviewKeyDown += new System.Windows.Input.KeyEventHandler(this.tbpageinterval_PreviewKeyDown); #line default #line hidden #line 366 "..\..\..\MainWindow.xaml" this.tbpageinterval.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.tbpageinterval_PreviewTextInput); #line default #line hidden #line 366 "..\..\..\MainWindow.xaml" this.tbpageinterval.LostFocus += new System.Windows.RoutedEventHandler(this.tbpageinterval_LostFocus); #line default #line hidden return; case 52: this.btn_OpenSystem = ((System.Windows.Controls.Button)(target)); #line 379 "..\..\..\MainWindow.xaml" this.btn_OpenSystem.Click += new System.Windows.RoutedEventHandler(this.btn_OpenSystem_Click); #line default #line hidden return; case 53: this.btn_CloseSystem = ((System.Windows.Controls.Button)(target)); #line 380 "..\..\..\MainWindow.xaml" this.btn_CloseSystem.Click += new System.Windows.RoutedEventHandler(this.btn_CloseSystem_Click); #line default #line hidden return; } this._contentLoaded = true; }
/// <summary> /// Creates a new Editor Manager /// </summary> /// <param name="editor">AvalonEdit Editor</param> /// <param name="highlightersMenu">MenuItem under which Syntax Highlighting options are displayed</param> /// <param name="currSyntax">StatusBarItem to display current Syntax in</param> public EditorManager(TextEditor editor, MenuItem highlightersMenu, StatusBarItem currSyntax) : this(editor, highlightersMenu) { this._stsCurrSyntax = currSyntax; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 7 "..\..\..\MainWindow.xaml" ((MapEditor_Tilemap.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden #line 7 "..\..\..\MainWindow.xaml" ((MapEditor_Tilemap.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: this.mitFile = ((System.Windows.Controls.MenuItem)(target)); return; case 3: this.mitNew = ((System.Windows.Controls.MenuItem)(target)); #line 18 "..\..\..\MainWindow.xaml" this.mitNew.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 4: this.mitOpen = ((System.Windows.Controls.MenuItem)(target)); #line 20 "..\..\..\MainWindow.xaml" this.mitOpen.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 5: this.mitSave = ((System.Windows.Controls.MenuItem)(target)); #line 22 "..\..\..\MainWindow.xaml" this.mitSave.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 6: this.mitSaveAs = ((System.Windows.Controls.MenuItem)(target)); #line 23 "..\..\..\MainWindow.xaml" this.mitSaveAs.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 7: this.sepExport = ((System.Windows.Controls.Separator)(target)); return; case 8: this.mitExport = ((System.Windows.Controls.MenuItem)(target)); return; case 9: this.mitOptions = ((System.Windows.Controls.MenuItem)(target)); #line 27 "..\..\..\MainWindow.xaml" this.mitOptions.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 10: this.mitClose = ((System.Windows.Controls.MenuItem)(target)); #line 29 "..\..\..\MainWindow.xaml" this.mitClose.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 11: this.mitMap = ((System.Windows.Controls.MenuItem)(target)); return; case 12: this.mitMapInfo = ((System.Windows.Controls.MenuItem)(target)); #line 32 "..\..\..\MainWindow.xaml" this.mitMapInfo.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 13: this.mitMapProperty = ((System.Windows.Controls.MenuItem)(target)); #line 33 "..\..\..\MainWindow.xaml" this.mitMapProperty.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 14: this.mitInfo = ((System.Windows.Controls.MenuItem)(target)); return; case 15: this.mitAbout = ((System.Windows.Controls.MenuItem)(target)); #line 36 "..\..\..\MainWindow.xaml" this.mitAbout.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 16: this.mitHelp = ((System.Windows.Controls.MenuItem)(target)); #line 37 "..\..\..\MainWindow.xaml" this.mitHelp.Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click); #line default #line hidden return; case 17: this.grbMap = ((System.Windows.Controls.GroupBox)(target)); return; case 18: this.grdMap = ((System.Windows.Controls.Grid)(target)); return; case 19: this.grbTile = ((System.Windows.Controls.GroupBox)(target)); return; case 20: #line 51 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.TabControl)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.TabControl_SelectionChanged); #line default #line hidden return; case 21: this.taiTerrain = ((System.Windows.Controls.TabItem)(target)); return; case 22: #line 53 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.ScrollViewer)(target)).PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.ScrollViewer_PreviewMouseWheel); #line default #line hidden return; case 23: this.livTerrain = ((System.Windows.Controls.ListView)(target)); #line 54 "..\..\..\MainWindow.xaml" this.livTerrain.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListView_SelectionChanged); #line default #line hidden return; case 24: this.taiRessource = ((System.Windows.Controls.TabItem)(target)); return; case 25: #line 60 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.ScrollViewer)(target)).PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.ScrollViewer_PreviewMouseWheel); #line default #line hidden return; case 26: this.livRessource = ((System.Windows.Controls.ListView)(target)); #line 61 "..\..\..\MainWindow.xaml" this.livRessource.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListView_SelectionChanged); #line default #line hidden return; case 27: this.taiDecal = ((System.Windows.Controls.TabItem)(target)); return; case 28: #line 67 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.ScrollViewer)(target)).PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.ScrollViewer_PreviewMouseWheel); #line default #line hidden return; case 29: this.livDecal = ((System.Windows.Controls.ListView)(target)); #line 68 "..\..\..\MainWindow.xaml" this.livDecal.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListView_SelectionChanged); #line default #line hidden return; case 30: this.taiModify = ((System.Windows.Controls.TabItem)(target)); return; case 31: #line 74 "..\..\..\MainWindow.xaml" ((System.Windows.Controls.ScrollViewer)(target)).PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.ScrollViewer_PreviewMouseWheel); #line default #line hidden return; case 32: this.livModification = ((System.Windows.Controls.ListView)(target)); #line 75 "..\..\..\MainWindow.xaml" this.livModification.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ListView_SelectionChanged); #line default #line hidden return; case 33: this.txbCursorX = ((System.Windows.Controls.TextBlock)(target)); return; case 34: this.txbCursorY = ((System.Windows.Controls.TextBlock)(target)); return; case 35: this.sbiCenter = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 36: this.txbStatusCenter = ((System.Windows.Controls.TextBlock)(target)); return; case 37: this.sbiProgress = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 38: this.pgbAdvantage = ((System.Windows.Controls.ProgressBar)(target)); return; case 39: this.sbiRight = ((System.Windows.Controls.Primitives.StatusBarItem)(target)); return; case 40: this.txbStatusRight = ((System.Windows.Controls.TextBlock)(target)); return; } this._contentLoaded = true; }
/// <summary> /// Creates a new Editor Manager /// </summary> /// <param name="editor">AvalonEdit Editor</param> /// <param name="highlightersMenu">MenuItem under which Syntax Highlighting options are displayed</param> /// <param name="currSyntax">StatusBarItem to display current Syntax in</param> /// <param name="validatorStatus">StatusBarItem to display Validation Status in</param> /// <param name="symbolSelectorsMenu">MenuItem under which Symbol Selector Modes are displayed</param> public EditorManager(TextEditor editor, MenuItem highlightersMenu, StatusBarItem currSyntax, StatusBarItem validatorStatus, MenuItem symbolSelectorsMenu) : this(editor, highlightersMenu, currSyntax, validatorStatus) { this._selectorModeMenu = symbolSelectorsMenu; if (Properties.Settings.Default.SymbolSelectionMode.Equals("Default")) { this.SetSymbolSelector(this._selector); } else { this.SetSymbolSelector(Properties.Settings.Default.SymbolSelectionMode); } //Need to register the Event Handlers for the Menu Items in the Selector Mode Menu foreach (MenuItem item in this._selectorModeMenu.Items.OfType<MenuItem>()) { if (item.Tag != null) { item.Click += new RoutedEventHandler(SelectorModeClick); } } }
Window win; // Window created from XAML. #endregion Fields #region Constructors // Constructor. public XamlCruncher() { // New filter for File Open and Save dialog boxes. strFilter = "XAML Files(*.xaml)|*.xaml|All Files(*.*)|*.*"; // Find the DockPanel and remove the TextBox from it. DockPanel dock = txtbox.Parent as DockPanel; dock.Children.Remove(txtbox); // Create a Grid with three rows and columns, all 0 pixels. Grid grid = new Grid(); dock.Children.Add(grid); for (int i = 0; i < 3; i++) { RowDefinition rowdef = new RowDefinition(); rowdef.Height = new GridLength(0); grid.RowDefinitions.Add(rowdef); ColumnDefinition coldef = new ColumnDefinition(); coldef.Width = new GridLength(0); grid.ColumnDefinitions.Add(coldef); } // Initialize the first row and column to 100*. grid.RowDefinitions[0].Height = new GridLength(100, GridUnitType.Star); grid.ColumnDefinitions[0].Width = new GridLength(100, GridUnitType.Star); // Add two GridSplitter controls to the Grid. GridSplitter split = new GridSplitter(); split.HorizontalAlignment = HorizontalAlignment.Stretch; split.VerticalAlignment = VerticalAlignment.Center; split.Height = 6; grid.Children.Add(split); Grid.SetRow(split, 1); Grid.SetColumn(split, 0); Grid.SetColumnSpan(split, 3); split = new GridSplitter(); split.HorizontalAlignment = HorizontalAlignment.Center; split.VerticalAlignment = VerticalAlignment.Stretch; split.Width = 6; grid.Children.Add(split); Grid.SetRow(split, 0); Grid.SetColumn(split, 1); Grid.SetRowSpan(split, 3); // Create a Frame for displaying XAML object. frameParent = new Frame(); frameParent.NavigationUIVisibility = NavigationUIVisibility.Hidden; grid.Children.Add(frameParent); // Put the TextBox in the Grid. txtbox.TextChanged += TextBoxOnTextChanged; grid.Children.Add(txtbox); // Case the loaded settings to XamlCruncherSettings. settingsXaml = (XamlCruncherSettings)settings; // Insert "Xaml" item on top-level menu. MenuItem itemXaml = new MenuItem(); itemXaml.Header = "_Xaml"; menu.Items.Insert(menu.Items.Count - 1, itemXaml); // Create XamlOrientationMenuItem & add to menu. itemOrientation = new XamlOrientationMenuItem(grid, txtbox, frameParent); itemOrientation.Orientation = settingsXaml.Orientation; itemXaml.Items.Add(itemOrientation); // Menu item to set tab spaces. MenuItem itemTabs = new MenuItem(); itemTabs.Header = "_Tab Spaces..."; itemTabs.Click += TabSpacesOnClick; itemXaml.Items.Add(itemTabs); // Menu item to suppress parsing. MenuItem itemNoParse = new MenuItem(); itemNoParse.Header = "_Suspend Parsing"; itemNoParse.IsCheckable = true; itemNoParse.SetBinding(MenuItem.IsCheckedProperty, "IsSuspendParsing"); itemNoParse.DataContext = this; itemXaml.Items.Add(itemNoParse); // Command to reparse. InputGestureCollection collGest = new InputGestureCollection(); collGest.Add(new KeyGesture(Key.F6)); RoutedUICommand commReparse = new RoutedUICommand("_Reparse", "Reparse", GetType(), collGest); // Menu item to reparse. MenuItem itemReparse = new MenuItem(); itemReparse.Command = commReparse; itemXaml.Items.Add(itemReparse); // Command binding to reparse. CommandBindings.Add(new CommandBinding(commReparse, ReparseOnExecuted)); // Command to show window. collGest = new InputGestureCollection(); collGest.Add(new KeyGesture(Key.F7)); RoutedUICommand commShowWin = new RoutedUICommand("Show _Window", "ShowWindow", GetType(), collGest); // Menu item to show window. MenuItem itemShowWin = new MenuItem(); itemShowWin.Command = commShowWin; itemXaml.Items.Add(itemShowWin); // Command binding to show window. CommandBindings.Add(new CommandBinding(commShowWin, ShowWindowOnExecuted, ShowWindowCanExecute)); // Menu item to save as new startup document. MenuItem itemTemplate = new MenuItem(); itemTemplate.Header = "Save as Startup _Document"; itemTemplate.Click += NewStartupOnClick; itemXaml.Items.Add(itemTemplate); // Insert Help on Help menu. MenuItem itemXamlHelp = new MenuItem(); itemXamlHelp.Header = "_Help..."; itemXamlHelp.Click += HelpOnClick; MenuItem itemHelp = (MenuItem)menu.Items[menu.Items.Count - 1]; itemHelp.Items.Insert(0, itemXamlHelp); // New StatusBar item. statusParse = new StatusBarItem(); status.Items.Insert(0, statusParse); status.Visibility = Visibility.Visible; // Install handler for unhandled exception. // Comment out this code when experimenting with new features // or changes to the program! Dispatcher.UnhandledException += DispatcherOnUnhandledException; }