Exemple #1
0
 public MainWindow()
 {
     InitializeComponent();
     pageHolder = ph;
     Configurate(new PageHolderConfiguratorForManager());
     //this.Configurate(new PageHolderConfiguratorForStudent());
     //this.Configurate(new PageHolderConfiguratorForTeacher());
     this.Left = 0;
     this.Top = 0;
     this.Width = wa.Width;
     this.Height = wa.Height;
     prevWndRect = new Rect(Left, Top, grid1.Width, grid1.Height);
     this.currentWndRect = new Rect(this.Left, this.Top, this.grid1.Width, this.grid1.Height);
     DL.pageHolder = ph;
     DL.SetTransform();
 }
        protected void FillPageHolder(PageHolder holder)
        {
           
            foreach (var item in this.items)
            {
                TabPage page = App.pages[item.TabPageKey];

                IWorkPanel panel = App.panels[item.WorkPanelKey];
                panel.InitializeData();
                page.OnActivate += panel.OnActivated;
                page.OnDeactivate += panel.OnDeactivated;
                page.Content = panel;
                this.ConfigurateWorkPanel(panel);
                holder.Children.Add(page);

                IRequestHandler handler = (IRequestHandler)panel;
                handler.OnRequestInit += this.OnRequestInitHandler;
            }

            
  
        }
 public void ConfiguratePageHolder(PageHolder holder)
 {
     holder.RemoveTabPages();
     this.FillPageHolder(holder);
 }
Exemple #4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 7 "..\..\..\MainWindow.xaml"
     ((IMS.MainWindow)(target)).IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.Window_IsVisibleChanged);
     
     #line default
     #line hidden
     return;
     case 2:
     this.grid1 = ((System.Windows.Controls.Grid)(target));
     return;
     case 3:
     this.ph = ((IMS_TabPages.PageHolder)(target));
     return;
     case 4:
     
     #line 13 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     
     #line 20 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);
     
     #line default
     #line hidden
     return;
     case 6:
     
     #line 27 "..\..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
     
     #line default
     #line hidden
     return;
     case 7:
     this.DL = ((IMS.DarkLayer)(target));
     return;
     }
     this._contentLoaded = true;
 }