private void OnAllTeachersBtnClick(object sender, RoutedEventArgs e)
        {
            this.ExcelGrid.Visibility = Visibility.Hidden;
            PersonsListWindow teachersWindow = new PersonsListWindow(this);

            teachersWindow.lbltextApplicantList.Content = "Teachers";
            teachersWindow.TeacherComboBox.IsEnabled    = false;
            HelperMethodes.UpdateGrid(MainGrid, MainFormColRight, teachersWindow, 70);
            this.logoMicrosoft.Visibility = Visibility.Visible;
        }
Beispiel #2
0
 public AboutApplicant(ApplicantViewModel applicant, MainWindow parent, PersonsListWindow personsListWindow) : this(parent, personsListWindow)
 {
     this.applicant            = applicant;
     this.nameLabel.Content    = this.applicant.FirstName;
     this.surNameLabel.Content = this.applicant.LastName;
     this.phoneLabel.Content   = this.applicant.Phone1;
     this.emailLabel.Content   = this.applicant.Email;
     this.DescriptionLable.AppendText(this.applicant.Description);
     this.DateLable.Content = this.applicant.Date;
     this.TechName.Content  = this.applicant.Technology.Name;
 }
Beispiel #3
0
 public EditApplicantWindow(ApplicantViewModel applicantModel, PersonsListWindow personsListWindow)
 {
     InitializeComponent();
     this.applicant            = applicantModel;
     this.textBoxName.Text     = this.applicant.FirstName;
     this.textBoxLastName.Text = this.applicant.LastName;
     this.textBoxPhone.Text    = this.applicant.Phone1;
     this.textBoxEmail.Text    = this.applicant.Email;
     this.DescTextBox.AppendText(this.applicant.Description);
     AddTechnologiesToComboBox(this.technologyCombobox);
     this.personsListWindow = personsListWindow;
 }
        private async void OnApplicantBtnClick(object sender, RoutedEventArgs e)
        {
            PersonsListWindow AplicantsWindow = new PersonsListWindow(this);

            this.ExcelGrid.Visibility = Visibility.Visible;
            AplicantsWindow.lbltextApplicantList.Content = "Applicants";
            AplicantsWindow.TeacherComboBox.IsEnabled    = false;
            this.logoMicrosoft.Visibility = Visibility.Visible;
            HelperMethodes.UpdateGrid(MainGrid, MainFormColRight, AplicantsWindow, 70);
            ApplicantController appcontrol = new ApplicantController();

            AplicantsWindow.ApplList.ItemsSource = await appcontrol.GetAllAsync();
        }
Beispiel #5
0
 public MakeStudentWindow(ApplicantViewModel applicant, PersonsListWindow personsListWindow) : this(personsListWindow)
 {
     this.applicant = applicant;
     this.MakeStudentNamelabel.Content       = $"Student: {this.applicant.FirstName}  {this.applicant.LastName}";
     this.MakeStudentLessonNameLabel.Content = $"{this.applicant.Technology.Name}";
 }
Beispiel #6
0
 public MakeStudentWindow(PersonsListWindow personsListWindow)
 {
     InitializeComponent();
     this.personsListWindow = personsListWindow;
 }
Beispiel #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PersonsListWindow1 = ((MicCRM.View.PersonsListWindow)(target));
                return;

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

            case 3:
                this.lbltextApplicantList = ((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:

            #line 102 "..\..\PersonsListWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnFindBtnClicked);

            #line default
            #line hidden
                return;

            case 11:

            #line 113 "..\..\PersonsListWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnRefresh);

            #line default
            #line hidden
                return;

            case 12:

            #line 123 "..\..\PersonsListWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.OnFindBtnClicked);

            #line default
            #line hidden
                return;

            case 13:
                this.ApplList = ((System.Windows.Controls.DataGrid)(target));

            #line 135 "..\..\PersonsListWindow.xaml"
                this.ApplList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.ApplList_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Beispiel #8
0
 public AboutApplicant(MainWindow parent, PersonsListWindow personsListWindow)
 {
     InitializeComponent();
     this.ParentGrid        = parent;
     this.PersonsListWindow = personsListWindow;
 }