コード例 #1
0
ファイル: ZoekViewModel.cs プロジェクト: eihi/StageBeheerder
 public ZoekViewModel(MainViewModel main, PropertyChanged last, String zoekString, Object o)
     : this(main, last)
 {
     try
     {
         s = (internships)o;
     }
     catch(Exception e)
     {
         // Gaat fout
     }
     //stype = type;
     SearchString = zoekString;
 }
コード例 #2
0
        public KoppelViewModel(MainViewModel main, PropertyChanged last, internships stage)
            : this(main, last)
        {
            list = new Dictionary<object, DocentValue>();
            int ID = unchecked((int)stage.id);
            Stage = stage;
            list = (new ImportanceChecker().checkImportance(ID).ToDictionary(t => (Object)new
            {
                waarde = t.value,
                naam = t.TeacherInfo.users.name + " " + t.TeacherInfo.users.surname,
                aantalkennis = t.numberOfKnowledge,
                kennis = t.sameKnowledgeString,
                afstand = t.distance,
                vervoer = t.TeacherInfo.transport.name,
                tijdover = t.timeleftafter,

            }, t => t));

            GridContents = list.Keys.ToList();
        }
コード例 #3
0
 public StageopdrachtViewModel(MainViewModel main,PropertyChanged last, internships stage)
     : this(main,last)
 {
     Stage = stage;
 }
コード例 #4
0
        public override void update(object[] o)
        {
            try
            {
                Stage = (internships)o[2];
            }
            catch (Exception)
            {

                throw;
            }
        }