Esempio n. 1
0
        public Middle(Profile_Management.UserCredentials UA, ManageWindow MW)
        {
            ManagWin    = MW;
            UserAccount = UA;
            InitializeComponent();

            for (int i = -50; i < 50; i++)
            {
                YearList.Items.Add(DateTime.Today.AddYears(i).Year);
            }

            YearList.SelectionChanged += (o, e) => UpdateEstiminatedYear();
        }
Esempio n. 2
0
        public StudyUC(Profile_Management.UserCredentials UA, ManageWindow MW)
        {
            InitializeComponent();
            ManagWin    = MW;
            UserAccount = UA;
            InitializeComponent();
            ComboLevel.SelectedIndex  = 0;
            DurationBox.SelectedIndex = 0;

            for (int i = -50; i < 50; i++)
            {
                YearList.Items.Add(DateTime.Today.AddYears(i).Year);
            }

            YearList.SelectionChanged    += (o, e) => UpdateEstiminatedYear();
            DurationBox.SelectionChanged += (o, e) => UpdateEstiminatedYear();
            ComboLevel.SelectionChanged  += (o, e) => UpdateEstiminatedYear();
        }