예제 #1
0
        public void LoseFocus(HinttableDatePicker hinttableDp)
        {
            DateTime temp;

            if (DateTime.TryParse(DatePicker.Text, out temp) == false)
            {
                DatePicker.Text      = "";
                HintLabel.Visibility = System.Windows.Visibility.Visible;
            }
        }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyTesterAddPage = ((DrivingTestsManagerV1._2.Main_Menu.Tester_Menu.TesterAddPage)(target));

            #line 14 "..\..\..\..\Main Menu\Tester Menu\TesterAddPage.xaml"
                this.MyTesterAddPage.Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.TesterAddPageMainGrid = ((System.Windows.Controls.Grid)(target));

            #line 17 "..\..\..\..\Main Menu\Tester Menu\TesterAddPage.xaml"
                this.TesterAddPageMainGrid.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TesterAddPageMainGrid_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 3:
                this.IdTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 4:
                this.FirstNameTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 5:
                this.LastNameTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 6:
                this.BirthDateDp = ((DrivingTestsManagerV1._2.User_Controls.HinttableDatePicker)(target));
                return;

            case 7:
                this.GenderCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 8:
                this.CityCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 9:
                this.CityBusyIndicator = ((Xceed.Wpf.Toolkit.BusyIndicator)(target));
                return;

            case 10:
                this.StreetCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 11:
                this.StreetBusyIndicator = ((Xceed.Wpf.Toolkit.BusyIndicator)(target));
                return;

            case 12:
                this.BuildingTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 13:
                this.WorkTimeExpander = ((System.Windows.Controls.Expander)(target));
                return;

            case 14:
                this.MyWorkTime = ((DrivingTestsManagerV1._2.User_Controls.WorkTimeControl)(target));
                return;

            case 15:
                this.WorkHoursValidator = ((DrivingTestsManagerV1._2.User_Controls.CircleValidator)(target));
                return;

            case 16:
                this.PhoneNumberTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 17:
                this.EmailTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 18:
                this.CarTypeCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 19:
                this.MaximalDistance = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));

            #line 35 "..\..\..\..\Main Menu\Tester Menu\TesterAddPage.xaml"
                this.MaximalDistance.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.MaximalDistance_ValueChanged);

            #line default
            #line hidden
                return;

            case 20:
                this.MaxDistanceValidator = ((DrivingTestsManagerV1._2.User_Controls.CircleValidator)(target));
                return;

            case 21:
                this.Experience = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));

            #line 37 "..\..\..\..\Main Menu\Tester Menu\TesterAddPage.xaml"
                this.Experience.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.Experience_ValueChanged);

            #line default
            #line hidden
                return;

            case 22:
                this.ExperienceValidator = ((DrivingTestsManagerV1._2.User_Controls.CircleValidator)(target));
                return;

            case 23:
                this.MaxWeeklyTests = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));

            #line 39 "..\..\..\..\Main Menu\Tester Menu\TesterAddPage.xaml"
                this.MaxWeeklyTests.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.MaxWeeklyTests_ValueChanged);

            #line default
            #line hidden
                return;

            case 24:
                this.MaxWeeklyTestsValidator = ((DrivingTestsManagerV1._2.User_Controls.CircleValidator)(target));
                return;

            case 25:
                this.SendButton = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\..\..\Main Menu\Tester Menu\TesterAddPage.xaml"
                this.SendButton.Click += new System.Windows.RoutedEventHandler(this.SendButton_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.FillButton = ((System.Windows.Controls.Button)(target));

            #line 42 "..\..\..\..\Main Menu\Tester Menu\TesterAddPage.xaml"
                this.FillButton.Click += new System.Windows.RoutedEventHandler(this.FillButton_Click);

            #line default
            #line hidden
                return;

            case 27:
                this.ClearButton = ((System.Windows.Controls.Button)(target));

            #line 43 "..\..\..\..\Main Menu\Tester Menu\TesterAddPage.xaml"
                this.ClearButton.Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);

            #line default
            #line hidden
                return;

            case 28:
                this.RefillButton = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\..\..\Main Menu\Tester Menu\TesterAddPage.xaml"
                this.RefillButton.Click += new System.Windows.RoutedEventHandler(this.RefillButton_Click);

            #line default
            #line hidden
                return;

            case 29:
                this.ProgressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MyTraineeAddPage = ((DrivingTestsManagerV1._2.Main_Menu.Trainee_Menu.TraineeAddPage)(target));

#line 11 "..\..\..\..\Main Menu\Trainee Menu\TraineeAddPage.xaml"
                this.MyTraineeAddPage.Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

#line default
#line hidden
                return;

            case 2:
                this.TraineeAddPageMainGrid = ((System.Windows.Controls.Grid)(target));

#line 15 "..\..\..\..\Main Menu\Trainee Menu\TraineeAddPage.xaml"
                this.TraineeAddPageMainGrid.MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.TraineeAddPageMainGrid_MouseLeftButtonDown);

#line default
#line hidden
                return;

            case 3:
                this.IdTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 4:
                this.FirstNameTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 5:
                this.LastNameTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 6:
                this.BirthDateDp = ((DrivingTestsManagerV1._2.User_Controls.HinttableDatePicker)(target));
                return;

            case 7:
                this.GenderCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 8:
                this.CityCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 9:
                this.CityBusyIndicator = ((Xceed.Wpf.Toolkit.BusyIndicator)(target));
                return;

            case 10:
                this.StreetCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 11:
                this.StreetBusyIndicator = ((Xceed.Wpf.Toolkit.BusyIndicator)(target));
                return;

            case 12:
                this.BuildingTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 13:
                this.PhoneNumberTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 14:
                this.EmailTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 15:
                this.CarTypeCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 16:
                this.GearTypeCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 17:
                this.DrivingSchoolsCitiesCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 18:
                this.DrivingSchoolsNamesCb = ((DrivingTestsManagerV1._2.User_Controls.HinttableComboBox)(target));
                return;

            case 19:
                this.DrivingTeacherTb = ((DrivingTestsManagerV1._2.User_Controls.HinttableTextBox)(target));
                return;

            case 20:
                this.DrivingLessonsCountNUD = ((Xceed.Wpf.Toolkit.IntegerUpDown)(target));

#line 33 "..\..\..\..\Main Menu\Trainee Menu\TraineeAddPage.xaml"
                this.DrivingLessonsCountNUD.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.DrivingLessonsCountNUD_ValueChanged);

#line default
#line hidden
                return;

            case 21:
                this.LessonsValidator = ((DrivingTestsManagerV1._2.User_Controls.CircleValidator)(target));
                return;

            case 22:
                this.SendButton = ((System.Windows.Controls.Button)(target));

#line 35 "..\..\..\..\Main Menu\Trainee Menu\TraineeAddPage.xaml"
                this.SendButton.Click += new System.Windows.RoutedEventHandler(this.SendButton_Click);

#line default
#line hidden
                return;

            case 23:
                this.FillButton = ((System.Windows.Controls.Button)(target));

#line 36 "..\..\..\..\Main Menu\Trainee Menu\TraineeAddPage.xaml"
                this.FillButton.Click += new System.Windows.RoutedEventHandler(this.FillButton_Click);

#line default
#line hidden
                return;

            case 24:
                this.ClearButton = ((System.Windows.Controls.Button)(target));

#line 37 "..\..\..\..\Main Menu\Trainee Menu\TraineeAddPage.xaml"
                this.ClearButton.Click += new System.Windows.RoutedEventHandler(this.ClearButton_Click);

#line default
#line hidden
                return;

            case 25:
                this.RefillButton = ((System.Windows.Controls.Button)(target));

#line 38 "..\..\..\..\Main Menu\Trainee Menu\TraineeAddPage.xaml"
                this.RefillButton.Click += new System.Windows.RoutedEventHandler(this.RefillButton_Click);

#line default
#line hidden
                return;

            case 26:
                this.ProgressBar = ((System.Windows.Controls.ProgressBar)(target));
                return;
            }
            this._contentLoaded = true;
        }