private static void FirstNamePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { TeacherViewModel teacher = (TeacherViewModel)d; teacher.FirstName = NameUtils.FormatPascal(teacher.FirstName); GenerateLoginPassword(teacher); }
private static void NamePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { LevelViewModel level = (LevelViewModel)d; level.Name = NameUtils.FormatPascal(level.Name); }
private static void NamePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { SubjectViewModel subject = (SubjectViewModel)d; subject.Name = NameUtils.FormatPascal(subject.Name); }
private static void FirstNamePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { StudentViewModel student = (StudentViewModel)d; student.FirstName = NameUtils.FormatPascal(student.FirstName); }