示例#1
0
 void Handler_JournalClose(object sender, DataEventArgs e)
 {
     this.secondGrid.Children.Remove(this.journal);
     this.secondGrid.Visibility = System.Windows.Visibility.Hidden;
     this.firstGrid.Visibility = System.Windows.Visibility.Visible;
     this.journal = null;
 }
示例#2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.firstGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.filter1 = ((System.Windows.Controls.CheckBox)(target));
     
     #line 39 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.filter1.Checked += new System.Windows.RoutedEventHandler(this.filter1_Checked);
     
     #line default
     #line hidden
     
     #line 39 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.filter1.Unchecked += new System.Windows.RoutedEventHandler(this.filter1_Unchecked);
     
     #line default
     #line hidden
     return;
     case 3:
     this.filter2 = ((System.Windows.Controls.CheckBox)(target));
     
     #line 41 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.filter2.Checked += new System.Windows.RoutedEventHandler(this.filter2_Checked);
     
     #line default
     #line hidden
     
     #line 41 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.filter2.Unchecked += new System.Windows.RoutedEventHandler(this.filter2_Unchecked);
     
     #line default
     #line hidden
     return;
     case 4:
     this.cbFaculty = ((System.Windows.Controls.ComboBox)(target));
     
     #line 44 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.cbFaculty.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbFaculty_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.cbKafedra = ((System.Windows.Controls.ComboBox)(target));
     
     #line 47 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.cbKafedra.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbKafedra_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 6:
     this.cbCourse = ((System.Windows.Controls.ComboBox)(target));
     
     #line 50 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.cbCourse.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbCourse_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.bNext1 = ((System.Windows.Controls.Button)(target));
     
     #line 52 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.bNext1.Click += new System.Windows.RoutedEventHandler(this.bNext1_Click);
     
     #line default
     #line hidden
     return;
     case 8:
     this.lb1 = ((System.Windows.Controls.ListBox)(target));
     
     #line 56 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.lb1.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.lb1_MouseDoubleClick);
     
     #line default
     #line hidden
     
     #line 56 "..\..\..\..\..\Classes\WorkPanels\WorkPanelJournal.xaml"
     this.lb1.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.lb1_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 9:
     this.secondGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 10:
     this.journalTable = ((IMS.JournalTable)(target));
     return;
     }
     this._contentLoaded = true;
 }
示例#3
0
 void GroupChosen(studentsgroup group)
 {
     this.firstGrid.Visibility = Visibility.Hidden;
     this.secondGrid.Visibility = Visibility.Visible;
     this.journal = new JournalTable { IsEditable = this.isEditable };
     this.journal.OnClose += this.Handler_JournalClose;
     this.secondGrid.Children.Add(this.journal);
     this.journal.SetJournal(group);
 }