public PersonRepository(IHttpContextAccessor http_context, MintPlayerContext mintplayer_context, UserManager <Entities.User> user_manager, SubjectHelper subject_helper, Jobs.IElasticSearchJobRepository elasticSearchJobRepository)
 {
     this.http_context               = http_context;
     this.mintplayer_context         = mintplayer_context;
     this.user_manager               = user_manager;
     this.subject_helper             = subject_helper;
     this.elasticSearchJobRepository = elasticSearchJobRepository;
 }
Esempio n. 2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.SubjectActivity);

            Enum.TryParse <SubjectsEnumeration> (Intent.GetStringExtra("TestType"), out subjectType);

            subjectName = SubjectHelper.GetSubjectName(subjectType, this);
            SetSubjectNameTextView();
            LoadStatistics();
            (FindViewById <Button> (Resource.Id.TraningButton)).Click += TrainingButtonClick;
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.ChooseTrainingTasksLayout);

            Enum.TryParse <SubjectsEnumeration> (Intent.GetStringExtra("TestType"), out subjectType);
            themeNum          = Intent.GetIntExtra("ThemeNum", 1).ToString();
            subjectStringName = SubjectHelper.GetSubjectName(subjectType, this);
            theme             = (new ThemesRetriever(subjectType)).GetThemes.FirstOrDefault(x => x.Num == themeNum);

            taskButtonsLayout = FindViewById <LinearLayout> (Resource.Id.TasksLinearLayout);
            (FindViewById <TextView> (Resource.Id.ThemeName)).Text = theme.Name;
        }
Esempio n. 4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.ChooseTrainingLayout);

            Enum.TryParse <SubjectsEnumeration> (Intent.GetStringExtra("TestType"), out subjectType);
            subjectStringName = SubjectHelper.GetSubjectName(subjectType, this);

            FindViewById <TextView> (Resource.Id.SubjectNameTextView).Text = subjectStringName;

            themeButtonsLayout = FindViewById <LinearLayout> (Resource.Id.ThemesLinearLayout);
            subjectRetriever   = new SubjectRetriever(subjectType, this.ApplicationContext);
            LoadThemesButtons();
        }
Esempio n. 5
0
        protected void SetParameters()
        {
            Enum.TryParse <SubjectsEnumeration> (Intent.GetStringExtra("TestType"), out subjectType);
            themeNum          = Intent.GetStringExtra("ThemeNum");
            currentTaskToShow = Intent.GetIntExtra("TaskNum", 0);
            subjectStringName = SubjectHelper.GetSubjectName(subjectType, this);
            subjectRetriever  = new SubjectRetriever(subjectType, ApplicationContext);
            theme             = subjectRetriever.GetThemeByNum(themeNum);
            tasks             = subjectRetriever.GetTasks(themeNum);

            taskImages = new Drawable[tasks.Count];

            isAnswered      = new List <bool> (tasks.Count);
            isRightAnswered = new List <bool> (tasks.Count);
            isShowAnswer    = new List <bool> (tasks.Count);
            for (int i = 0; i < tasks.Count; i++)
            {
                isAnswered.Add(false);
                isRightAnswered.Add(false);
                isShowAnswer.Add(false);
            }
        }
Esempio n. 6
0
        public FormAttribute(string modus)
        {
            InitializeComponent();
            LoadTheme();

            this.currentModus = modus;

            if (currentModus == "Fach")
            {
                this.StyleManager.Style = MetroColorStyle.Teal;
                subjectHelper           = new SubjectHelper();
                subjectHelper.FillGrid(ref gv_manage);
                Text = "Fächer" + AuthInfo.FormInfo();
            }
            else if (currentModus == "Sprache")
            {
                this.StyleManager.Style = MetroColorStyle.Blue;

                Text           = "Sprachen" + AuthInfo.FormInfo();
                languageHelper = new LanguageHelper();
                languageHelper.FillGrid(ref gv_manage);
            }
            else if (currentModus == "Autor")
            {
                this.StyleManager.Style = MetroColorStyle.Blue;

                Text         = "Autoren" + AuthInfo.FormInfo();
                authorHelper = new AuthorHelper();
                authorHelper.FillGrid(ref gv_manage);
            }
            else if (currentModus == "Genre")
            {
                this.StyleManager.Style = MetroColorStyle.Blue;

                Text        = "Genres" + AuthInfo.FormInfo();
                genreHelper = new GenreHelper();
                genreHelper.FillGrid(ref gv_manage);
            }
            else if (currentModus == "Zustand")
            {
                this.StyleManager.Style = MetroColorStyle.Blue;

                Text            = "Buchzustände" + AuthInfo.FormInfo();
                conditionHelper = new ConditionHelper();
                conditionHelper.FillGrid(ref gv_manage);
            }
            else if (currentModus == "Verlag")
            {
                this.StyleManager.Style = MetroColorStyle.Blue;
                Text            = "Verlage" + AuthInfo.FormInfo();
                publisherHelper = new PublisherHelper();
                publisherHelper.FillGrid(ref gv_manage);
            }
            else if (currentModus == "Klasse")
            {
                this.StyleManager.Style = MetroColorStyle.Teal;
                Text = "Klasse" + AuthInfo.FormInfo();
                schoolClassHelper = new SchoolClassHelper();
                schoolClassHelper.FillGrid(ref gv_manage);
            }
            originalHeightLabel             = tLP_Faecher.RowStyles[0].Height;
            originalHeightText              = tLP_Faecher.RowStyles[1].Height;
            tLP_Faecher.RowStyles[0].Height = 0;
            tLP_Faecher.RowStyles[1].Height = 0;
        }