public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
 {
     var view = new MainWindow();
     var model = new MainWindowViewModel();
     view.DataContext = model;
     return new NewTabHost<Window>(view, view.TabablzControl);
 }
 public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
 {
     var window = new Window();
     var tabControl = new AB_DockingTabControl();
     window.Content = tabControl;
     return new NewTabHost<Window>(window, tabControl);
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 20 "..\..\HomeWindow.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.RangeDragWindow_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:
                this.NavigationMenu = ((Dragablz.TabablzControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
 public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
 {
     var view = new BasicExampleTemplateWindow();
     var model = new BasicExampleTemplateModel(interTabClient, partition);
     view.DataContext = model;
     return new NewTabHost<Window>(view, view.TabablzControl);
 }
 public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
 {
     var view = new TabWindow();
     view.AllowsTransparency = true;
     view.WindowStyle = WindowStyle.None;
     return new NewTabHost<TabWindow>(view, view.InitialTabablzControl);
 }
Exemple #6
0
        public TabEmptiedResponse TabEmptiedHandler(TabablzControl tabControl, Window window)
        {
            if (window is MainWindow)
            {
                MainWindow mw = (window as MainWindow);
                if (mw.MainWindowVM.TabPanelManagerVM.TabControlVMs.Count == 1)
                {
                    return TabEmptiedResponse.DoNothing;
                }
                else
                {
                    TabControlVM vm = tabControl.DataContext as TabControlVM;
                    if (vm.TabPanelVMs.Count == 0)
                    {
                        mw.MainWindowVM.TabPanelManagerVM.TabControlVMs.Remove(vm);
                    }
                }

            }
            else if(window is InterTabWindow)
            {
                TabControlVM vm = tabControl.DataContext as TabControlVM;
                if (vm.TabPanelVMs.Count == 0)
                {
                    (window as InterTabWindow).TabWindowVM.TabControlVMs.Remove(vm);
                }
            }
            return TabEmptiedResponse.CloseWindowOrLayoutBranch;
        }
        public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
        {
            var window = _factory.Create();
           

            return new NewTabHost<Window>(window, window.InitialTabablzControl);
        }
Exemple #8
0
        public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
        {
            TabControlVM tcvm = new TabControlVM();
            TabWindowVM twvm = new TabWindowVM() { };
            twvm.TabControlVMs.Add(tcvm);
            InterTabWindow view = new InterTabWindow(twvm);

            Window window = Window.GetWindow(source);
            TabControlVM tvm = (TabControlVM)source.DataContext;
            MainWindowVM mvm = null;
            if(window is MainWindow)
            {
                mvm = (window as MainWindow).MainWindowVM;
                if (tvm.TabPanelVMs.Count == 1)
                {
                    mvm.TabPanelManagerVM.TabControlVMs.Remove(tvm);
                }
            }
            else if(window is InterTabWindow)
            {
                mvm = (window as InterTabWindow).MainWindowVM;
                if (tvm.TabPanelVMs.Count == 1)
                {
                    (window as InterTabWindow).TabWindowVM.TabControlVMs.Remove(tvm);
                }
            }
            view.MainWindowVM =mvm;
            view.MainWindowVM.TabPanelManagerVM.TabWindowVMs.Add(view.TabWindowVM);

            NewTabHost<InterTabWindow> th= new  NewTabHost<InterTabWindow>(view, view.TabablzControl) ;
            return th;
        }
Exemple #9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.pageStatistic = ((LibraryManager.EntityFramework.View.PageUC.PageStatistic)(target));
                return;

            case 2:
                this.tabControl = ((Dragablz.TabablzControl)(target));
                return;

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

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

            case 5:
                this.gridMember = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.gridLibrarian = ((System.Windows.Controls.Grid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public TabablzControlProxy(TabablzControl tabablzControl)
        {
            _tabablzControl = tabablzControl;

            _splitHorizontallyCommand = new AnotherCommandImplementation(_ => Branch(Orientation.Horizontal));
            _splitVerticallyCommand = new AnotherCommandImplementation(_ => Branch(Orientation.Vertical));
            SplitRatio = 5;
        }
        public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
        {
            var childWindow = new ChildWindow();

            childWindow.TabablzControl.Items.Clear();

            return new NewTabHost<Window>(childWindow, childWindow.TabablzControl);
        }
        public INewTabHost<UIElement> GetNewHost(object partition, TabablzControl source)
        {
            var b = _client.GetNewHost(partition, source);

            b.TabablzControl.InterTabController.InterTabClient = _interTabClient;

            return b;
        }
Exemple #13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.loginWindow = ((LibraryManager.EntityFramework.LoginWindow)(target));
                return;

            case 2:
                this.tabControl = ((Dragablz.TabablzControl)(target));
                return;

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

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

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

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

            case 7:
                this.icoEye = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

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

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

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

            case 11:
                this.txtNewPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 12:
                this.txtConfmPassword = ((System.Windows.Controls.PasswordBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.TabsContainer = ((Dragablz.TabablzControl)(target));
                return;

            case 2:
                this.InterTabController = ((Dragablz.InterTabController)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainMenuTabControl = ((Dragablz.TabablzControl)(target));
                return;

            case 2:
                this.ErrorSnackbar = ((MaterialDesignThemes.Wpf.Snackbar)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public INewTabHost<UIElement> GetNewHost(object partition, TabablzControl source)
        {
            var tabablzControl = new TabablzControl {DataContext = source.DataContext};

            Clone(source, tabablzControl);

            var newInterTabController = new InterTabController
            {
                Partition = source.InterTabController.Partition
            };
            Clone(source.InterTabController, newInterTabController);
            tabablzControl.SetCurrentValue(TabablzControl.InterTabControllerProperty, newInterTabController);            

            return new NewTabHost<UIElement>(tabablzControl, tabablzControl);
        }
        public virtual INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            var sourceWindow = Window.GetWindow(source);
            if (sourceWindow == null)
            {
                throw new ApplicationException("Unable to ascrtain source window.");
            }
            
            return new NewTabHost<Window>(sourceWindow, source);
        }
        public virtual INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
        {
            if (source == null) throw new ArgumentNullException("source");
            var sourceWindow = Window.GetWindow(source);
            if (sourceWindow == null) throw new ApplicationException("Unable to ascrtain source window.");
            var newWindow = (Window)Activator.CreateInstance(sourceWindow.GetType());

            newWindow.Dispatcher.Invoke(new Action(() => { }), DispatcherPriority.DataBind);

            var newTabablzControl = newWindow.LogicalTreeDepthFirstTraversal().OfType<TabablzControl>().FirstOrDefault();
            if (newTabablzControl == null) throw new ApplicationException("Unable to ascrtain tab control.");

            newTabablzControl.Items.Clear();

            return new NewTabHost<Window>(newWindow, newTabablzControl);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Homem = ((QuanLyPhanPhanBon.View.Home)(target));
                return;

            case 2:
                this.tabControl = ((Dragablz.TabablzControl)(target));
                return;

            case 3:
                this.QuanLy = ((System.Windows.Controls.TabItem)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tabControl = ((Dragablz.TabablzControl)(target));
                return;

            case 2:
                this.playControl = ((iTube.Control.PlayControl)(target));
                return;

            case 3:
                this.loginControl = ((iTube.Control.LoginControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.l = ((Dragablz.TabablzControl)(target));
                return;

            case 2:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        public INewTabHost<UIElement> GetNewHost(object partition, TabablzControl source)
        {
            TabControlVM vm = new TabControlVM();
            InterTabWindow mw = (InterTabWindow)Window.GetWindow(source);
            mw.TabWindowVM.TabControlVMs.Add(vm);
            var tabablzControl = new TabablzControl {DataContext = vm};
            tabablzControl.ItemsSource = vm.TabPanelVMs;

            Clone(source, tabablzControl);

            var newInterTabController = new InterTabController
            {
                Partition = source.InterTabController.Partition
            };
            Clone(source.InterTabController, newInterTabController);
            tabablzControl.SetCurrentValue(TabablzControl.InterTabControllerProperty, newInterTabController);

            return new NewTabHost<UIElement>(tabablzControl, tabablzControl);
        }
Exemple #23
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tab = ((Dragablz.TabablzControl)(target));
                return;

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

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

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

            case 5:
                this.dgCarrinho = ((System.Windows.Controls.DataGrid)(target));
                return;

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

            #line 187 "..\..\usrVenda.xaml"
                this.btnSee.Click += new System.Windows.RoutedEventHandler(this.btnSee_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.dgVendas = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
        {
            if (SourceTabablzControl == null)
            {
                SourceTabablzControl = source;
                SourceTabablzControl.IsVisibleChanged += SourceTabablzControl_IsVisibleChanged;
            }

            var window = new DragablzWindow();
            window.Height = source.ActualHeight;
            window.Width = source.ActualWidth;
            window.WindowState = WindowState.Normal;
            window.SizeChanged += Window_SizeChanged;
            window.StateChanged += Window_StateChanged;

            var tabControl = new TabablzControl();
            window.Content = tabControl;
            var newTabHost = new NewTabHost<Window>(window, tabControl);
            NewTabHosts.Add(newTabHost);
            window.Closed += Window_Closed;
            return newTabHost;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CommandTab = ((Dragablz.TabablzControl)(target));
                return;

            case 2:
                this.EditTabItem = ((System.Windows.Controls.TabItem)(target));
                return;

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

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

            #line 10 "..\..\InterTabWindow.xaml"
                ((SmartScene.View.InterTabWindow)(target)).Closed += new System.EventHandler(this.DragablzWindow_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.dockLayout = ((Dragablz.Dockablz.Layout)(target));
                return;

            case 3:
                this.tc = ((Dragablz.TabablzControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #27
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyHome = ((Management_Application.Home)(target));
                return;

            case 2:
                this.tabControl = ((Dragablz.TabablzControl)(target));
                return;

            case 3:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Exemple #28
0
        private void ItemDragStarted(object sender, DragablzDragStartedEventArgs e)
        {
            if (!(ItemsControl.ItemsControlFromItemContainer(e.DragablzItem) is DragablzItemsControl sourceOfDragItemsControl))
            {
                return;
            }

            var sourceTab = TabablzControl.GetOwnerOfHeaderItems(sourceOfDragItemsControl);

            if (sourceTab == null)
            {
                return;
            }

            if (sourceOfDragItemsControl.Items.Count != 1 ||
                sourceTab.InterTabController?.MoveWindowWithSolitaryTabs == false ||
                Layout.IsContainedWithinBranch(sourceOfDragItemsControl))
            {
                return;
            }

            IsBeingDraggedByTab = true;
        }
        public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
        {
            if (SourceTabablzControl == null)
            {
                SourceTabablzControl = source;
                SourceTabablzControl.IsVisibleChanged += SourceTabablzControl_IsVisibleChanged;
            }

            var window = new DragablzWindow {WindowState = WindowState.Normal};
            window.SizeChanged += Window_SizeChanged;
            window.StateChanged += Window_StateChanged;

            var tabControl = new TabablzControl
            {
                InterTabController = new InterTabController {InterTabClient = new DockableTabInterTabClient()}
            };

            window.Content = tabControl;
            var newTabHost = new NewTabHost<Window>(window, tabControl);
            NewTabHosts.Add(newTabHost);
            window.Closed += Window_Closed;
            return newTabHost;
        }
        public INewTabHost <UIElement> GetNewHost(object partition, TabablzControl source)
        {
            var tabablzControl = new TabablzControl {
                DataContext = source.DataContext
            };

            Clone(source, tabablzControl);

            if (source.InterTabController == null)
            {
                throw new InvalidOperationException("Source tab does not have an InterTabCOntroller set.  Ensure this is set on initial, and subsequently generated tab controls.");
            }

            var newInterTabController = new InterTabController
            {
                Partition = source.InterTabController.Partition
            };

            Clone(source.InterTabController, newInterTabController);
            tabablzControl.SetCurrentValue(TabablzControl.InterTabControllerProperty, newInterTabController);

            return(new NewTabHost <UIElement>(tabablzControl, tabablzControl));
        }
 private static void TabablzControlVisitor(TreeNode treeNode, TabablzControl tabablzControl)
 {
     treeNode.Children.Add(new TreeNode { Content = tabablzControl.ToString() });
 }
Exemple #32
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.x_dateReceipt = ((System.Windows.Controls.DatePicker)(target));
                return;

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

            case 4:
                this.x_timeReceipt = ((MaterialDesignThemes.Wpf.TimePicker)(target));
                return;

            case 5:
                this.x_timeSampling = ((MaterialDesignThemes.Wpf.TimePicker)(target));
                return;

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

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

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

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

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

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

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

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

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

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

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

            case 17:
                this.x_institution = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 18:
                this.x_department = ((System.Windows.Controls.ComboBox)(target));
                return;

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

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

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

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

            case 23:
                this.StudyTabControl = ((Dragablz.TabablzControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #33
0
 public TabEmptiedResponse TabEmptiedHandler(TabablzControl tabControl, Window window)
 {
     return Application.Current.Windows.OfType<MainWindow>().Count() == 1
         ? TabEmptiedResponse.DoNothing
         : TabEmptiedResponse.CloseWindowOrLayoutBranch;
 }
Exemple #34
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 228 "..\..\MenuWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Back);

            #line default
            #line hidden
                return;

            case 2:

            #line 231 "..\..\MenuWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Close);

            #line default
            #line hidden
                return;

            case 3:
                this.tab = ((Dragablz.TabablzControl)(target));
                return;

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

            #line 252 "..\..\MenuWindow.xaml"
                this.ComboBox1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ComboBox1_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

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

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

            case 9:
                this.radGridView = ((Telerik.Windows.Controls.RadGridView)(target));
                return;

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

            #line 296 "..\..\MenuWindow.xaml"
                this.ButtonEdit.Click += new System.Windows.RoutedEventHandler(this.ButtonEdit_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.MyCarousel = ((Telerik.Windows.Controls.RadCarousel)(target));

            #line 469 "..\..\MenuWindow.xaml"
                this.MyCarousel.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.MyCarousel_MouseDoubleClick);

            #line default
            #line hidden

            #line 469 "..\..\MenuWindow.xaml"
                this.MyCarousel.Loaded += new System.Windows.RoutedEventHandler(this.MyCarousel_Loaded);

            #line default
            #line hidden
                return;

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

            case 13:

            #line 484 "..\..\MenuWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Search_Employees);

            #line default
            #line hidden
                return;

            case 14:

            #line 493 "..\..\MenuWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Ajouter);

            #line default
            #line hidden
                return;

            case 15:

            #line 501 "..\..\MenuWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Fleft);

            #line default
            #line hidden
                return;

            case 16:

            #line 502 "..\..\MenuWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.left);

            #line default
            #line hidden
                return;

            case 17:

            #line 503 "..\..\MenuWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.right);

            #line default
            #line hidden
                return;

            case 18:

            #line 504 "..\..\MenuWindow.xaml"
                ((System.Windows.Controls.Image)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Fright);

            #line default
            #line hidden
                return;

            case 19:
                this.rectangleData = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

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

            #line 520 "..\..\MenuWindow.xaml"
                this.parAneeButoon.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

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

            #line 521 "..\..\MenuWindow.xaml"
                this.parFiliereButoon.Click += new System.Windows.RoutedEventHandler(this.parFiliereButoon_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.firstData = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 24:
                this.rectangleChart1 = ((Telerik.Windows.Controls.RadCartesianChart3D)(target));
                return;

            case 25:
                this.bar11 = ((Telerik.Windows.Controls.ChartView.BarSeries3D)(target));
                return;

            case 26:
                this.secondData = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 27:
                this.rectangleChart2 = ((Telerik.Windows.Controls.RadCartesianChart3D)(target));
                return;

            case 28:
                this.barF = ((Telerik.Windows.Controls.ChartView.BarSeries3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public virtual INewTabHost <Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }
            var sourceWindow = Window.GetWindow(source);

            if (sourceWindow == null)
            {
                throw new ApplicationException("Unable to ascertain source window.");
            }
            var newWindow = (Window)Activator.CreateInstance(sourceWindow.GetType());

            newWindow.Dispatcher.Invoke(new Action(() => { }), DispatcherPriority.DataBind);

            var newTabablzControl = newWindow.LogicalTreeDepthFirstTraversal().OfType <TabablzControl>().FirstOrDefault();

            if (newTabablzControl == null)
            {
                throw new ApplicationException("Unable to ascertain tab control.");
            }

            if (newTabablzControl.ItemsSource == null)
            {
                newTabablzControl.Items.Clear();
            }

            return(new NewTabHost <Window>(newWindow, newTabablzControl));
        }
Exemple #36
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 13:
                this.GridLeft = ((System.Windows.Controls.Grid)(target));
                return;

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

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

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

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

            #line 508 "..\..\MainWindow.xaml"
                this.createDebtButton.Click += new System.Windows.RoutedEventHandler(this.createDebtButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line 515 "..\..\MainWindow.xaml"
                this.searchButton.Click += new System.Windows.RoutedEventHandler(this.searchButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line 521 "..\..\MainWindow.xaml"
                this.removeAllButton.Click += new System.Windows.RoutedEventHandler(this.removeAllButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line 527 "..\..\MainWindow.xaml"
                this.converterButton.Click += new System.Windows.RoutedEventHandler(this.converterButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line 534 "..\..\MainWindow.xaml"
                this.logoutButton.Click += new System.Windows.RoutedEventHandler(this.logoutButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line 544 "..\..\MainWindow.xaml"
                this.TopGrid.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.TopGrid_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 550 "..\..\MainWindow.xaml"
                this.settingsButton.Click += new System.Windows.RoutedEventHandler(this.settingsButton_Click);

            #line default
            #line hidden
                return;

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

            #line 553 "..\..\MainWindow.xaml"
                this.ButtonMinimize.Click += new System.Windows.RoutedEventHandler(this.ButtonMinimize_Click);

            #line default
            #line hidden
                return;

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

            #line 556 "..\..\MainWindow.xaml"
                this.ButtonMaximize.Click += new System.Windows.RoutedEventHandler(this.ButtonMaximize_Click);

            #line default
            #line hidden
                return;

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

            #line 559 "..\..\MainWindow.xaml"
                this.ButtonFechar.Click += new System.Windows.RoutedEventHandler(this.ButtonFechar_Click);

            #line default
            #line hidden
                return;

            case 32:
                this.tabControl1 = ((Dragablz.TabablzControl)(target));
                return;

            case 33:
                this.tabItemAll = ((System.Windows.Controls.TabItem)(target));
                return;

            case 34:
                this.listBoxDebts = ((System.Windows.Controls.ListBox)(target));
                return;

            case 35:
                this.tabItemStarred = ((System.Windows.Controls.TabItem)(target));
                return;

            case 36:
                this.listBoxStarredDebts = ((System.Windows.Controls.ListBox)(target));
                return;

            case 37:
                this.tabItemClosed = ((System.Windows.Controls.TabItem)(target));
                return;

            case 38:
                this.listBoxClosedDebts = ((System.Windows.Controls.ListBox)(target));
                return;

            case 39:
                this.tabItemOutstanding = ((System.Windows.Controls.TabItem)(target));
                return;

            case 40:
                this.listBoxOutstandingDebts = ((System.Windows.Controls.ListBox)(target));
                return;

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

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

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

            #line 610 "..\..\MainWindow.xaml"
                this.loginButton.Click += new System.Windows.RoutedEventHandler(this.loginButton_Click);

            #line default
            #line hidden
                return;

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

            case 45:
                this.usernameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

            case 46:
                this.passwordTextBox = ((System.Windows.Controls.PasswordBox)(target));
                return;

            case 47:
                this.confirmPasswordTextBox = ((System.Windows.Controls.PasswordBox)(target));
                return;

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

            #line 617 "..\..\MainWindow.xaml"
                this.registerButton.Click += new System.Windows.RoutedEventHandler(this.registerButton_Click);

            #line default
            #line hidden
                return;

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

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

            #line 621 "..\..\MainWindow.xaml"
                this.loginingButton.Click += new System.Windows.RoutedEventHandler(this.loginingButton_Click);

            #line default
            #line hidden
                return;

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

            case 52:
                this.ImageLogin = ((System.Windows.Controls.Image)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #37
0
 public NewTabHost(TElement container, TabablzControl tabablzControl)
 {
     Container      = container ?? throw new ArgumentNullException(nameof(container));
     TabablzControl = tabablzControl ?? throw new ArgumentNullException(nameof(tabablzControl));
 }
 private static void TabablzControlVisitor(TreeNode treeNode, TabablzControl tabablzControl)
 {
     treeNode.Children.Add(new TreeNode { Content = new TabablzControlProxy(tabablzControl) });
 }
 public TabablzControlItemLocation(TabablzControl tabControl, DragablzItem container, object item)
 {
     TabControl = tabControl ?? throw new ArgumentNullException(nameof(tabControl));
     Item       = item ?? throw new ArgumentNullException(nameof(item));
     Container  = container;
 }
Exemple #40
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 17 "..\..\MainWindow.xaml"
                ((SmartScene.View.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:
                this.Flyout_ConflictEdit = ((MahApps.Metro.Controls.Flyout)(target));
                return;

            case 4:
                this.leftSide = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

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

            #line 98 "..\..\MainWindow.xaml"
                this.expender_left.Collapsed += new System.Windows.RoutedEventHandler(this.expender_left_Collapsed);

            #line default
            #line hidden

            #line 98 "..\..\MainWindow.xaml"
                this.expender_left.Expanded += new System.Windows.RoutedEventHandler(this.expender_left_Expanded);

            #line default
            #line hidden
                return;

            case 6:

            #line 104 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.GridSplitter)(target)).DragCompleted += new System.Windows.Controls.Primitives.DragCompletedEventHandler(this.GridSplitter_DragCompleted);

            #line default
            #line hidden
                return;

            case 7:
                this.dockLayout = ((Dragablz.Dockablz.Layout)(target));
                return;

            case 8:
                this.tabControl_default = ((Dragablz.TabablzControl)(target));
                return;

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

            case 10:

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void SetActiveView(TabablzControl window)
        {
            if (this.activeWindow != window)
            {
                this.activeWindow = window;
                this.activeWindow.BringIntoView();
                this.activeWindow.Focus();

                var view = this.activeWindow.SelectedItem as TabClientProxy;
                if (view != null && this.Region.Views.Contains(view.Content))
                {
                    this.Region.Activate(view.Content);
                }
            }
        }
 private void OnWindowOpened(TabablzControl tabControl)
 {
     this.activeWindow = tabControl;
     this.windows.Add(tabControl);
     tabControl.ClosingItemCallback = ClosingItemCallback;
     tabControl.SelectionChanged += TabControl_SelectionChanged;
 }
        private void OnWindowClosed(TabablzControl tabControl)
        {
            ClearRelatedTabs(tabControl);
            this.windows.Remove(tabControl);
            tabControl.SelectionChanged -= TabControl_SelectionChanged;

            if (this.activeWindow == tabControl)
            {
                this.activeWindow = this.windows.FirstOrDefault();
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 9 "..\..\..\Views\Shell.xaml"
     ((PrismUnity.Views.Shell)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.MainTabControl = ((Dragablz.TabablzControl)(target));
     return;
     case 3:
     this.Accueil = ((System.Windows.Controls.TabItem)(target));
     return;
     }
     this._contentLoaded = true;
 }
Exemple #45
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dragmenu = ((Dragablz.TabablzControl)(target));
                return;

            case 2:
                this.dono = ((MaterialDesignThemes.Wpf.ColorZone)(target));
                return;

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

            #line 57 "..\..\Congées.xaml"
                this.vis.Click += new System.Windows.RoutedEventHandler(this.Visulisé_gantt);

            #line default
            #line hidden
                return;

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

            #line 67 "..\..\Congées.xaml"
                this.Filtre.DropDownClosed += new System.EventHandler(this.Filtre_actif);

            #line default
            #line hidden
                return;

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

            #line 73 "..\..\Congées.xaml"
                this.choixfiltre.DropDownClosed += new System.EventHandler(this.Filtre_actif2);

            #line default
            #line hidden
                return;

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

            #line 74 "..\..\Congées.xaml"
                this.but.Click += new System.Windows.RoutedEventHandler(this.annule_filtre);

            #line default
            #line hidden
                return;

            case 7:
                this.Employée = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 8:
                this.date_début = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 9:
                this.date_fin = ((System.Windows.Controls.DatePicker)(target));
                return;

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

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

            #line 98 "..\..\Congées.xaml"
                this.formulaire.Click += new System.Windows.RoutedEventHandler(this.formulaire_Click);

            #line default
            #line hidden
                return;

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

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

            #line 100 "..\..\Congées.xaml"
                this.validé.Click += new System.Windows.RoutedEventHandler(this.submit_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.alert = ((MaterialDesignThemes.Wpf.DialogHost)(target));
                return;

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

            #line 26 "..\..\MainWindow.xaml"
                ((Employee_Resources_Manage.MainWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.MetroWindow_KeyDown);

            #line default
            #line hidden

            #line 26 "..\..\MainWindow.xaml"
                ((Employee_Resources_Manage.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.MetroWindow_Loaded);

            #line default
            #line hidden

            #line 26 "..\..\MainWindow.xaml"
                ((Employee_Resources_Manage.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.ellAvatar = ((System.Windows.Shapes.Ellipse)(target));
                return;

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

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

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

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:

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

            #line default
            #line hidden
                return;

            case 8:

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

            #line default
            #line hidden
                return;

            case 9:

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 149 "..\..\MainWindow.xaml"
                this.btnSelector.Click += new System.Windows.RoutedEventHandler(this.btnSelector_Click);

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

            case 17:
                this.colChucNang = ((System.Windows.Controls.ColumnDefinition)(target));
                return;

            case 18:
                this.MenuToggleButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 19:
                this.Transitioner = ((MaterialDesignThemes.Wpf.Transitions.Transitioner)(target));

            #line 291 "..\..\MainWindow.xaml"
                this.Transitioner.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.UIManageControl_OnPreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

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

            case 21:
                this.packIconListViewSelected1 = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

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

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

            case 24:
                this.packIconListViewSelected2 = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

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

            case 26:
                this.manageItemsControl = ((System.Windows.Controls.ListView)(target));

            #line 315 "..\..\MainWindow.xaml"
                this.manageItemsControl.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.UIElement_OnPreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

            case 27:
                this.manageItemsControl2 = ((System.Windows.Controls.ListView)(target));

            #line 335 "..\..\MainWindow.xaml"
                this.manageItemsControl2.PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.UIElementChild_OnPreviewMouseLeftButtonUp);

            #line default
            #line hidden
                return;

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

            #line 353 "..\..\MainWindow.xaml"
                this.btnCollapse.Click += new System.Windows.RoutedEventHandler(this.btnCollapse_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.packIconCollapse = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 30:
                this.tabMain = ((Dragablz.TabablzControl)(target));
                return;

            case 31:
                this.tabHome = ((System.Windows.Controls.TabItem)(target));
                return;

            case 32:
                this.contentControl = ((System.Windows.Controls.ContentControl)(target));
                return;

            case 33:
                this.MainSnackbar = ((MaterialDesignThemes.Wpf.Snackbar)(target));
                return;
            }
            this._contentLoaded = true;
        }
Exemple #47
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tabControl = ((Dragablz.TabablzControl)(target));

            #line 18 "..\..\MainWindow.xaml"
                this.tabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabControl_SelectionChanged);

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

            #line 44 "..\..\MainWindow.xaml"
                this.textBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.textBox_TextChanged);

            #line default
            #line hidden
                return;

            case 13:
                this.progressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 public virtual TabEmptiedResponse TabEmptiedHandler(TabablzControl tabControl, Window window)
 {
     return TabEmptiedResponse.DoNothing;
 }
Exemple #49
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\Page.xaml"
                ((GameDB.Page)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:

            #line 14 "..\..\Page.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseClick);

            #line default
            #line hidden
                return;

            case 3:
                this.tabControl = ((Dragablz.TabablzControl)(target));
                return;

            case 4:
                this.characterItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 5:
                this.characterGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.characterScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            #line 27 "..\..\Page.xaml"
                this.createButton.Click += new System.Windows.RoutedEventHandler(this.CreateClick);

            #line default
            #line hidden
                return;

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

            case 9:
                this.statItem = ((System.Windows.Controls.TabItem)(target));
                return;

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

            case 11:
                this.statScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            #line 38 "..\..\Page.xaml"
                this.backStatButton.Click += new System.Windows.RoutedEventHandler(this.BackStatClick);

            #line default
            #line hidden
                return;

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

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

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

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

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

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

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

            case 20:
                this.progressLevel = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 21:
                this.progressExp = ((System.Windows.Controls.ProgressBar)(target));
                return;

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

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

            case 24:
                this.progressHealth = ((System.Windows.Controls.ProgressBar)(target));
                return;

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

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

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

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

            case 29:
                this.locationItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 30:
                this.locationGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this.locationScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            #line 78 "..\..\Page.xaml"
                this.backLocationButton.Click += new System.Windows.RoutedEventHandler(this.BackLocationClick);

            #line default
            #line hidden
                return;

            case 33:
                this.locationList = ((System.Windows.Controls.WrapPanel)(target));
                return;

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

            case 35:
                this.skillGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 36:
                this.skillScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            #line 89 "..\..\Page.xaml"
                this.backSkillButton.Click += new System.Windows.RoutedEventHandler(this.BackSkillClick);

            #line default
            #line hidden
                return;

            case 38:
                this.skillList = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 39:
                this.itemItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 40:
                this.itemGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 41:
                this.itemScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            #line 100 "..\..\Page.xaml"
                this.backItemButton.Click += new System.Windows.RoutedEventHandler(this.BackItemClick);

            #line default
            #line hidden
                return;

            case 43:
                this.itemList = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 44:
                this.monsterItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 45:
                this.monsterGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 46:
                this.monsterScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            #line 111 "..\..\Page.xaml"
                this.backMonsterButton.Click += new System.Windows.RoutedEventHandler(this.BackMonsterClick);

            #line default
            #line hidden
                return;

            case 48:
                this.monsterList = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 49:
                this.monsterSkillItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 50:
                this.monsterSkillGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 51:
                this.monsterSkillScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

            #line 122 "..\..\Page.xaml"
                this.backMonsterSkillButton.Click += new System.Windows.RoutedEventHandler(this.BackMonsterSkillClick);

            #line default
            #line hidden
                return;

            case 53:
                this.monsterSkillList = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 54:
                this.dropItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 55:
                this.dropGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 56:
                this.dropScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 57:
                this.backDropButton = ((System.Windows.Controls.Button)(target));

            #line 133 "..\..\Page.xaml"
                this.backDropButton.Click += new System.Windows.RoutedEventHandler(this.BackDropClick);

            #line default
            #line hidden
                return;

            case 58:
                this.dropList = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 59:
                this.npcItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 60:
                this.npcGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 61:
                this.npcScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 62:
                this.backNPCButton = ((System.Windows.Controls.Button)(target));

            #line 144 "..\..\Page.xaml"
                this.backNPCButton.Click += new System.Windows.RoutedEventHandler(this.BackNPCClick);

            #line default
            #line hidden
                return;

            case 63:
                this.npcList = ((System.Windows.Controls.WrapPanel)(target));
                return;

            case 64:
                this.settingItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 65:
                this.settingGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 66:
                this.settingScrollView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 67:
                this.backSettingButton = ((System.Windows.Controls.Button)(target));

            #line 156 "..\..\Page.xaml"
                this.backSettingButton.Click += new System.Windows.RoutedEventHandler(this.BackSettingClick);

            #line default
            #line hidden
                return;

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

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

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

            #line 161 "..\..\Page.xaml"
                this.settingChangeLoginButton.Click += new System.Windows.RoutedEventHandler(this.ChangeLoginClick);

            #line default
            #line hidden
                return;

            case 71:
                this.settingUpdateLoginButton = ((System.Windows.Controls.Button)(target));

            #line 162 "..\..\Page.xaml"
                this.settingUpdateLoginButton.Click += new System.Windows.RoutedEventHandler(this.UpdateLoginClick);

            #line default
            #line hidden
                return;

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

            #line 163 "..\..\Page.xaml"
                this.settingCancelLoginButton.Click += new System.Windows.RoutedEventHandler(this.CancelLoginClick);

            #line default
            #line hidden
                return;

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

            case 74:
                this.settingUserPassword = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 169 "..\..\Page.xaml"
                this.settingChangePasswordButton.Click += new System.Windows.RoutedEventHandler(this.ChangePasswordClick);

            #line default
            #line hidden
                return;

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

            #line 170 "..\..\Page.xaml"
                this.settingUpdatePasswordButton.Click += new System.Windows.RoutedEventHandler(this.UpdatePasswordClick);

            #line default
            #line hidden
                return;

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

            #line 171 "..\..\Page.xaml"
                this.settingCancelPasswordButton.Click += new System.Windows.RoutedEventHandler(this.CancelPasswordClick);

            #line default
            #line hidden
                return;

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

            case 79:
                this.settingUserName = ((System.Windows.Controls.TextBox)(target));
                return;

            case 80:
                this.settingChangeNameButton = ((System.Windows.Controls.Button)(target));

            #line 177 "..\..\Page.xaml"
                this.settingChangeNameButton.Click += new System.Windows.RoutedEventHandler(this.ChangeNameClick);

            #line default
            #line hidden
                return;

            case 81:
                this.settingUpdateNameButton = ((System.Windows.Controls.Button)(target));

            #line 178 "..\..\Page.xaml"
                this.settingUpdateNameButton.Click += new System.Windows.RoutedEventHandler(this.UpdateNameClick);

            #line default
            #line hidden
                return;

            case 82:
                this.settingCancelNameButton = ((System.Windows.Controls.Button)(target));

            #line 179 "..\..\Page.xaml"
                this.settingCancelNameButton.Click += new System.Windows.RoutedEventHandler(this.CancelNameClick);

            #line default
            #line hidden
                return;

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

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

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

            #line 185 "..\..\Page.xaml"
                this.settingChangeSurnameButton.Click += new System.Windows.RoutedEventHandler(this.ChangeSurnameClick);

            #line default
            #line hidden
                return;

            case 86:
                this.settingUpdateSurnameButton = ((System.Windows.Controls.Button)(target));

            #line 186 "..\..\Page.xaml"
                this.settingUpdateSurnameButton.Click += new System.Windows.RoutedEventHandler(this.UpdateSurnameClick);

            #line default
            #line hidden
                return;

            case 87:
                this.settingCancelSurnameButton = ((System.Windows.Controls.Button)(target));

            #line 187 "..\..\Page.xaml"
                this.settingCancelSurnameButton.Click += new System.Windows.RoutedEventHandler(this.CancelSurnameClick);

            #line default
            #line hidden
                return;

            case 88:
                this.deleteUserButton = ((System.Windows.Controls.Button)(target));

            #line 190 "..\..\Page.xaml"
                this.deleteUserButton.Click += new System.Windows.RoutedEventHandler(this.DeleteUserClick);

            #line default
            #line hidden
                return;

            case 89:
                this.donatPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 90:
                this.donatLogin = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 92:
                this.grantDonatButton = ((System.Windows.Controls.Button)(target));

            #line 195 "..\..\Page.xaml"
                this.grantDonatButton.Click += new System.Windows.RoutedEventHandler(this.GrantDonatClick);

            #line default
            #line hidden
                return;

            case 93:
                this.revokeDonatButton = ((System.Windows.Controls.Button)(target));

            #line 196 "..\..\Page.xaml"
                this.revokeDonatButton.Click += new System.Windows.RoutedEventHandler(this.RevokeDonatClick);

            #line default
            #line hidden
                return;

            case 94:
                this.xmlPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 95:
                this.xmlExportButton = ((System.Windows.Controls.Button)(target));

            #line 200 "..\..\Page.xaml"
                this.xmlExportButton.Click += new System.Windows.RoutedEventHandler(this.XMLExportClick);

            #line default
            #line hidden
                return;

            case 96:
                this.insert100KButton = ((System.Windows.Controls.Button)(target));

            #line 201 "..\..\Page.xaml"
                this.insert100KButton.Click += new System.Windows.RoutedEventHandler(this.Insert100KClick);

            #line default
            #line hidden
                return;

            case 97:
                this.xmlImportButton = ((System.Windows.Controls.Button)(target));

            #line 202 "..\..\Page.xaml"
                this.xmlImportButton.Click += new System.Windows.RoutedEventHandler(this.XMLImportClick);

            #line default
            #line hidden
                return;

            case 98:
                this.tableControlButton = ((System.Windows.Controls.Button)(target));

            #line 205 "..\..\Page.xaml"
                this.tableControlButton.Click += new System.Windows.RoutedEventHandler(this.TableControlClick);

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

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

            #line default
            #line hidden
                return;

            case 2:

            #line 109 "..\..\MainWindow.xaml"
                ((MaterialDesignThemes.Wpf.DialogHost)(target)).DialogOpened += new MaterialDesignThemes.Wpf.DialogOpenedEventHandler(this.DialogHost_DialogOpened);

            #line default
            #line hidden
                return;

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

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:
                this.pathBar = ((MaterialDesignThemes.Wpf.Chip)(target));

            #line 128 "..\..\MainWindow.xaml"
                this.pathBar.DeleteClick += new System.Windows.RoutedEventHandler(this.pathBar_DeleteClick);

            #line default
            #line hidden
                return;

            case 6:

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

            #line default
            #line hidden
                return;

            case 7:
                this.tabControl = ((Dragablz.TabablzControl)(target));
                return;

            case 8:
                this.treeViewMenu = ((Dashboard1.viewModel.TreeViewControl)(target));
                return;

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

            #line 336 "..\..\MainWindow.xaml"
                this.GridBarraTitulo.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.GridBarraTitulo_MouseDown);

            #line default
            #line hidden
                return;

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

            #line 366 "..\..\MainWindow.xaml"
                this.Fullscreen.Click += new System.Windows.RoutedEventHandler(this.Full_Screen);

            #line default
            #line hidden
                return;

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

            #line 369 "..\..\MainWindow.xaml"
                this.FullscreenExit.Click += new System.Windows.RoutedEventHandler(this.Full_Screen_Exit);

            #line default
            #line hidden
                return;

            case 12:
                this.ButtonFechar = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
 public virtual TabEmptiedResponse TabEmptiedHandler(TabablzControl tabControl, Window window)
 {
     return(TabEmptiedResponse.CloseWindowOrLayoutBranch);
 }
 public TabEmptiedResponse TabEmptiedHandler(TabablzControl tabControl, Window window)
 {
     return(TabEmptiedResponse.CloseWindow);
 }
 public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
 {
     var view = _kernel.Get<MainWindow>();
     return new NewTabHost<MainWindow>(view, view.InitialTabablzControl);
 }
 public TabEmptiedResponse TabEmptiedHandler(TabablzControl tabControl, Window window)
 {
     return TabEmptiedResponse.CloseWindowOrLayoutBranch;
 }
 public TabablzControlItemLocation(TabablzControl tabControl, object item) : this(tabControl, null, item)
 {
 }
        private void ClearRelatedTabs(TabablzControl tabControl)
        {
            var items = tabControl.Items.OfType<TabClientProxy>().ToList();

            items.ForEach(item =>
            {
                try
                {
                    this.Region.Remove(item.Content);
                }
                catch (ArgumentException) { }
            });
        }
 public INewTabHost<Window> GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source)
 {
     var view = new ShellViewModel(false).View;
     return new NewTabHost<Window>(view, view.ShellTabablzControl);
 }
        private bool ContainsView(TabablzControl window, TabClientProxy proxy)
        {
            if (proxy == null || window == null) return false;

            return window.Items.OfType<TabClientProxy>().Any(tc => tc == proxy);
        }
Exemple #59
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.WindowSet = ((COMMISSION.io_WPF_add.MainWindow)(target));

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

            #line default
            #line hidden

            #line 26 "..\..\MainWindow.xaml"
                this.WindowSet.Closing += new System.ComponentModel.CancelEventHandler(this.WindowSet_Closing);

            #line default
            #line hidden
                return;

            case 2:
                this.help_box = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 4:
                this.edit_dialog = ((MaterialDesignThemes.Wpf.DialogHost)(target));
                return;

            case 5:
                this.Body = ((System.Windows.Controls.Frame)(target));
                return;

            case 6:
                this.tabheader = ((Dragablz.TabablzControl)(target));

            #line 68 "..\..\MainWindow.xaml"
                this.tabheader.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.tabheader_SelectionChanged);

            #line default
            #line hidden
                return;

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

            case 8:
                this.com_instance = ((System.Windows.Controls.Frame)(target));
                return;

            case 9:
                this.con_instance = ((System.Windows.Controls.Frame)(target));
                return;

            case 10:
                this.log_instance = ((System.Windows.Controls.Frame)(target));
                return;

            case 11:
                this.setting = ((System.Windows.Controls.TabItem)(target));
                return;

            case 12:
                this.set_instance = ((System.Windows.Controls.Frame)(target));
                return;

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

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

            #line default
            #line hidden
                return;

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

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

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

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

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

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

            #line default
            #line hidden
                return;

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

            #line 165 "..\..\MainWindow.xaml"
                this.Add_COMMISSION.Click += new System.Windows.RoutedEventHandler(this.Add_COMMISSION_Click_1);

            #line default
            #line hidden
                return;

            case 20:
                this.Profile_Picture = ((System.Windows.Shapes.Ellipse)(target));

            #line 179 "..\..\MainWindow.xaml"
                this.Profile_Picture.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Ellipse_MouseUp);

            #line default
            #line hidden
                return;

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

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

            #line 208 "..\..\MainWindow.xaml"
                this.COMMISSION_Cost.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.COMMISSION_Cost_PreviewTextInput);

            #line default
            #line hidden
                return;

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

            #line 210 "..\..\MainWindow.xaml"
                this.cost_5.Click += new System.Windows.RoutedEventHandler(this.cost_5_Click);

            #line default
            #line hidden
                return;

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

            #line 211 "..\..\MainWindow.xaml"
                this.cost_25.Click += new System.Windows.RoutedEventHandler(this.cost_25_Click);

            #line default
            #line hidden
                return;

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

            #line 212 "..\..\MainWindow.xaml"
                this.cost_50.Click += new System.Windows.RoutedEventHandler(this.cost_50_Click);

            #line default
            #line hidden
                return;

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

            #line 213 "..\..\MainWindow.xaml"
                this.cost_75.Click += new System.Windows.RoutedEventHandler(this.cost_75_Click);

            #line default
            #line hidden
                return;

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

            #line 214 "..\..\MainWindow.xaml"
                this.cost_100.Click += new System.Windows.RoutedEventHandler(this.cost_100_Click);

            #line default
            #line hidden
                return;

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

            case 29:
                this.COMMISSION_Deadline = ((System.Windows.Controls.DatePicker)(target));
                return;

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

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

            #line 263 "..\..\MainWindow.xaml"
                this.ADD_COMMISSION_ACCEPT_BUTTON.Click += new System.Windows.RoutedEventHandler(this.ADD_COMMISSION_ACCEPT_BUTTON_Click);

            #line default
            #line hidden
                return;

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

            case 33:
                this.WindowBar = ((MaterialDesignThemes.Wpf.ColorZone)(target));

            #line 293 "..\..\MainWindow.xaml"
                this.WindowBar.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.WindowBar_MouseDown);

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;

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

            #line 318 "..\..\MainWindow.xaml"
                this.Maximize.Click += new System.Windows.RoutedEventHandler(this.Maximize_Click);

            #line default
            #line hidden
                return;

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

            #line 325 "..\..\MainWindow.xaml"
                this.CLOSEBUTTON.Click += new System.Windows.RoutedEventHandler(this.CLOSEBUTTON_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.addhost = ((MaterialDesignThemes.Wpf.DialogHost)(target));
                return;

            case 39:
                this.sparkle = ((System.Windows.Controls.Image)(target));
                return;

            case 40:
                this.profilehost = ((MaterialDesignThemes.Wpf.DialogHost)(target));
                return;

            case 41:
                this.background_image = ((System.Windows.Controls.Image)(target));
                return;

            case 42:
                this.Host_Profile_Picture = ((System.Windows.Shapes.Ellipse)(target));
                return;

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

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

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

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

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

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

            #line 385 "..\..\MainWindow.xaml"
                this.Accept_Edit.Click += new System.Windows.RoutedEventHandler(this.Accept_Edit_Click);

            #line default
            #line hidden
                return;

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

            #line 400 "..\..\MainWindow.xaml"
                this.proflie_edit.Click += new System.Windows.RoutedEventHandler(this.proflie_edit_Click);

            #line default
            #line hidden
                return;

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

            #line 409 "..\..\MainWindow.xaml"
                this.Close_Unselect.Click += new System.Windows.RoutedEventHandler(this.Close_Unselect_Click);

            #line default
            #line hidden
                return;

            case 51:
                this.profiledithost = ((MaterialDesignThemes.Wpf.DialogHost)(target));
                return;

            case 52:
                this.Edit_Picture = ((System.Windows.Shapes.Ellipse)(target));

            #line 448 "..\..\MainWindow.xaml"
                this.Edit_Picture.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Edit_Picture_MouseUp);

            #line default
            #line hidden
                return;

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

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

            #line 467 "..\..\MainWindow.xaml"
                this.edit_cost.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.edit_cost_PreviewTextInput);

            #line default
            #line hidden
                return;

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

            #line 469 "..\..\MainWindow.xaml"
                this.editcost_5.Click += new System.Windows.RoutedEventHandler(this.editcost_5_Click);

            #line default
            #line hidden
                return;

            case 56:
                this.editcost_25 = ((System.Windows.Controls.Button)(target));

            #line 470 "..\..\MainWindow.xaml"
                this.editcost_25.Click += new System.Windows.RoutedEventHandler(this.editcost_25_Click);

            #line default
            #line hidden
                return;

            case 57:
                this.editcost_50 = ((System.Windows.Controls.Button)(target));

            #line 471 "..\..\MainWindow.xaml"
                this.editcost_50.Click += new System.Windows.RoutedEventHandler(this.editcost_50_Click);

            #line default
            #line hidden
                return;

            case 58:
                this.editcost_75 = ((System.Windows.Controls.Button)(target));

            #line 472 "..\..\MainWindow.xaml"
                this.editcost_75.Click += new System.Windows.RoutedEventHandler(this.editcost_75_Click);

            #line default
            #line hidden
                return;

            case 59:
                this.editcost_100 = ((System.Windows.Controls.Button)(target));

            #line 473 "..\..\MainWindow.xaml"
                this.editcost_100.Click += new System.Windows.RoutedEventHandler(this.editcost_100_Click);

            #line default
            #line hidden
                return;

            case 60:
                this.edit_client = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 61:
                this.edit_deadline = ((System.Windows.Controls.DatePicker)(target));
                return;

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

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

            #line 515 "..\..\MainWindow.xaml"
                this.Profile_Delete.Click += new System.Windows.RoutedEventHandler(this.Profile_Delete_Click);

            #line default
            #line hidden
                return;

            case 64:
                this.edit_confirm = ((System.Windows.Controls.Button)(target));

            #line 516 "..\..\MainWindow.xaml"
                this.edit_confirm.Click += new System.Windows.RoutedEventHandler(this.edit_confirm_Click);

            #line default
            #line hidden
                return;

            case 65:
                this.txt_tester = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
 private void OnWindowActivated(TabablzControl tabControl)
 {
     if (this.activeWindow != tabControl)
     {
         SetActiveView(tabControl);
     }
 }