Esempio n. 1
0
 public HRViewModel()
 {
     User = HRView.User;
     RichTextBoxText = "Connected to server at localhost/8090";
     signalRService = new SignalRService();
     signalRService.Connect();
     Students = new ObservableCollection<StudentModel>
     {
         new StudentModel {Age = 20, Id = Guid.NewGuid(), Name = "Ion", Mail = "*****@*****.**"},
         new StudentModel {Age = 23, Id = Guid.NewGuid(), Name = "Vasile", Mail = "*****@*****.**"},
         new StudentModel {Age = 53, Id = Guid.NewGuid(), Name = "Adrian", Mail = "*****@*****.**"}
     };
     NewStudent = new StudentModel();
 }
 public static void FillData(this StudentModel studentModel,StudentModel st)
 {
     studentModel.Age = st.Age;
     studentModel.Name = st.Name;
     studentModel.Mail = st.Mail;
 }