Esempio n. 1
0
        // TODO: Exercise 1: Task 4c: Review the following event handler.
        // Animate the photo as the user moves the mouse away from the "delete" image
        private void RemoveStudent_MouseLeave(object sender, MouseEventArgs e)
        {
            Grid grid = (Grid)sender;

            grid.Opacity = 0.3;
            StudentPhoto photo = ((Grid)grid.Parent).Children[0] as StudentPhoto;

            photo.Opacity = 1.0;
        }
Esempio n. 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btnBack = ((Grades.WPF.GrungeButton)(target));
                return;

            case 2:
                this.listChild = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 4:
                this.studentPhoto = ((Grades.WPF.StudentPhoto)(target));
                return;

            case 5:
                this.flipControl = ((Grades.WPF.FlipControl)(target));
                return;

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

            case 7:

            #line 79 "..\..\..\..\Views\StudentProfile.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Flip_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.gridProfile = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.profileView = ((System.Windows.Controls.ScrollViewer)(target));
                return;

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

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

            case 12:
                this.txtNoGrades = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            #line 148 "..\..\..\..\Views\StudentProfile.xaml"
                this.txtSaveReport.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.SaveReport_Click);

            #line default
            #line hidden
                return;

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

            #line 149 "..\..\..\..\Views\StudentProfile.xaml"
                this.txtAddGrade.MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.AddGrade_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.formSearch = ((System.Windows.Controls.Grid)(target));
                return;

            case 16:

            #line 170 "..\..\..\..\Views\StudentProfile.xaml"
                ((System.Windows.Controls.Grid)(target)).MouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.Flip_Click);

            #line default
            #line hidden
                return;

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

            case 18:
                this.cbFilterSubject = ((System.Windows.Controls.CheckBox)(target));

            #line 194 "..\..\..\..\Views\StudentProfile.xaml"
                this.cbFilterSubject.Checked += new System.Windows.RoutedEventHandler(this.FilterSubject_Checked);

            #line default
            #line hidden
                return;

            case 19:
                this.listSubject = ((Grades.WPF.SubjectList)(target));
                return;

            case 20:
                this.cbFilterDate = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 21:
                this.dpStartDate = ((System.Windows.Controls.DatePicker)(target));

            #line 211 "..\..\..\..\Views\StudentProfile.xaml"
                this.dpStartDate.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.StartDate_SelectedDateChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.dpEndDate = ((System.Windows.Controls.DatePicker)(target));
                return;
            }
            this._contentLoaded = true;
        }