Beispiel #1
0
        internal static void StartScheduleActivity(BaseActivity view, Teacher teacher)
        {
            var intent = new Intent(view, typeof(ScheduleActivity));

            intent.PutObject(SelectItemActivity.IntentKeySelectItemType, SelectItemType.SelectScheduleTeacher);
            intent.PutObject(ScheduleForTeacher.IntentKeyTeacherJson, teacher);
            intent.PutDateTime(Schedule.IntentKey.DateLessonStart.ToString(), DateTime.Today);
            intent.PutDateTime(Schedule.IntentKey.DateLessonEnd.ToString(), DateTime.Today);

            view.StartActivity(intent);
        }
Beispiel #2
0
        internal static void StartScheduleActivity(BaseActivity view, Group group)
        {
            var intent = new Intent(view, typeof(ScheduleActivity));

            intent.PutObject(SelectItemActivity.IntentKeySelectItemType, SelectItemType.SelectScheduleStudent);
            intent.PutObject(ScheduleForStudent.IntentKeyGroupsJson, group);
            intent.PutDateTime(Schedule.IntentKey.DateLessonStart.ToString(), DateTime.Today);
            intent.PutDateTime(Schedule.IntentKey.DateLessonEnd.ToString(), DateTime.Today);



            view.StartActivity(intent);
        }