Example #1
0
        private async void OnAllStudentBtnClick(object sender, RoutedEventArgs e)
        {
            this.ExcelGrid.Visibility = Visibility.Hidden;
            StudentListWindow StudentsWindow = new StudentListWindow(this);

            HelperMethodes.UpdateGrid(MainGrid, MainFormColRight, StudentsWindow, 70);
            this.logoMicrosoft.Visibility = Visibility.Visible;
            StudentController stctrl = new StudentController();

            StudentsWindow.studentList.ItemsSource = await stctrl.GetAllAsync();
        }
Example #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.StudentListWindow1 = ((MicCRM.View.StudentListWindow)(target));
                return;

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

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

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

            case 5:
                this.FirstNameTextBox = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 8:
                this.LessonsComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 10:
                this.studentList = ((System.Windows.Controls.DataGrid)(target));

            #line 135 "..\..\StudentListWindow.xaml"
                this.studentList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.StudentList_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        public AboutStudent(StudentViewModel student, MainWindow parent, StudentListWindow StudentListWindow) : this(parent, StudentListWindow)
        {
            this.nameLabel.Content        = student.ApplicantViewModel.FirstName;
            this.surNameLabel.Content     = student.ApplicantViewModel.LastName;
            this.phoneLabel.Content       = student.ApplicantViewModel.Phone1;
            this.emailLabel.Content       = student.ApplicantViewModel.Email;
            this.DescriptionLable.Content = student.Description;
            this.DateLable.Content        = student.ApplicantViewModel.Date.ToShortDateString();
            List <LessonTechnologyViewModel> list = new List <LessonTechnologyViewModel>();

            foreach (var item in student.Lessons)
            {
                LessonTechnologyViewModel lessonTechnologyViewModel = new LessonTechnologyViewModel();
                lessonTechnologyViewModel.TechName     = student.ApplicantViewModel.Technology.Name;
                lessonTechnologyViewModel.StartingDate = item.StartingDate.ToShortDateString();
                lessonTechnologyViewModel.EndingDate   = item.EndingDate.ToShortDateString();
                list.Add(lessonTechnologyViewModel);
            }
            this.LesonsList.ItemsSource = list;
        }
 public AboutStudent(MainWindow parent, StudentListWindow studentListWindow)
 {
     InitializeComponent();
     this.ParentGrid        = parent;
     this.PersonsListWindow = studentListWindow;
 }