Exemple #1
0
 private void setdefaults()
 {
     Day                = string.Empty;
     StartTime          = string.Empty;
     EndTime            = string.Empty;
     FirstName          = string.Empty;
     LastName           = string.Empty;
     School             = string.Empty;
     SchoolPhone        = string.Empty;
     Phone              = string.Empty;
     AlternativePhone   = string.Empty;
     Room               = string.Empty;
     Email              = string.Empty;
     Subject            = string.Empty;
     Pair               = string.Empty;
     PreferredContact   = string.Empty;
     Major              = string.Empty;
     Year               = string.Empty;
     Grade              = 0;
     District           = string.Empty;
     DentonDistrict     = 0;
     LewisvilleDistrict = 0;
     MckinneyDistrict   = 0;
     ForthWorthDistrict = 0;
     Transportation     = string.Empty;
     Drive              = string.Empty;
     PreferredDays      = string.Empty;
     Campus             = string.Empty;
     Teaching           = string.Empty;
     TeachSchedule.Clear();
 }
Exemple #2
0
        private void AddTeachSchedule()
        {
            TeachSchedule.Add(new Avail()
            {
                Days = Day, Subject = Subject, Grade = Grade, StartTime = StartTime, EndTime = EndTime
            });
            IsEnabledAddSchedule = false;
            TeacherStep2View menu = Application.Current.Windows.OfType <TeacherStep2View>().SingleOrDefault(x => x.IsActive);

            Day       = string.Empty;
            StartTime = string.Empty;
            EndTime   = string.Empty;
            Subject   = string.Empty;
            Grade     = 0;
            menu.TableRefresher();
        }