コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 2:
                this.SideBarExplorer = ((AvalonDock.DockablePane)(target));
                return;

            case 3:
                this.MainComponentContainer = ((AvalonDock.DocumentPane)(target));
                return;

            case 4:
                this.errorsContent = ((AvalonDock.DockableContent)(target));
                return;

            case 5:
                this.output = ((AvalonDock.DockableContent)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.dockingManager = ((AvalonDock.DockingManager)(target));

            #line 10 "..\..\Window4.xaml"
                this.dockingManager.Loaded += new System.Windows.RoutedEventHandler(this.dockingManager_Loaded);

            #line default
            #line hidden

            #line 10 "..\..\Window4.xaml"
                this.dockingManager.RequestDocumentClose += new System.EventHandler <AvalonDock.RequestDocumentCloseEventArgs>(this.dockingManager_RequestDocumentClose);

            #line default
            #line hidden
                return;

            case 3:
                this._documentHost = ((AvalonDock.DocumentPane)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #3
0
        public DocumentFloatingWindow(DockingManager manager, DocumentContent content)
            : this(manager)
        {
            //create a new temporary pane
            FloatingDockablePane pane = new FloatingDockablePane(this);

            //setup window size
            Width = content.ContainerPane.ActualWidth;
            Height = content.ContainerPane.ActualHeight;

            //save current content position in container pane
            _previousPane = content.ContainerPane;
            _arrayIndexPreviousPane = _previousPane.Items.IndexOf(content);
            pane.SetValue(ResizingPanel.ResizeWidthProperty, _previousPane.GetValue(ResizingPanel.ResizeWidthProperty));
            pane.SetValue(ResizingPanel.ResizeHeightProperty, _previousPane.GetValue(ResizingPanel.ResizeHeightProperty));

            //remove content from container pane
            content.ContainerPane.RemoveContent(_arrayIndexPreviousPane);

            //add content to my temporary pane
            pane.Items.Add(content);

            //let templates access this pane
            HostedPane = pane;

            if (IsDocumentFloatingAllowed)
            {
                AllowsTransparency = false;
                WindowStyle = WindowStyle.ToolWindow;
                NotifyPropertyChanged("IsDocumentFloatingAllowed");
            }
        }
コード例 #4
0
 public DocumentNavigatorWindow(DockingManager manager)
     : this()
 {
     _manager = manager;
     Keyboard.AddKeyUpHandler(this, new KeyEventHandler(this.OnKeyUp));
     Keyboard.AddKeyDownHandler(this, new KeyEventHandler(this.OnKeyDown));
 }
コード例 #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:
                this.dockManager = ((AvalonDock.DockingManager)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mnuFlipContent = ((System.Windows.Controls.MenuItem)(target));

            #line 12 "..\..\Window5.xaml"
                this.mnuFlipContent.Click += new System.Windows.RoutedEventHandler(this.ShowDockingManager_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.TestContainer = ((System.Windows.Controls.ContentControl)(target));
                return;

            case 3:
                this._dockingManager = ((AvalonDock.DockingManager)(target));

            #line 16 "..\..\Window5.xaml"
                this._dockingManager.Loaded += new System.Windows.RoutedEventHandler(this._dockingManager_Loaded);

            #line default
            #line hidden
                return;

            case 4:
                this.content1 = ((AvalonDock.DockableContent)(target));
                return;

            case 5:
                this.content2 = ((AvalonDock.DockableContent)(target));
                return;

            case 6:
                this.content3 = ((AvalonDock.DockableContent)(target));
                return;

            case 7:
                this.bottomPanel = ((AvalonDock.ResizingPanel)(target));
                return;

            case 8:
                this.ShowMeFirst = ((AvalonDock.DockableContent)(target));
                return;

            case 9:
                this.ShowMeSecond = ((AvalonDock.DockableContent)(target));
                return;

            case 10:
                this.AlsoShowMeSecond = ((AvalonDock.DockableContent)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #7
0
ファイル: AvalonEdit.cs プロジェクト: NightmareX1337/lfs
 public static TextEditor FindTextEditorByDocumentText(DockingManager dm, TextDocument dt)
 {
     foreach (DocumentContent dc in dm.Documents)
     {
         TextEditor te = Utils.AvalonEdit.GetTextEditorFromContent(dc.Content);
         if (te.Document.Equals(dt)) return te;
     }
     return null;
 }
コード例 #8
0
ファイル: AvalonDock.cs プロジェクト: NightmareX1337/lfs
 public static DocumentContent GetDocumentContentByName(DockingManager dm, string fullname)
 {
     foreach (DocumentContent dc in dm.Documents)
     {
         if (dc.Tag.ToString().Contains(fullname))
             return dc;
     }
     return null;
 }
コード例 #9
0
ファイル: DragPaneServices.cs プロジェクト: Altaxo/Altaxo
        public DragPaneServices(DockingManager owner)
        {
            if (DesignerProperties.GetIsInDesignMode(owner))
                throw new NotSupportedException("DragPaneServices not valid in design mode");

            if (owner == null)
                throw new ArgumentNullException("owner");

            _owner = owner;
        }
コード例 #10
0
ファイル: Window2.g.cs プロジェクト: Reticulatas/AvalonDock
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.dockManager = ((AvalonDock.DockingManager)(target));
     return;
     case 2:
     this.documentsHost = ((AvalonDock.DocumentPane)(target));
     return;
     }
     this._contentLoaded = true;
 }
コード例 #11
0
        public void Load(DockingManager dockingManager)
        {
            var serializer = new XmlLayoutSerializer(dockingManager);
            serializer.LayoutSerializationCallback += (s, args) =>
            {
                args.Content = args.Content;
            };

            if (File.Exists(LayoutFileName))
            {
                serializer.Deserialize(LayoutFileName);
            }
        }
コード例 #12
0
 public void LoadLayout(DockingManager dockingManager)
 {
     var layoutSerializer = new XmlLayoutSerializer(dockingManager);
     layoutSerializer.LayoutSerializationCallback += (s, e) =>
     {
         e.Content = Application.Current.MainWindow.FindName(e.Model.ContentId);
         //if (e.Model.ContentId == FileStatsViewModel.ToolContentId)
         //    e.Content = Workspace.This.FileStats;
         //else if (!string.IsNullOrWhiteSpace(e.Model.ContentId) &&
         //    File.Exists(e.Model.ContentId))
         //    e.Content = Workspace.This.Open(e.Model.ContentId);
     };
     layoutSerializer.Deserialize(LayoutConfigFile);
 }
コード例 #13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 2:
                this.documentsHost = ((AvalonDock.DocumentPane)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #14
0
        protected override void OnManagerChanged(DockingManager oldValue, DockingManager newValue)
        {
            if (oldValue != null)
            {
                oldValue.ActiveDocumentChanged -= new EventHandler(ActiveDocumentChanged);
            }

            if (newValue != null)
            {
                newValue.ActiveDocumentChanged += new EventHandler(ActiveDocumentChanged);
            }

            base.OnManagerChanged(oldValue, newValue);
        }
コード例 #15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 2:
                this.SideBarExplorer = ((AvalonDock.DockablePane)(target));

            #line 7 "..\..\Panels.xaml"
                this.SideBarExplorer.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.SideBarExplorerSelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.MainComponentContainer = ((AvalonDock.DocumentPane)(target));

            #line 8 "..\..\Panels.xaml"
                this.MainComponentContainer.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.MainComponentContainerSelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.BottomBar = ((AvalonDock.DockablePane)(target));
                return;

            case 5:
                this.errorPane = ((AvalonDock.DockableContent)(target));
                return;

            case 6:
                this.outputPane = ((AvalonDock.DockableContent)(target));
                return;

            case 7:
                this.listView1 = ((System.Windows.Controls.ListView)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this._dockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 2:
                this.UpperContent = ((AvalonDock.DockableContent)(target));
                return;

            case 3:
                this.LowerContent = ((AvalonDock.DockableContent)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #17
0
ファイル: MainWindow.g.i.cs プロジェクト: junelp01/sbaproject
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((Edi.View.MainWindow)(target));
                return;

            case 2:

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

            #line default
            #line hidden
                return;

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

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

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

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

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

            case 8:
                this.dockManager = ((AvalonDock.DockingManager)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

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

            #line default
            #line hidden
                return;

            case 2:
                this.dockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 3:
                this.resizeScenarioPanel = ((AvalonDock.ResizingPanel)(target));
                return;

            case 4:
                this.scenarioDocumentPane = ((AvalonDock.DocumentPane)(target));
                return;

            case 5:
                this.messagesDockPane = ((AvalonDock.DockablePane)(target));
                return;

            case 6:
                this.messagesPane = ((AvalonDock.DockableContent)(target));
                return;

            case 7:
                this.txtMessages = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #19
0
        public FlyoutDockablePane(DockableContent content)
        {
            _referencedPane = content.ContainerPane as DockablePane;
            _manager = _referencedPane.GetManager();

            //save current content position in container pane
            _arrayIndexPreviousPane = _referencedPane.Items.IndexOf(content);
            Anchor = _referencedPane.Anchor;

            //SetValue(ResizingPanel.ResizeWidthProperty, new GridLength(ResizingPanel.GetEffectiveSize(_referencedPane).Width));
            //SetValue(ResizingPanel.ResizeHeightProperty, new GridLength(ResizingPanel.GetEffectiveSize(_referencedPane).Height));

            this.Style = _referencedPane.Style;

            //remove content from container pane
            //and add content to my temporary pane
            _referencedPane.Items.RemoveAt(_arrayIndexPreviousPane);
            this.Items.Add(content);

            //select the single content in this pane
            SelectedItem = this.Items[0];
        }
コード例 #20
0
        public DockableFloatingWindow(DockingManager manager, DockableContent content)
            : this(manager)
        {

            //create a new temporary pane
            FloatingDockablePane pane = new FloatingDockablePane(this);

            //setup window size
            //Width = content.ContainerPane.ActualWidth;
            //Height = content.ContainerPane.ActualHeight;

            if (content.FloatingWindowSize.IsEmpty)
                content.FloatingWindowSize = new Size(content.ContainerPane.ActualWidth, content.ContainerPane.ActualHeight);
            
            Width = content.FloatingWindowSize.Width;
            Height = content.FloatingWindowSize.Height;

            //save current content position in container pane
            _previousPane = content.ContainerPane;
            _arrayIndexPreviousPane = _previousPane.Items.IndexOf(content);
            
            pane.Style = content.ContainerPane.Style;

            //remove content from container pane
            content.ContainerPane.RemoveContent(_arrayIndexPreviousPane);
            
            //add content to my temporary pane
            pane.Items.Add(content);

            //let templates access this pane
            HostedPane = pane;

            //Change state on contents
            IsDockableWindow = true;

            DocumentPane originalDocumentPane = _previousPane as DocumentPane;
            if (originalDocumentPane != null)
                originalDocumentPane.CheckContentsEmpty();
        }
コード例 #21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 2:
                this.VerticalResizingPanel = ((AvalonDock.ResizingPanel)(target));
                return;

            case 3:
                this.HorizontalResizingPanel = ((AvalonDock.ResizingPanel)(target));
                return;

            case 4:
                this.DesignerDockablePane = ((AvalonDock.DocumentPane)(target));
                return;

            case 5:
                this.Placeholder1 = ((AvalonDock.DockablePane)(target));
                return;

            case 6:
                this.Placeholder2 = ((AvalonDock.DockablePane)(target));
                return;

            case 7:
                this.TabsPane = ((AvalonDock.DockablePane)(target));
                return;

            case 8:
                this.Status = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #22
0
        public FlyoutDockablePane(DockableContent content)
        {
            _referencedPane = content.ContainerPane as DockablePane;
            _manager        = _referencedPane.GetManager();

            //save current content position in container pane
            _arrayIndexPreviousPane = _referencedPane.Items.IndexOf(content);
            Anchor = _referencedPane.Anchor;

            //SetValue(ResizingPanel.ResizeWidthProperty, new GridLength(ResizingPanel.GetEffectiveSize(_referencedPane).Width));
            //SetValue(ResizingPanel.ResizeHeightProperty, new GridLength(ResizingPanel.GetEffectiveSize(_referencedPane).Height));

            Style = _referencedPane.Style;

            //remove content from container pane
            //and add content to my temporary pane
            _referencedPane.Items.RemoveAt(_arrayIndexPreviousPane);
            Items.Add(content);


            //select the single content in this pane
            SelectedItem = Items[0];
        }
コード例 #23
0
ファイル: WindowManager.cs プロジェクト: msup/RayEngine
        public WindowManager( RibbonBarPanel rib, StatusBar stat, DockPanel dock, DockingManager dockingManager )
        {
            RibbonBar = rib;
            StatusBar = stat;
            DockWindow = dock;
            DockingManager = dockingManager;
            //TabControl = tab;

            // TODO
            //var ribbonTab = new RibbonTabItem();
            //ribbonTab.Header = "ahoj";

            //var ribGroup = new RibbonGroup();
            //ribGroup.Caption = "Preprocessing";
            //ribbonTab.RibbonGroups.Add(ribGroup);

            //FIXME RibbonBar.Tabs.Add(ribbonTab);

            //var temp = new TabItem();
            //temp.Header = "Pokus";
            //var tabItems = TabControl.Items;

            // TODO: refactor -> RenderWindow
            //var wfh = new WindowsFormsHost();

            //RayCaster rc = new RayCaster();

            //OpenGLWindow glWindow = new OpenGLWindow();
            //glWindow.setRenderingMethod( rc );
            //lstGlWindows.Add( glWindow );

            //wfh.Child = lstGlWindows[ 0 ];

            //temp.Content = wfh;

            //TabControl.Items.Add( temp );
        }
コード例 #24
0
        internal NavigatorWindow(DockingManager manager)
        {
            WindowStartupLocation = WindowStartupLocation.CenterOwner;

            _manager = manager;

            var docs = new List <NavigatorWindowDocumentItem>();

            _manager.Documents.ForEach((DocumentContent doc) => { docs.Add(new NavigatorWindowDocumentItem(doc)); });

            docs.Sort((NavigatorWindowDocumentItem item1, NavigatorWindowDocumentItem item2) =>
            {
                if (item1 == item2 ||
                    item1.LastActivation == item2.LastActivation)
                {
                    return(0);
                }
                return((item1.LastActivation < item2.LastActivation) ? 1 : -1);
            });

            SetDocuments(new CollectionView(docs));

            var cnts = new List <NavigatorWindowItem>();

            _manager.DockableContents.Where(c => c.State != DockableContentState.Hidden).ForEach(
                (DockableContent cnt) => { cnts.Add(new NavigatorWindowItem(cnt)); });

            SetDockableContents(new CollectionView(cnts));

            Documents.MoveCurrentTo(
                Documents.OfType <NavigatorWindowDocumentItem>().FirstOrDefault(
                    cntItem => { return(cntItem.ItemContent == _manager.ActiveDocument); }));

            DockableContents.MoveCurrentTo(null);

            Loaded += NavigatorWindow_Loaded;
        }
コード例 #25
0
        /// <summary>
        /// Close this content without notifications
        /// </summary>
        internal void InternalClose()
        {
            this.LastActivation = DateTime.MinValue; // make this content ineligible for ActiveDocument selection when ActiveDocument is set to null
            DockingManager manager = Manager;

            if (manager != null)
            {
                if (manager.ActiveContent == this)
                {
                    manager.ActiveContent = null;
                }

                if (manager.ActiveDocument == this)
                {
                    manager.ActiveDocument = null;
                }
            }

            DocumentPane         parentPane         = ContainerPane as DocumentPane;
            FloatingDocumentPane floatingParentPane = ContainerPane as FloatingDocumentPane;

            if (floatingParentPane != null)
            {
                floatingParentPane.RemoveContent(0);
                if (floatingParentPane.FloatingWindow != null &&
                    !floatingParentPane.FloatingWindow.IsClosing)
                {
                    floatingParentPane.FloatingWindow.Close();
                }
            }
            else if (parentPane != null)
            {
                parentPane.Items.Remove(this);

                parentPane.CheckContentsEmpty();
            }
        }
コード例 #26
0
ファイル: DocumentContent.cs プロジェクト: dangtq72/BDS
        /// <summary>
        /// Close this content without notifications
        /// </summary>
        internal void InternalClose()
        {
            DockingManager manager = Manager;

            if (manager != null)
            {
                if (manager.ActiveContent == this)
                {
                    manager.ActiveContent = null;
                }

                if (manager.ActiveDocument == this)
                {
                    manager.ActiveDocument = null;
                }
            }

            DocumentPane         parentPane         = ContainerPane as DocumentPane;
            FloatingDocumentPane floatingParentPane = ContainerPane as FloatingDocumentPane;

            if (floatingParentPane != null)
            {
                floatingParentPane.RemoveContent(0);
                if (floatingParentPane.FloatingWindow != null &&
                    !floatingParentPane.FloatingWindow.IsClosing)
                {
                    floatingParentPane.FloatingWindow.Close();
                }
            }
            else if (parentPane != null)
            {
                parentPane.Items.Remove(this);

                parentPane.CheckContentsEmpty();
            }
        }
コード例 #27
0
        protected virtual void OnHeaderMouseMove(object sender, MouseEventArgs e)
        {
            Point ptMouseMove = e.GetPosition(this);

            if (!e.Handled && isMouseDown)
            {
                if (_partHeader != null &&
                    _partHeader.IsMouseOver)
                {
                    if (!IsMouseCaptured)
                    {
                        if (Math.Abs(ptMouseMove.X - ptStartDrag.X) > SystemParameters.MinimumHorizontalDragDistance ||
                            Math.Abs(ptMouseMove.Y - ptStartDrag.Y) > SystemParameters.MinimumVerticalDragDistance)
                        {
                            isMouseDown = false;
                            ReleaseMouseCapture();
                            DockingManager manager = GetManager();
                            manager.Drag(this, this.PointToScreenDPI(e.GetPosition(this)), e.GetPosition(this));
                            e.Handled = true;
                        }
                    }
                }
            }
        }
 public DocumentFloatingWindow(DockingManager manager)
     : base(manager)
 {
 }
コード例 #29
0
ファイル: AvalonDock.cs プロジェクト: NightmareX1337/lfs
 public static void MoveFirstDocumentToEnd(DockingManager dm)
 {
     var buf = dm.MainDocumentPane.Items[0];
     dm.MainDocumentPane.Items.Remove(buf);
     dm.MainDocumentPane.Items.Add(buf);
 }
コード例 #30
0
 /// <summary>
 /// Show <see cref="DocumentContent"/> as tabbed document inside the provided <see cref="DockingManager"/>
 /// </summary>
 /// <param name="manager">Docking manager target</param>
 public override void Show(DockingManager manager)
 {
     Show(manager, false);
 }
コード例 #31
0
ファイル: Pane.cs プロジェクト: 2594636985/SharpDevelop
 protected void AddDragPaneReferences()
 {
     if (!DesignerProperties.GetIsInDesignMode(this))
     {
         _oldManager = GetManager();
         if (_oldManager != null)
             _oldManager.DragPaneServices.Register(this);
     }
 }
コード例 #32
0
        public FlyoutPaneWindow(DockingManager manager, DockableContent content)
            : this()
        {
            //create a new temporary pane
            _refPane = new FlyoutDockablePane(content);
            _dockingManager = manager;

            _winFormsHost = ReferencedPane.GetLogicalChildContained<WindowsFormsHost>();

            if (_winFormsHost != null)
            {
                AllowsTransparency = false;
            }

            this.Loaded += new RoutedEventHandler(FlyoutPaneWindow_Loaded);
        }
コード例 #33
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LayoutRoot = ((System.Windows.Controls.Grid)(target));
                return;

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

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

            case 4:
                this.ApplicationRibbon = ((Microsoft.Windows.Controls.Ribbon.Ribbon)(target));

            #line 60 "..\..\..\..\MVVM\Views\ShellWindow.xaml"
                this.ApplicationRibbon.Loaded += new System.Windows.RoutedEventHandler(this.ApplicationRibbon_Loaded);

            #line default
            #line hidden
                return;

            case 5:
                this.EditionTab = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 6:
                this.SaveGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 7:
                this.SaveRecordButton = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 8:
                this.NewGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 9:
                this.NewRecordButton = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 10:
                this.EditGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 11:
                this.EditRecordButton = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 12:
                this.DeleteRecordButton = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 13:
                this.ActivateRecordButton = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 14:
                this.SearchGroup = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 15:
                this.GetRecordsButton = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
                return;

            case 16:
                this.ClientArea = ((System.Windows.Controls.Grid)(target));
                return;

            case 17:
                this.dockingManager = ((AvalonDock.DockingManager)(target));
                return;

            case 18:
                this.TaskRegion = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 19:
                this.NavigationRegion = ((System.Windows.Controls.ContentControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #34
0
ファイル: G.cs プロジェクト: NightmareX1337/lfs
 public static TextEditor[] GetListOfTextEditors(DockingManager dm)
 {
     List<TextEditor> ltes = new List<TextEditor>(dm.Documents.Count);
     //TextEditor[] tes = new TextEditor[dm.Documents.Count];
     for (int i = 0; i < dm.Documents.Count; i++)
     {
         var te = Utils.AvalonEdit.GetTextEditorFromContent((dm.Documents[i] as DocumentContent).Content);
         if (te != null) ltes.Add(te);
         //tes[i] = te;
     }
     return ltes.ToArray();
 }
コード例 #35
0
ファイル: Pane.cs プロジェクト: ckimpel/FSE-2011-PDE
        protected override void OnItemsChanged(System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            DockingManager dockManager = GetManager();

            if (dockManager != null)
            {
                dockManager.RefreshContents();
            }

            if (e.NewItems != null)
            {
                CheckItems(e.NewItems);
            }

            HasSingleItem = (Items.Count == 1);

            if (_lastSelectedContent != null &&
                !Items.Contains(_lastSelectedContent))
            {
                _lastSelectedContent = null;
            }

            if ((e.NewItems == null || e.NewItems.Count == 0) &&
                (e.OldItems != null && e.OldItems.Count > 0))
            {
                if (_lastSelectedContent != null &&
                    Items.Contains(_lastSelectedContent))
                {
                    SelectedItem = _lastSelectedContent;
                }
            }

            //let base class handle SelectedIndex/Item value
            base.OnItemsChanged(e);

            if (Items.Count > 0)
            {
                int currentIndex = SelectedIndex;

                if (currentIndex < 0 ||
                    currentIndex >= Items.Count)
                {
                    currentIndex = Items.Count - 1;
                }

                SelectedItem = Items.GetItemAt(currentIndex);
            }

            RefreshContainsActiveContentProperty();

            if (Items.Count > 0)
            {
                var parentPanel = Parent as ResizingPanel;
                while (parentPanel != null && parentPanel.IsLoaded)
                {
                    parentPanel.UpdateLayout();
                    parentPanel.InvalidateMeasure();
                    parentPanel = parentPanel.Parent as ResizingPanel;
                }
            }
        }
コード例 #36
0
ファイル: MainWindow.g.i.cs プロジェクト: dangtq72/BDS
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((StartsInternational.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded_1);

            #line default
            #line hidden

            #line 11 "..\..\MainWindow.xaml"
                ((StartsInternational.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.Window_KeyDown);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.btnLock = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 5:
                this.Resetpass = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 6:

            #line 49 "..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.rbnSale = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 8:
                this.rg_Contract = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 9:
                this.rbn_c_r = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 10:
                this.rbn_c_t = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 11:
                this.rbnAdjust = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 12:
                this.rg_Customer = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 13:
                this.rbn_Customer = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 63 "..\..\MainWindow.xaml"
                this.rbn_Customer.Click += new System.Windows.RoutedEventHandler(this.btnDockingForm_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.rbn_estate = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 15:
                this.rbn_building = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 16:
                this.rbnReport = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 17:
                this.rg_RpStatus = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 18:
                this.rbn_rp_status_contract = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 19:
                this.rg_RpK_Y = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 20:
                this.rbn_rpky = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 21:
                this.rg_RpTennat = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 22:
                this.rbn_rp_fee = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 79 "..\..\MainWindow.xaml"
                this.rbn_rp_fee.Click += new System.Windows.RoutedEventHandler(this.btnDockingForm_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.rg_RpRenter = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 24:
                this.rbn_rp_chuadong = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 25:
                this.rg_Fee = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 26:
                this.rbn_rp_fees = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 27:
                this.rbnManager = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 28:
                this.rg_QT = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 29:
                this.rbn_Group_User = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 30:
                this.rbn_User = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 94 "..\..\MainWindow.xaml"
                this.rbn_User.Click += new System.Windows.RoutedEventHandler(this.btnDockingForm_Click);

            #line default
            #line hidden
                return;

            case 31:
                this.rbnTrace = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 95 "..\..\MainWindow.xaml"
                this.rbnTrace.Click += new System.Windows.RoutedEventHandler(this.btnDockingForm_Click);

            #line default
            #line hidden
                return;

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

            case 33:
                this.DockManager = ((AvalonDock.DockingManager)(target));

            #line 106 "..\..\MainWindow.xaml"
                this.DockManager.Loaded += new System.Windows.RoutedEventHandler(this.DockManager_Loaded);

            #line default
            #line hidden
                return;

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

            #line 126 "..\..\MainWindow.xaml"
                this.btnImgUser.Click += new System.Windows.RoutedEventHandler(this.btnImgUser_Click);

            #line default
            #line hidden
                return;

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

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

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

            #line 178 "..\..\MainWindow.xaml"
                this.btnGoiY.Click += new System.Windows.RoutedEventHandler(this.btnGoiY_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #37
0
 public void SaveLayout(DockingManager dockingManager)
 {
     new XmlLayoutSerializer(dockingManager).Serialize(LayoutConfigFile);
 }
コード例 #38
0
 internal ManagedContentCollection(DockingManager manager)
     : base(new ObservableCollection <T>())
 {
     Manager = manager;
 }
コード例 #39
0
ファイル: ManagedContent.cs プロジェクト: NightmareX1337/lfs
 /// <summary>
 /// Shows the content inside a <see cref="DockingManager"/> object
 /// </summary>
 /// <remarks>How content is shows depends from the type of the content.</remarks>
 public abstract void Show(DockingManager manager);
コード例 #40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mainWindow = ((TraceLab.UI.WPF.Views.MainWindow)(target));
                return;

            case 2:

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

            #line default
            #line hidden

            #line 88 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanExecuteOpenComponentGraphCommand);

            #line default
            #line hidden
                return;

            case 3:

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

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden

            #line 94 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanShowDefineCompositeComponentWizard);

            #line default
            #line hidden
                return;

            case 5:

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

            #line default
            #line hidden

            #line 97 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.CanCaptureScreenShot);

            #line default
            #line hidden
                return;

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

            case 7:

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

            #line default
            #line hidden

            #line 136 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.TBButton_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 8:

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden

            #line 196 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).ContextMenuOpening += new System.Windows.Controls.ContextMenuEventHandler(this.TBButton_ContextMenuOpening);

            #line default
            #line hidden
                return;

            case 12:

            #line 220 "..\..\..\Views\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.AboutTraceLabMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 13:
                this.Progress = ((TraceLab.UI.WPF.Controls.ProgressControl)(target));
                return;

            case 14:
                this.DockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 15:
                this.Workspace = ((TraceLab.UI.WPF.Views.WorkspaceWindow)(target));
                return;

            case 16:
                this.Components = ((TraceLab.UI.WPF.Views.ComponentsLibraryWindow)(target));
                return;

            case 17:
                this.Output = ((TraceLab.UI.WPF.Views.OutputWindow)(target));
                return;
            }
            this._contentLoaded = true;
        }
コード例 #41
0
        /// <summary>
        /// Show the content ad floating window
        /// </summary>
        /// <param name="dockableWindow">True if the resulting floating window can the be re-docked to the docking manager.</param>
        public void ShowAsFloatingWindow(DockingManager manager, bool dockableWindow)
        {
            if (Manager != null && Manager != manager)
                throw new InvalidOperationException("Please remove the content from previous DockingManager (using the Close method)");

            //Manager = manager;

            if (manager == null)
            {
                if (dockableWindow &&
                    !CanExecuteCommand(DockableContentCommands.DockableFloatingWindow))
                    throw new InvalidOperationException("This operation can be executed in this state");
                if (!dockableWindow &&
                    !CanExecuteCommand(DockableContentCommands.FloatingWindow))
                    throw new InvalidOperationException("This operation can be executed in this state");
            }

            manager.Show(this, dockableWindow ? DockableContentState.DockableWindow : DockableContentState.FloatingWindow);
        }
コード例 #42
0
        //DocumentPane _previousPane = null;

        //int _arrayIndexPreviousPane = -1;

        internal DocumentFloatingWindow(DockingManager manager)
            : base(manager)
        {
        }
コード例 #43
0
ファイル: MainWindow.g.i.cs プロジェクト: cdbean/CAGA
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 6 "..\..\..\MainWindow.xaml"
     ((CAGA.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 6 "..\..\..\MainWindow.xaml"
     ((CAGA.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.RibbonWindow_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.mainGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.ribbon = ((Microsoft.Windows.Controls.Ribbon.Ribbon)(target));
     return;
     case 4:
     this.RibbonMapGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 5:
     this.OpenMapBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 24 "..\..\..\MainWindow.xaml"
     this.OpenMapBtn.Click += new System.Windows.RoutedEventHandler(this.OpenMapBtn_Click);
     
     #line default
     #line hidden
     return;
     case 6:
     this.SaveMapBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 25 "..\..\..\MainWindow.xaml"
     this.SaveMapBtn.Click += new System.Windows.RoutedEventHandler(this.SaveMapBtn_Click);
     
     #line default
     #line hidden
     return;
     case 7:
     this.RibbonLayersGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 8:
     this.AddLayerBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 29 "..\..\..\MainWindow.xaml"
     this.AddLayerBtn.Click += new System.Windows.RoutedEventHandler(this.AddLayerBtn_Click);
     
     #line default
     #line hidden
     return;
     case 9:
     this.RemoveLayerBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 30 "..\..\..\MainWindow.xaml"
     this.RemoveLayerBtn.Click += new System.Windows.RoutedEventHandler(this.RemoveLayerBtn_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.RibbonNavGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 11:
     this.PanMapBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 33 "..\..\..\MainWindow.xaml"
     this.PanMapBtn.Checked += new System.Windows.RoutedEventHandler(this.PanMapBtn_Checked);
     
     #line default
     #line hidden
     
     #line 33 "..\..\..\MainWindow.xaml"
     this.PanMapBtn.Unchecked += new System.Windows.RoutedEventHandler(this.PanMapBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 12:
     this.ZoomInBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 34 "..\..\..\MainWindow.xaml"
     this.ZoomInBtn.Checked += new System.Windows.RoutedEventHandler(this.ZoomInBtn_Checked);
     
     #line default
     #line hidden
     
     #line 34 "..\..\..\MainWindow.xaml"
     this.ZoomInBtn.Unchecked += new System.Windows.RoutedEventHandler(this.ZoomInBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 13:
     this.ZoomOutBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 35 "..\..\..\MainWindow.xaml"
     this.ZoomOutBtn.Checked += new System.Windows.RoutedEventHandler(this.ZoomOutBtn_Checked);
     
     #line default
     #line hidden
     
     #line 35 "..\..\..\MainWindow.xaml"
     this.ZoomOutBtn.Unchecked += new System.Windows.RoutedEventHandler(this.ZoomOutBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 14:
     this.ZoomToExtentBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 36 "..\..\..\MainWindow.xaml"
     this.ZoomToExtentBtn.Click += new System.Windows.RoutedEventHandler(this.ZoomToExtentBtn_Click);
     
     #line default
     #line hidden
     return;
     case 15:
     this.ZoomToPrevBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 37 "..\..\..\MainWindow.xaml"
     this.ZoomToPrevBtn.Click += new System.Windows.RoutedEventHandler(this.ZoomToPrevBtn_Click);
     
     #line default
     #line hidden
     return;
     case 16:
     this.ZoomToNextBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 38 "..\..\..\MainWindow.xaml"
     this.ZoomToNextBtn.Click += new System.Windows.RoutedEventHandler(this.ZoomToNextBtn_Click);
     
     #line default
     #line hidden
     return;
     case 17:
     this.ZoomToLayerBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 39 "..\..\..\MainWindow.xaml"
     this.ZoomToLayerBtn.Click += new System.Windows.RoutedEventHandler(this.ZoomToLayerBtn_Click);
     
     #line default
     #line hidden
     return;
     case 18:
     this.RibbonSelectionGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 19:
     this.SelectFeatureBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonSplitButton)(target));
     
     #line 42 "..\..\..\MainWindow.xaml"
     this.SelectFeatureBtn.Click += new System.Windows.RoutedEventHandler(this.SelectFeatureBtn_Click);
     
     #line default
     #line hidden
     return;
     case 20:
     this.SelectFeatureGallery = ((Microsoft.Windows.Controls.Ribbon.RibbonGallery)(target));
     return;
     case 21:
     this.SelByRectItem = ((Microsoft.Windows.Controls.Ribbon.RibbonGalleryItem)(target));
     
     #line 45 "..\..\..\MainWindow.xaml"
     this.SelByRectItem.Selected += new System.Windows.RoutedEventHandler(this.SelectFeatureItem_Selected);
     
     #line default
     #line hidden
     return;
     case 22:
     this.SelByPolyItem = ((Microsoft.Windows.Controls.Ribbon.RibbonGalleryItem)(target));
     
     #line 46 "..\..\..\MainWindow.xaml"
     this.SelByPolyItem.Selected += new System.Windows.RoutedEventHandler(this.SelectFeatureItem_Selected);
     
     #line default
     #line hidden
     return;
     case 23:
     this.SelByCircleItem = ((Microsoft.Windows.Controls.Ribbon.RibbonGalleryItem)(target));
     
     #line 47 "..\..\..\MainWindow.xaml"
     this.SelByCircleItem.Selected += new System.Windows.RoutedEventHandler(this.SelectFeatureItem_Selected);
     
     #line default
     #line hidden
     return;
     case 24:
     this.SelByLineItem = ((Microsoft.Windows.Controls.Ribbon.RibbonGalleryItem)(target));
     
     #line 48 "..\..\..\MainWindow.xaml"
     this.SelByLineItem.Selected += new System.Windows.RoutedEventHandler(this.SelectFeatureItem_Selected);
     
     #line default
     #line hidden
     return;
     case 25:
     this.SelectByGraphicsBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 52 "..\..\..\MainWindow.xaml"
     this.SelectByGraphicsBtn.Click += new System.Windows.RoutedEventHandler(this.SelectByGraphicsBtn_Click);
     
     #line default
     #line hidden
     return;
     case 26:
     this.UnselectFeatureBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 53 "..\..\..\MainWindow.xaml"
     this.UnselectFeatureBtn.Click += new System.Windows.RoutedEventHandler(this.UnselectFeatureBtn_Click);
     
     #line default
     #line hidden
     return;
     case 27:
     this.RibbonToolsGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 28:
     this.IdentifyFeatureBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 56 "..\..\..\MainWindow.xaml"
     this.IdentifyFeatureBtn.Checked += new System.Windows.RoutedEventHandler(this.IdentifyFeatureBtn_Checked);
     
     #line default
     #line hidden
     
     #line 56 "..\..\..\MainWindow.xaml"
     this.IdentifyFeatureBtn.Unchecked += new System.Windows.RoutedEventHandler(this.IdentifyFeatureBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 29:
     this.AttrTableBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 57 "..\..\..\MainWindow.xaml"
     this.AttrTableBtn.Click += new System.Windows.RoutedEventHandler(this.AttrTableBtn_Click);
     
     #line default
     #line hidden
     return;
     case 30:
     this.RibbonDrawingGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 31:
     this.DrawPolygonBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonToggleButton)(target));
     
     #line 60 "..\..\..\MainWindow.xaml"
     this.DrawPolygonBtn.Checked += new System.Windows.RoutedEventHandler(this.DrawPolygonBtn_Checked);
     
     #line default
     #line hidden
     
     #line 60 "..\..\..\MainWindow.xaml"
     this.DrawPolygonBtn.Unchecked += new System.Windows.RoutedEventHandler(this.DrawPolygonBtn_Unchecked);
     
     #line default
     #line hidden
     return;
     case 32:
     this.RibbonDlgMgrGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 33:
     this.ToggleDlgBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 66 "..\..\..\MainWindow.xaml"
     this.ToggleDlgBtn.Click += new System.Windows.RoutedEventHandler(this.ToggleDlgBtn_Click);
     
     #line default
     #line hidden
     return;
     case 34:
     this.RibbonSpeechRecGrp = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
     return;
     case 35:
     this.ToggleSpeechBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 69 "..\..\..\MainWindow.xaml"
     this.ToggleSpeechBtn.Click += new System.Windows.RoutedEventHandler(this.ToggleSpeechBtn_Click);
     
     #line default
     #line hidden
     return;
     case 36:
     this.SimSpeechBtn = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));
     
     #line 70 "..\..\..\MainWindow.xaml"
     this.SimSpeechBtn.Click += new System.Windows.RoutedEventHandler(this.SimSpeechBtn_Click);
     
     #line default
     #line hidden
     return;
     case 37:
     this.dockManager = ((AvalonDock.DockingManager)(target));
     return;
     case 38:
     this.LayersPanel = ((AvalonDock.DockableContent)(target));
     return;
     case 39:
     this.tocGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 40:
     
     #line 84 "..\..\..\MainWindow.xaml"
     ((AvalonDock.DocumentPane)(target)).SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DocumentPane_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 41:
     this.MapPanel = ((AvalonDock.DocumentContent)(target));
     return;
     case 42:
     this.mapGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 43:
     this.LayoutPanel = ((AvalonDock.DocumentContent)(target));
     return;
     case 44:
     this.layoutGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 45:
     this.KinectCtrlPanel = ((AvalonDock.DockablePane)(target));
     return;
     case 46:
     this.ColorDisplayPanel = ((AvalonDock.DockableContent)(target));
     return;
     case 47:
     this.colorDisplay = ((System.Windows.Controls.Image)(target));
     return;
     case 48:
     this.skeletonCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 49:
     this.DepthDisplayPanel = ((AvalonDock.DockableContent)(target));
     return;
     case 50:
     this.depthDisplay = ((System.Windows.Controls.Image)(target));
     return;
     case 51:
     this.DevCtrlPanel = ((AvalonDock.DockablePane)(target));
     return;
     case 52:
     this.statusTB = ((System.Windows.Controls.TextBlock)(target));
     return;
     }
     this._contentLoaded = true;
 }
コード例 #44
0
 internal OverlayWindow(DockingManager manager)
 {
     _manager = manager;
 }
コード例 #45
0
ファイル: Pane.cs プロジェクト: 2594636985/SharpDevelop
 protected void RemoveDragPaneReferences()
 {
     if (!DesignerProperties.GetIsInDesignMode(this))
     {
         if (_oldManager != null)
         {
             _oldManager.DragPaneServices.Unregister(this);
             _oldManager = null;
         }
     }
 }
コード例 #46
0
        internal NavigatorWindow(DockingManager manager)
        {
            WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner;

            _manager = manager;

            List<NavigatorWindowDocumentItem> docs = new List<NavigatorWindowDocumentItem>();
            _manager.Documents.ForEach((DocumentContent doc) =>
            {
                docs.Add(new NavigatorWindowDocumentItem(doc));
            });

            docs.Sort((NavigatorWindowDocumentItem item1, NavigatorWindowDocumentItem item2) =>
            {
                if (item1 == item2 ||
                    item1.LastActivation == item2.LastActivation)
                    return 0;
                return (item1.LastActivation < item2.LastActivation) ? 1 : -1;
            });

            SetDocuments(new CollectionView(docs));

            List<NavigatorWindowItem> cnts = new List<NavigatorWindowItem>();
            _manager.DockableContents.Where(c => c.State != DockableContentState.Hidden).ForEach((DockableContent cnt) =>
            {
                cnts.Add(new NavigatorWindowItem(cnt));
            });

            SetDockableContents(new CollectionView(cnts));

            Documents.MoveCurrentTo(Documents.OfType<NavigatorWindowDocumentItem>().FirstOrDefault(cntItem =>
            {
                return cntItem.ItemContent == _manager.ActiveDocumentContent;
            }));

            DockableContents.MoveCurrentTo(null);

            Loaded += new RoutedEventHandler(NavigatorWindow_Loaded);

            if (Documents.IsEmpty)
                MoveToOtherList();
        }
コード例 #47
0
        /// <summary>
        /// Show <see cref="DocumentContent"/> as tabbed document inside the provided <see cref="DockingManager"/>
        /// </summary>
        /// <param name="manager">Docking manager target</param>
        /// <param name="showAsFloatingWindow">True if document should be shown inside a floating window (<see cref="DocumentFloatingWindow"/>)</param>
        public void Show(DockingManager manager, bool showAsFloatingWindow)
        {
            if (Manager != null && Manager != manager)
                throw new InvalidOperationException("Please remove the content from previous DockingManager (using the Close method)");

            if (!CanExecuteCommand(ManagedContentCommands.Show))
                throw new InvalidOperationException("This operation can be executed in this state");

            manager.Show(this, showAsFloatingWindow);

            manager.Documents.Add(this);
        }
コード例 #48
0
 internal OverlayWindow(DockingManager manager)
 {
     _manager = manager;
 }
コード例 #49
0
ファイル: EditorProvider.cs プロジェクト: conradz/Edit5
 public EditorProvider(DockingManager manager)
 {
     this.manager = manager;
 }
コード例 #50
0
 public DockableFloatingWindow(DockingManager manager)
     : base(manager)
 {
 }
コード例 #51
0
 public OverlayWindow(DockingManager manager)
 {
     _manager = manager;
 }
コード例 #52
0
 /// <summary>
 /// Provides derived classes an opportunity to handle changes to the Manager property.
 /// </summary>
 protected virtual void OnManagerChanged(DockingManager oldValue, DockingManager newValue)
 {
 }
コード例 #53
0
ファイル: MainWindow.g.cs プロジェクト: dangtq72/Shop
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.frmmain = ((NangShop.MainWindow)(target));

            #line 8 "..\..\MainWindow.xaml"
                this.frmmain.Loaded += new System.Windows.RoutedEventHandler(this.frmmain_Loaded);

            #line default
            #line hidden

            #line 8 "..\..\MainWindow.xaml"
                this.frmmain.Closed += new System.EventHandler(this.frmmain_Closed);

            #line default
            #line hidden
                return;

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

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

            case 4:
                this.btnLock = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 5:
                this.Resetpass = ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target));

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

            #line default
            #line hidden
                return;

            case 6:

            #line 47 "..\..\MainWindow.xaml"
                ((Microsoft.Windows.Controls.Ribbon.RibbonApplicationMenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Exit_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.rbnSale = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 8:
                this.rg_Receive_Data = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 9:
                this.rbn_Receive = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 10:
                this.rbn_Sale = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 11:
                this.rbn_Sale_Buon = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 12:
                this.rbnReport = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 13:
                this.rbn_SaleHeader = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

            #line 63 "..\..\MainWindow.xaml"
                this.rbn_SaleHeader.Click += new System.Windows.RoutedEventHandler(this.btnDockingForm_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.rbn_SaleHeader_BanBuon = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 15:
                this.rbnAdjust = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 16:
                this.rg_Receive_Display = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 17:
                this.rbn_Product = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 18:
                this.rbn_Category = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 19:
                this.rbn_Color = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 20:
                this.rg_Customer = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 21:
                this.rbn_NhaBuon = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 22:
                this.rbn_Customer = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 23:
                this.rbnManager = ((Microsoft.Windows.Controls.Ribbon.RibbonTab)(target));
                return;

            case 24:
                this.rg_QT = ((Microsoft.Windows.Controls.Ribbon.RibbonGroup)(target));
                return;

            case 25:
                this.rbn_Group_User = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

            case 26:
                this.rbn_User = ((Microsoft.Windows.Controls.Ribbon.RibbonButton)(target));

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

            #line default
            #line hidden
                return;

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

            case 28:
                this.DockManager = ((AvalonDock.DockingManager)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.DockManager.Loaded += new System.Windows.RoutedEventHandler(this.DockManager_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
コード例 #54
0
 /// <summary>
 /// Shows the content inside a <see cref="DockingManager"/> object
 /// </summary>
 /// <remarks>How content is shows depends from the type of the content.</remarks>
 public abstract void Show(DockingManager manager);
コード例 #55
0
 /// <summary>
 /// Show <see cref="DockableContent"/> as docked pane within provided <see cref="DockingManager"/>
 /// </summary>
 public override void Show(DockingManager manager)
 {
     if (SavedStateAndPosition != null && State == DockableContentState.Hidden)
         Show(manager, SavedStateAndPosition.Anchor);
     else
         Show(manager, AnchorStyle.None);
 }
コード例 #56
0
        /// <summary>
        /// Show <see cref="DockableContent"/> as docked pane
        /// </summary>
        public void Show(DockingManager manager, AnchorStyle desideredAnchor)
        {
            if (Manager != null && Manager != manager)
                throw new InvalidOperationException("Please remove the content from previous DockingManager (using the Close method)");

            if (manager == null && !CanExecuteCommand(ManagedContentCommands.Show))
                throw new InvalidOperationException("This operation can be executed in this state");

            if (State == DockableContentState.Docked)
            {
                //if already shown as docked content just activate it
                Activate();
            }
            else
            {
                if (SavedStateAndPosition != null && State == DockableContentState.Hidden)
                    manager.Show(this, SavedStateAndPosition.State, desideredAnchor);
                else
                    manager.Show(this, DockableContentState.Docked, desideredAnchor);
            }
        }
コード例 #57
0
ファイル: ManagedContent.cs プロジェクト: NightmareX1337/lfs
 /// <summary>
 /// Provides derived classes an opportunity to handle changes to the Manager property.
 /// </summary>
 protected virtual void OnManagerChanged(DockingManager oldValue, DockingManager newValue)
 {
 }
コード例 #58
0
        /// <summary>
        /// Show as <see cref="DockableContent"/> as a tabbed document under the provided <see cref="DockingManager"/>
        /// </summary>
        public void ShowAsDocument(DockingManager manager)
        {
            if (Manager != null && Manager != manager)
                throw new InvalidOperationException("Please remove the content from previous DockingManager (using the Close method)");

            //Manager = manager; 

            if (manager == null && !CanExecuteCommand(DockableContentCommands.ShowAsDocument))
                throw new InvalidOperationException("This operation can be executed in this state");

            manager.Show(this, DockableContentState.Document);
        }
コード例 #59
0
 public FloatingWindow(DockingManager manager)
     : this()
 {
     //save manager ref
     _manager = manager;
 }
コード例 #60
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 67 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnNewDoc_Click);

            #line default
            #line hidden
                return;

            case 2:

            #line 68 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnOpenDoc_Click);

            #line default
            #line hidden
                return;

            case 3:

            #line 70 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnSaveDoc_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 73 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnProjOpen_Click);

            #line default
            #line hidden
                return;

            case 5:

            #line 75 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnDocAddToProj_Click);

            #line default
            #line hidden
                return;

            case 6:

            #line 76 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.btnDocRemoveFormProj_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 81 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnShowDockableContent);

            #line default
            #line hidden
                return;

            case 8:

            #line 91 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OnShowDocumentContent);

            #line default
            #line hidden
                return;

            case 9:

            #line 98 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItemCloseAllDocs_Click);

            #line default
            #line hidden
                return;

            case 10:

            #line 107 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeStandardTheme);

            #line default
            #line hidden
                return;

            case 11:

            #line 108 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.ChangeStandardTheme);

            #line default
            #line hidden
                return;

            case 12:

            #line 111 "..\..\..\winMain.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.AboutMenu_Click);

            #line default
            #line hidden
                return;

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

            #line 115 "..\..\..\winMain.xaml"
                this.btnProjOpen.Click += new System.Windows.RoutedEventHandler(this.btnProjOpen_Click);

            #line default
            #line hidden
                return;

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

            #line 120 "..\..\..\winMain.xaml"
                this.btnProjNew.Click += new System.Windows.RoutedEventHandler(this.btnProjNew_Click);

            #line default
            #line hidden
                return;

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

            #line 125 "..\..\..\winMain.xaml"
                this.btnOpenDoc.Click += new System.Windows.RoutedEventHandler(this.btnOpenDoc_Click);

            #line default
            #line hidden
                return;

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

            #line 130 "..\..\..\winMain.xaml"
                this.btnNewDoc.Click += new System.Windows.RoutedEventHandler(this.btnNewDoc_Click);

            #line default
            #line hidden
                return;

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

            #line 135 "..\..\..\winMain.xaml"
                this.btnSaveDoc.Click += new System.Windows.RoutedEventHandler(this.btnSaveDoc_Click);

            #line default
            #line hidden
                return;

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

            #line 140 "..\..\..\winMain.xaml"
                this.btnDeleteDoc.Click += new System.Windows.RoutedEventHandler(this.btnDeleteDoc_Click);

            #line default
            #line hidden
                return;

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

            #line 162 "..\..\..\winMain.xaml"
                this.btnGenerateCode.Click += new System.Windows.RoutedEventHandler(this.btnGenerateCode_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.imgSingle = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 167 "..\..\..\winMain.xaml"
                this.btnBatchGenerateCode.Click += new System.Windows.RoutedEventHandler(this.btnBatchGenerateCode_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.imgBatch = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 172 "..\..\..\winMain.xaml"
                this.btnExceltoScript.Click += new System.Windows.RoutedEventHandler(this.btnExceltoScript_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.imgExceltoScript = ((System.Windows.Controls.Image)(target));
                return;

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

            #line 178 "..\..\..\winMain.xaml"
                this.btnDocAddToProj.Click += new System.Windows.RoutedEventHandler(this.btnDocAddToProj_Click);

            #line default
            #line hidden
                return;

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

            #line 183 "..\..\..\winMain.xaml"
                this.btnDocRemoveFromProj.Click += new System.Windows.RoutedEventHandler(this.btnDocRemoveFormProj_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.DockManager = ((AvalonDock.DockingManager)(target));
                return;

            case 28:
                this.lucTemplatesExplorer = ((SmartCodeGenerator.ucTemplatesExplorer)(target));
                return;

            case 29:
                this.lucServerExplorer = ((SmartCodeGenerator.ucServerExplorer)(target));
                return;

            case 30:
                this.DocumentHost = ((AvalonDock.DocumentPane)(target));

            #line 209 "..\..\..\winMain.xaml"
                this.DocumentHost.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DocumentHost_SelectionChanged);

            #line default
            #line hidden
                return;

            case 31:
                this.InitNewDocument = ((SmartCodeGenerator.ucBaseDocument)(target));
                return;

            case 32:
                this.lucSolutionExplorer = ((SmartCodeGenerator.ucSolutionExplorer)(target));
                return;

            case 33:
                this.lucDocumentProperties = ((SmartCodeGenerator.ucParameterExplorer)(target));
                return;

            case 34:
                this.zoomSlider = ((System.Windows.Controls.Slider)(target));
                return;
            }
            this._contentLoaded = true;
        }