예제 #1
0
        private void _StepLevelComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            _StepLevel = Util.ParseEnum <StepLevel>(parent.StepLevelComboBox.Items[parent.StepLevelComboBox.SelectedIndex].ToString());

            // 現在のパネルモードから対象のリストを更新する
            ContainerFactory.ConvertModePanel.UpdatePanelView();
        }
예제 #2
0
 public AdjectiveEndOfWord(int _id, int _group, TimeType _time, StepLevel _level, int _comboId, AdjectiveCategory category)
 {
     this.Id       = _id;
     this.GroupId  = _group;
     this.TimeType = _time;
     this.Level    = _level;
     this.ComboId  = _comboId;
     this.Category = category;
 }
예제 #3
0
 public BeingWord(int _id, SubjectCategory _subjectCategory, PersonalPronounCategory _personalCategory, StepLevel _level, int _comboId, int _priority)
 {
     this.Id = _id;
     this.SubjectCategory  = _subjectCategory;
     this.PersonalCategory = _personalCategory;
     this.Level            = _level;
     this.ComboId          = _comboId;
     this.Priority         = _priority;
 }
예제 #4
0
 public VerbEndOfWord(int _id, int _groupId, int _vId, TimeType _type, StepLevel _level, int _comboId, int _priority)
 {
     this.Id       = _id;
     this.GroupId  = _groupId;
     this.VerbId   = _vId;
     this.TimeType = _type;
     this.Level    = _level;
     this.ComboId  = _comboId;
     this.Priority = _priority;
 }
예제 #5
0
 public AdjectiveNumberOfPeopleEndOfWord(int _id, int _group, PersonalPronounCategory _category, StepLevel _level, int _english, int _priority, AdjectiveCategory _adjectiveCategory)
 {
     this.Id             = _id;
     this.GroupId        = _group;
     this.PersonCategory = _category;
     this.Level          = _level;
     this.EnglishId      = _english;
     this.Priority       = _priority;
     this.Category       = _adjectiveCategory;
 }
예제 #6
0
        public void Insert()
        {
            using (var context = new StackOverFlowDbContext())
            {
                var table = new StepLevel("First Level", new Step("First Level - 1"));

                context.Add(table);

                context.SaveChanges();

                var results = context.StepLevels.ToList();
            }
        }
예제 #7
0
 public void SetStepLevel()
 {
     parent.StepLevelComboBox.SelectedIndex = 0;
     _StepLevel = Util.ParseEnum <StepLevel>(parent.StepLevelComboBox.Items[parent.StepLevelComboBox.SelectedIndex].ToString());
     parent.StepLevelComboBox.SelectedIndexChanged += _StepLevelComboBox_SelectedIndexChanged;
 }
예제 #8
0
 public IEnumerable <int> GetRangeComboIdGroupByGroupIdAndStepLevel(int _groupId, StepLevel _level)
 {
     return(beingEndOfWordMaster.Where(n => n.Level == _level).Select(n => n.ComboId));
 }
예제 #9
0
 public IEnumerable <int> GetRangeIdPersonalPronounSubjectAndStepLevel(StepLevel _level, PersonalPronounCategory _personal, SubjectCategory _subject)
 {
     return(beingEndOfWordMaster.Where(n => n.Level == _level && n.PersonalCategory == _personal && n.SubjectCategory == _subject).Select(n => n.Id));
 }
예제 #10
0
 public IEnumerable <VerbEndOfWord> GetRangeGroupByGroupIdAndStepLevel(int _groupId, StepLevel _level)
 {
     return(verbEndOfWordMaster.Where(n => n.VerbId == _groupId && n.Level == _level));
 }
예제 #11
0
 public List <int> GetRangeEnglishIdGroupByGroupIdAndTimeTypeAndStepLevel(int _groupId, PersonalPronounCategory _personalCategory, StepLevel _level, AdjectiveCategory _category)
 {
     return(adjectiveNumberOfPeopleEndOfWordMaster.Where(n =>
                                                         n.GroupId == _groupId &&
                                                         n.PersonCategory == ((_personalCategory == PersonalPronounCategory.First) ? PersonalPronounCategory.First : PersonalPronounCategory.Second) &&
                                                         n.Level == _level &&
                                                         n.Category == _category)
            .Select(n => n.EnglishId).ToList());
 }
예제 #12
0
 public IEnumerable <int> GetRangeComboIdGroupByGroupIdAndTimeTypeAndStepLevel(int _groupId, TimeType _time, StepLevel _level)
 {
     return(adjectiveEndOfWordMaster.Where(n => n.GroupId == _groupId && n.TimeType == _time && n.Level == _level).Select(n => n.ComboId));
 }
예제 #13
0
 public IEnumerable <AdjectiveEndOfWord> GetRangeItemGroupByGroupIdAndStepLevel(int _groupId, StepLevel _level, AdjectiveCategory _category)
 {
     return(adjectiveEndOfWordMaster.Where(n => n.GroupId == _groupId && n.Level == _level && n.Category == _category));
 }