Esempio n. 1
0
        public List <string> GetFuriganaData(int _id)
        {
            List <string> comboData = MasterFactory.GetMasterData <ComboWordMaster>().GetFuriganaData(subjectMaster[_id].ComboId);

            comboData.Add(subjectMaster[_id].ModificationWord);
            return(comboData);
        }
Esempio n. 2
0
        /// <summary>
        /// 人数語尾マスタ置換処理
        /// </summary>
        /// <returns>置換語マスタ</returns>
        private List <List <string> > _ConvertNumberOfPeople(List <List <string> > master, List <int> masterId)
        {
            List <string> numberOfPeopleMaster = MasterFactory.GetMasterData <AdjectiveNumberOfPeopleEndOfWordMaster>().GetRangeEnglishWordList(
                ContainerFactory.StepLevelComboBox._StepLevel != StepLevel.ALLSTEP
                        ? MasterFactory.GetMasterData <AdjectiveNumberOfPeopleEndOfWordMaster>().GetRangeEnglishIdGroupByGroupIdAndPersonCategoryAndStepLevel(
                    ContainerFactory.AdjectiveList.SelectedAdjectiveGroupId,
                    ContainerFactory.SubjectList._PersonalCategory,
                    ContainerFactory.StepLevelComboBox._StepLevel,
                    ContainerFactory.AdjectiveList.SelectedItem.Category)
                        : MasterFactory.GetMasterData <AdjectiveNumberOfPeopleEndOfWordMaster>().GetRangeEnglishIdGroupByGroupIdAndPersonCategory(
                    ContainerFactory.AdjectiveList.SelectedAdjectiveGroupId,
                    ContainerFactory.SubjectList._PersonalCategory,
                    ContainerFactory.AdjectiveList.SelectedItem.Category));

            for (int counter = 0; counter < master.Count; counter++)
            {
                if (numberOfPeopleMaster.Count > counter)
                {
                    master[counter][0] = numberOfPeopleMaster[counter];
                    List <string> addWord = MasterFactory.GetMasterData <AdjectiveAddEndOfWordMaster>().GetData(masterId[counter], 0, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType);
                    master[counter][0] += (" " + addWord[0]).Replace("  ", " ");
                    master[counter][1]  = addWord[1] + master[counter][1];
                }
            }
            return(master);
        }
Esempio n. 3
0
        private List <List <string> > _SetAdjectiveEndWordMaster(JapaneseReadType type, bool numberOfPeople = false)
        {
            List <List <string> > masterString    = null;
            List <int>            endWordMasterId = ((ContainerFactory.StepLevelComboBox._StepLevel != StepLevel.ALLSTEP) ?
                                                     MasterFactory.GetMasterData <AdjectiveEndOfWordMaster>().GetRangeIdGroupByGroupIdAndStepLevel(
                                                         ContainerFactory.AdjectiveList.SelectedAdjectiveGroupId,
                                                         ContainerFactory.StepLevelComboBox._StepLevel,
                                                         ContainerFactory.AdjectiveList.SelectedItem.Category)
                                            : MasterFactory.GetMasterData <AdjectiveEndOfWordMaster>().GetRangeIdGroupByGroupId(
                                                         ContainerFactory.AdjectiveList.SelectedAdjectiveGroupId,
                                                         ContainerFactory.AdjectiveList.SelectedItem.Category)
                                                     ).ToList();

            masterString = MasterFactory.GetMasterData <AdjectiveEndOfWordMaster>()
                           .GetRangeData(endWordMasterId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType);

            //人数語尾(3人称以外)
            if (numberOfPeople)
            {
                masterString = _ConvertNumberOfPeople(masterString, endWordMasterId);
            }
            else
            {
                //後付け語尾
                for (int addWordCount = 0; addWordCount < masterString.Count; addWordCount++)
                {
                    List <string> addWord = MasterFactory.GetMasterData <AdjectiveAddEndOfWordMaster>().GetData(endWordMasterId[addWordCount], 0, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType);
                    masterString[addWordCount][0] += (" " + addWord[0]).Replace("  ", " ");
                    masterString[addWordCount][1]  = addWord[1] + masterString[addWordCount][1];
                }
            }

            return(masterString);
        }
Esempio n. 4
0
        public void SetAdverbList(JapaneseReadType type, AdverbPosition pos, bool init = false)
        {
            // 内部要素をクリア
            parent.AdverbListView.Items.Clear();

            nowSelectedItemIdList.Clear();

            List <List <string> > master = new List <List <string> >();

            master = MasterFactory.GetMasterData <AdverbMaster>().GetRangeData(pos, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType);

            //副詞リストの初期化
            foreach (var items in master.Select((value, index) => new { index, value }))
            {
                ListViewItem addItem = new ListViewItem(items.value[0]);
                addItem.SubItems.Add(items.value[1]);
                parent.AdverbListView.Items.Add(addItem);
                nowSelectedItemIdList.Add(items.index);
            }

            // 初期セットの場合は選択状態も設定
            if (init)
            {
                SelectedItemIndex = 0;
                parent.AdverbListView.Items[0].Selected     = true;
                parent.AdverbListView.SelectedIndexChanged += SetSelectedItemIndex;
            }
        }
        public void GetAllEntitiesShouldReturnCorrectNumberOfEntities()
        {
            var entityDataRepository = MasterFactory.GetInvestmentVehicleDataRepository();

            var results = entityDataRepository.GetAllEntities();

            Assert.Equal(results.Length, 5);
        }
Esempio n. 6
0
        private CitiMonthlyReturnsDataFileRecord[] ReadTestFile()
        {
            var file    = GetNetReturnsTestFilePath();
            var reader  = MasterFactory.GetCitiReturnsFileReader();
            var results = reader.ReadFile(file);

            return(results);
        }
Esempio n. 7
0
        public static void Main(string[] args)
        {
            DependencyManager.BootstrapForSystem("OmniFileExporterConsole", new DatabaseSettings());

            var omniDataFileCreator = MasterFactory.GetOmniDataFileCreator();

            omniDataFileCreator.CreateFile(new MonthYear(2012, 6), GetUniqueFileName());
        }
Esempio n. 8
0
        static void Main(string[] args)
        {
            DependencyManager.BootstrapForSystem("Console", new DatabaseSettings());

            var interactor = MasterFactory.GetCitiFileImportInteractor();

            var requestModel = new CitiFileImportRequestModel(args);

            interactor.ImportFiles(requestModel);
        }
Esempio n. 9
0
        public string GetFuriganaData(int _id)
        {
            string        furigana = "";
            JapaneseCombo combo    = jcomboWordMaster[_id];

            if (combo != null)
            {
                furigana = MasterFactory.GetMasterData <JapaneseWordMaster>().GetFuriganaData(combo.JapaneseWordMasterId) + MasterFactory.GetMasterData <JapaneseEndingWordMaster>().GetFuriganaData(combo.JapansesEndingWordMasterId);
            }
            return(furigana);
        }
Esempio n. 10
0
        public string GetKanjiData(int _id)
        {
            string        kanji = "";
            JapaneseCombo combo = jcomboWordMaster[_id];

            if (combo != null)
            {
                kanji = MasterFactory.GetMasterData <JapaneseWordMaster>().GetKanjiData(combo.JapaneseWordMasterId) + MasterFactory.GetMasterData <JapaneseEndingWordMaster>().GetKanjiData(combo.JapansesEndingWordMasterId);
            }
            return(kanji);
        }
Esempio n. 11
0
        public List <string> GetFuriganaGroupData(int _id)
        {
            List <string> comboList = new List <string>();
            JapaneseCombo combo     = jcomboWordMaster[_id];

            if (combo != null)
            {
                comboList.Add(MasterFactory.GetMasterData <JapaneseWordMaster>().GetFuriganaData(combo.JapaneseWordMasterId));
                comboList.Add(MasterFactory.GetMasterData <JapaneseEndingWordMaster>().GetFuriganaData(combo.JapansesEndingWordMasterId));
            }
            return(comboList);
        }
Esempio n. 12
0
        static void Main(string[] args)
        {
            DependencyManager.BootstrapForSystem("OmniFileExporterConsole", new DatabaseSettings());

            var performanceReportExcelReportCreator = MasterFactory.GetPerformanceReportExcelReportCreator();

            const string excelFilePath = "c:\\temp\\ExcelReport.xlsx";

            File.Delete(excelFilePath);

            performanceReportExcelReportCreator.CreateReport(new MonthYear(2013, 6), excelFilePath);
        }
Esempio n. 13
0
        public List <string> GetFuriganaData(int _id)
        {
            List <string> comboList = new List <string>();
            ComboWord     combo     = comboWordMaster[_id];

            if (combo != null)
            {
                comboList.Add(MasterFactory.GetMasterData <EnglishWordMaster>().GetData(combo.EnglishId));
                comboList.Add(MasterFactory.GetMasterData <JapaneseComboMaster>().GetFuriganaData(combo.JapaneseId));
            }
            return(comboList);
        }
        public void GetAllEntitiesShouldReturnMapAllColumnsToProperties()
        {
            var entityDataRepository = MasterFactory.GetInvestmentVehicleDataRepository();

            var results = entityDataRepository.GetAllEntities();

            var target = results.FirstOrDefault(r => r.InvestmentVehicleNumber == 100);

            Assert.NotNull(target);

            Assert.Equal(target.InvestmentVehicleTypeCode, 'P');
            Assert.Equal(target.Name, "Portfolio 100 - Large");
        }
Esempio n. 15
0
        public void SetSubjectList(JapaneseReadType type, bool init = false)
        {
            // 内部要素をクリア
            parent.SubjectListView.Items.Clear();
            nowSelectedItemIdList.Clear();

            //主語リストの初期化
            List <List <string> > master = new List <List <string> >();

            switch (type)
            {
            case JapaneseReadType.HIRAGANA:
                master = MasterFactory.GetMasterData <SubjectMaster>().GetCreatureOrObjectSubjctHiragana(SubjectCategory.None);
                break;

            case JapaneseReadType.FURIGANA:
                master = MasterFactory.GetMasterData <SubjectMaster>().GetCreatureOrObjectSubjctFurigana(SubjectCategory.None);
                break;

            case JapaneseReadType.KANJI:
            default:
                master = MasterFactory.GetMasterData <SubjectMaster>().GetCreatureOrObjectSubjctKanji(SubjectCategory.None);
                break;
            }

            //主語リストの初期化
            foreach (var items in master.Select((value, index) => new { index, value }))
            {
                if (items.index > 0)
                {
                    ListViewItem addItem = new ListViewItem(items.value[0]);
                    addItem.SubItems.Add(items.value[1]);
                    parent.SubjectListView.Items.Add(addItem);
                    nowSelectedItemIdList.Add(items.index);
                }
            }

            // 初期セットの場合は選択状態も設定
            if (init)
            {
                parent.SubjectListView.Items[0].Selected = true;
                SelectedTENIOHA   = "は";
                _Subject          = SubjectCategory.Creature;
                _PersonalCategory = PersonalPronounCategory.First;
                _ConstReason      = ConstReason.None;
                SelectedItemIndex = 0;
                SelectedItemId    = nowSelectedItemIdList[SelectedItemIndex];
                parent.SubjectListView.SelectedIndexChanged += _SubjectListView_SelectedIndexChanged;
            }
        }
Esempio n. 16
0
        /// <summary>
        /// 日本語(動詞)の出力
        /// </summary>
        private void SetVerbSourceTextBox()
        {
            string        subject     = MasterFactory.GetMasterData <SubjectMaster>().GetData(ContainerFactory.SubjectList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1] + ContainerFactory.SubjectList.SelectedTENIOHA;
            VerbEndOfWord verbEndItem = (
                ContainerFactory.StepLevelComboBox._StepLevel != StepLevel.ALLSTEP ? (MasterFactory.GetMasterData <VerbEndOfWordMaster>().GetRangeGroupByGroupIdAndStepLevel(
                                                                                          ContainerFactory.VerbList.SelectedItem.Id, ContainerFactory.StepLevelComboBox._StepLevel)).ToList()
                                                                       : (MasterFactory.GetMasterData <VerbEndOfWordMaster>().GetRangeGroupByGroupId(ContainerFactory.VerbList.SelectedVerbGroupId)).ToList()
                )[(ContainerFactory.VerbList.SelectedEndOfWordItemId - 1 >= 0) ? ContainerFactory.VerbList.SelectedEndOfWordItemId - 1 : 0];

            string end = string.Empty;

            end = MasterFactory.GetMasterData <VerbEndOfWordMaster>().GetData(verbEndItem.Id, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            string verb = MasterFactory.GetMasterData <VerbMaster>().GetData(ContainerFactory.VerbList.SelectedItem.Id, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            //後付けマスタが表示されない。。マスタのGet処理作り直す?
            string timeValue = MasterFactory.GetMasterData <VerbAddEndOfWordMaster>().GetGroupByGroupIdData(verbEndItem.Id, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];

            //副詞
            string adverb         = MasterFactory.GetMasterData <AdverbMaster>().GetData(ContainerFactory.AdverbList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            string nounPossessive = MasterFactory.GetMasterData <PossessiveMaster>().GetData(ContainerFactory.NounList.SelectedPossessiveId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            string article        = MasterFactory.GetMasterData <ArticleMaster>().GetData(ContainerFactory.NounList.SelectedArticleId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            //前置詞
            string prePosition = MasterFactory.GetMasterData <PrepositionMaster>().GetData(
                MasterFactory.GetMasterData <VerbConnectionMaster>().GetGroupByGroupIdData(ContainerFactory.VerbList.SelectedItem.Id), ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            //名詞
            string noun = (MasterFactory.GetMasterData <NounMaster>().GetData(
                               ContainerFactory.NounList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1] == string.Empty) ?
                          string.Empty
                : ((prePosition == string.Empty) ?
                   MasterFactory.GetMasterData <NounMaster>().GetData(ContainerFactory.NounList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1] + "に"
                : string.Empty);
            string personPossessive = MasterFactory.GetMasterData <PossessiveMaster>().GetData(ContainerFactory.PersonPrepositionList.SelectedPossessiveId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            string personArticle    = MasterFactory.GetMasterData <ArticleMaster>().GetData(ContainerFactory.PersonPrepositionList.SelectedArticleId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            //名詞
            string person = MasterFactory.GetMasterData <NounMaster>().GetData(ContainerFactory.PersonPrepositionList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];

            person = (person == string.Empty) ? person : person + "と";
            string locationPossessive = MasterFactory.GetMasterData <PossessiveMaster>().GetData(ContainerFactory.LocationPrepositionList.SelectedPossessiveId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            string locationArticle    = MasterFactory.GetMasterData <ArticleMaster>().GetData(ContainerFactory.LocationPrepositionList.SelectedArticleId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            //名詞
            string location = MasterFactory.GetMasterData <NounMaster>().GetData(ContainerFactory.LocationPrepositionList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];

            parent.SourceViewLabel.Text = subject + timeValue +
                                          ((person == string.Empty) ? string.Empty : personPossessive + personArticle + person)
                                          + ((location == string.Empty) ? string.Empty : locationPossessive + locationArticle + location)
                                          + ((noun == string.Empty) ? string.Empty : nounPossessive + article + noun + prePosition)
                                          + adverb
                                          + verb
                                          + end;
        }
Esempio n. 17
0
        //人称指定が効いていない。初期表示で形容詞語尾でなく動詞語尾が表示される。
        public void SetVerbList(JapaneseReadType type, bool init = false)
        {
            parent.VerbListView.SelectedIndexChanged -= SetSelectedItemIndex;
            int selectIndex = (parent.VerbListView.SelectedItems.Count <= 0) ? 0 : parent.VerbListView.SelectedIndices[0];


            // 内部要素をクリア
            parent.VerbListView.Items.Clear();
            nowSelectedItemList.Clear();
            nowSelectedItemIdList.Clear();

            // 主語の種別に合致する形容詞リストを作成
            //主語リストの初期化
            List <List <string> > master = new List <List <string> >();

            nowSelectedItemList   = MasterFactory.GetMasterData <VerbMaster>().GetMixCreOrObjAndCategorySubject(ContainerFactory.SubjectList._Subject, ContainerFactory.SubjectList._PersonalCategory);
            nowSelectedItemIdList = nowSelectedItemList.Select(indexer => indexer.Id).ToList();
            master = MasterFactory.GetMasterData <VerbMaster>().GetRangeData(nowSelectedItemIdList, type);

            //リストの初期化
            foreach (var items in master.Select((value, index) => new { index, value }))
            {
                ListViewItem addItem = new ListViewItem(items.value[0]);
                addItem.SubItems.Add(items.value[1]);
                parent.VerbListView.Items.Add(addItem);
            }

            // 初期セットの場合は選択状態も設定
            if (init)
            {
                SelectedItemIndex = 0;
                SelectedItem      = nowSelectedItemList[SelectedItemIndex];
                parent.VerbListView.Items[0].Selected     = true;
                parent.VerbListView.Click                += VerbListView_Click;
                parent.VerbListView.SelectedIndexChanged += SetSelectedItemIndex;
            }
            else
            {
                if (parent.VerbListView.Items.Count >= selectIndex - 1)
                {
                    parent.VerbListView.Items[selectIndex].Selected = true;
                }
                parent.VerbListView.SelectedIndexChanged += SetSelectedItemIndex;
                // 語尾もセット
                SetSelectedItemIndex(null, null);
            }
        }
Esempio n. 18
0
 private void _SubjectListView_SelectedIndexChanged(object sender, EventArgs e)
 {
     SelectedItemIndex = 0;
     SelectedItemId    = nowSelectedItemIdList[0];
     if (parent.SubjectListView.SelectedIndices.Count > 0)
     {
         SelectedItemIndex = parent.SubjectListView.SelectedIndices[0];
         SelectedItemId    = nowSelectedItemIdList[parent.SubjectListView.SelectedIndices[0]];
         _Subject          = (SubjectCategory)(MasterFactory.GetMasterData <SubjectMaster>().GetCategoryData(SelectedItemId)[0]);
         _PersonalCategory = (PersonalPronounCategory)(MasterFactory.GetMasterData <SubjectMaster>().GetCategoryData(SelectedItemId)[1]);
         _ConstReason      = ConstReason.None;
         // 現在のパネルモードから対象のリストを更新する
         ContainerFactory.ConvertModePanel.UpdatePanelView();
         // セット
         ContainerFactory.ResultTextBoxPanel.UpdateResultTextBoxPanel();
     }
 }
Esempio n. 19
0
        public void SetBeingList(JapaneseReadType type, bool init = false)
        {
            // 内部要素をクリア
            parent.BeingListView.Items.Clear();
            nowSelectedItemIdList.Clear();
            List <List <string> > masterString = null;
            List <BeingWord>      tempWord     = (ContainerFactory.StepLevelComboBox._StepLevel == StepLevel.ALLSTEP) ?
                                                 MasterFactory.GetMasterData <BeingWordMaster>().GetRangeIdPersonalPronounAndSubjectMaster(
                ContainerFactory.SubjectList._PersonalCategory
                , ContainerFactory.SubjectList._Subject).ToList()
                : MasterFactory.GetMasterData <BeingWordMaster>().GetRangeIdPersonalPronounSubjectAndStepLevelMaster(
                ContainerFactory.StepLevelComboBox._StepLevel
                , ContainerFactory.SubjectList._PersonalCategory
                , ContainerFactory.SubjectList._Subject).ToList();

            masterString = MasterFactory.GetMasterData <BeingWordMaster>()
                           .GetRangeData(tempWord.Select(n => n.Id), ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType);
            //後付け語尾
            for (int addWordCount = 0; addWordCount < masterString.Count; addWordCount++)
            {
                masterString[addWordCount][0] += (" " + ((MasterFactory.GetMasterData <BeingAddWordMaster>().GetRangeData(tempWord[addWordCount].Id, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType).Count <= 0)
                    ? string.Empty
                    : MasterFactory.GetMasterData <BeingAddWordMaster>().GetRangeData(tempWord[addWordCount].Id, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[0][0]))
                                                 .Replace("  ", " ");
                masterString[addWordCount][1] = ((MasterFactory.GetMasterData <BeingAddWordMaster>().GetRangeData(tempWord[addWordCount].Id, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType).Count <= 0)
                    ? string.Empty
                    : MasterFactory.GetMasterData <BeingAddWordMaster>().GetRangeData(tempWord[addWordCount].Id, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[0][1]) + masterString[addWordCount][1];
            }

            //主語リストの初期化
            foreach (var items in masterString.Select((value, index) => new { index, value }))
            {
                ListViewItem addItem = new ListViewItem(items.value[0]);
                addItem.SubItems.Add(items.value[1]);
                parent.BeingListView.Items.Add(addItem);
                nowSelectedItemIdList.Add(items.index + 1);
            }

            if (init)
            {
                SelectedItemIndex = 0;
            }
            parent.BeingListView.Click += BeingListView_Click;
            parent.BeingListView.SelectedIndexChanged += SetSelectedItemIndex;
        }
Esempio n. 20
0
        public void SetPrePositionList(JapaneseReadType type, bool init = false)
        {
            // 内部要素をクリア
            parent.PrepositionListView.Items.Clear();

            nowSelectedItemIdList.Clear();

            List <List <string> > master = new List <List <string> >();

            switch (type)
            {
            case JapaneseReadType.HIRAGANA:
                master = MasterFactory.GetMasterData <PrepositionMaster>().GetRangeHiraganaData(MasterFactory.GetMasterData <PrepositionMaster>().GetPrepositionIdList());
                break;

            case JapaneseReadType.FURIGANA:
                master = MasterFactory.GetMasterData <PrepositionMaster>().GetRangeFuriganaData(MasterFactory.GetMasterData <PrepositionMaster>().GetPrepositionIdList());
                break;

            case JapaneseReadType.KANJI:
            default:
                master = MasterFactory.GetMasterData <PrepositionMaster>().GetRangeKanjiData(MasterFactory.GetMasterData <PrepositionMaster>().GetPrepositionIdList());
                break;
            }

            //主語リストの初期化
            foreach (var items in master.Select((value, index) => new { index, value }))
            {
                ListViewItem addItem = new ListViewItem(items.value[0]);
                addItem.SubItems.Add(items.value[1]);
                parent.PrepositionListView.Items.Add(addItem);
                nowSelectedItemIdList.Add(items.index);
            }

            // 初期セットの場合は選択状態も設定
            if (init)
            {
                SelectedItemIndex = 0;
                parent.PrepositionListView.Items[0].Selected     = true;
                parent.PrepositionListView.SelectedIndexChanged += SetSelectedItemIndex;
            }
        }
Esempio n. 21
0
        public List <List <string> > _SetVerbEndWordMaster(JapaneseReadType type)
        {
            List <List <string> > masterString  = null;
            List <VerbEndOfWord>  endWordMaster = ((ContainerFactory.StepLevelComboBox._StepLevel != StepLevel.ALLSTEP) ?
                                                   MasterFactory.GetMasterData <VerbEndOfWordMaster>().GetRangeGroupByGroupIdAndStepLevel(ContainerFactory.VerbList.SelectedVerbGroupId, ContainerFactory.StepLevelComboBox._StepLevel)
                                            : MasterFactory.GetMasterData <VerbEndOfWordMaster>().GetRangeGroupByGroupId(ContainerFactory.VerbList.SelectedVerbGroupId)
                                                   ).ToList();
            List <int> endWordMasterId = endWordMaster.Select(indexer => indexer.Id).ToList();

            masterString = MasterFactory.GetMasterData <VerbEndOfWordMaster>()
                           .GetRangeData(endWordMasterId, type);

            ////後付け語尾
            for (int addWordCount = 0; addWordCount < masterString.Count; addWordCount++)
            {
                List <string> addWord = MasterFactory.GetMasterData <VerbAddEndOfWordMaster>().GetGroupByGroupIdData(endWordMasterId[addWordCount], ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType);
                masterString[addWordCount][0] += (" " + addWord[0]).Replace("  ", " ");
                masterString[addWordCount][1]  = addWord[1] + masterString[addWordCount][1];
            }
            SetOpenView();

            return(masterString);
        }
Esempio n. 22
0
        /// <summary>
        /// 日本語(存在)の出力
        /// </summary>
        private void SetBeingSourceTextBox()
        {
            string    subject  = MasterFactory.GetMasterData <SubjectMaster>().GetData(ContainerFactory.SubjectList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1] + ContainerFactory.SubjectList.SelectedTENIOHA;
            BeingWord tempWord = (ContainerFactory.StepLevelComboBox._StepLevel == StepLevel.ALLSTEP) ?
                                 MasterFactory.GetMasterData <BeingWordMaster>().GetRangeIdPersonalPronounAndSubjectMaster(
                ContainerFactory.SubjectList._PersonalCategory
                , ContainerFactory.SubjectList._Subject).ToList()[ContainerFactory.BeingList.SelectedItemIndex]
                 : MasterFactory.GetMasterData <BeingWordMaster>().GetRangeIdPersonalPronounSubjectAndStepLevelMaster(
                ContainerFactory.StepLevelComboBox._StepLevel
                , ContainerFactory.SubjectList._PersonalCategory
                , ContainerFactory.SubjectList._Subject).ToList()[ContainerFactory.BeingList.SelectedItemIndex];
            string endVerb = MasterFactory.GetMasterData <BeingWordMaster>().GetData(tempWord.Id, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            //後付けマスタ
            List <List <string> > tempTimeValue = MasterFactory.GetMasterData <BeingAddWordMaster>().GetRangeData(tempWord.Id, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType);

            string timeWord = (tempTimeValue.Count == 0) ? string.Empty : tempTimeValue[0][1];
            //副詞
            string adverb           = MasterFactory.GetMasterData <AdverbMaster>().GetData(ContainerFactory.AdverbList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            string personPossessive = MasterFactory.GetMasterData <PossessiveMaster>().GetData(ContainerFactory.PersonPrepositionList.SelectedPossessiveId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            string personArticle    = MasterFactory.GetMasterData <ArticleMaster>().GetData(ContainerFactory.PersonPrepositionList.SelectedArticleId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            //前置詞
            string prePosition = MasterFactory.GetMasterData <PrepositionMaster>().GetData(
                MasterFactory.GetMasterData <BeingConnectionMaster>().GetGroupByGroupIdData(ContainerFactory.BeingList.SelectedItemId), ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            //名詞
            string person = MasterFactory.GetMasterData <NounMaster>().GetData(ContainerFactory.PersonPrepositionList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];

            person += (person == string.Empty) ? string.Empty : "と";
            string locationPossessive = MasterFactory.GetMasterData <PossessiveMaster>().GetData(ContainerFactory.LocationPrepositionList.SelectedPossessiveId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            string locationArticle    = MasterFactory.GetMasterData <ArticleMaster>().GetData(ContainerFactory.LocationPrepositionList.SelectedArticleId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];
            //名詞
            string location = MasterFactory.GetMasterData <NounMaster>().GetData(ContainerFactory.LocationPrepositionList.SelectedItemId, ContainerFactory.JapaneseReadTypeComboBox._JapaneseReadType)[1];

            parent.SourceViewLabel.Text = subject + timeWord
                                          + ((person == string.Empty) ? string.Empty : personPossessive + personArticle + person)
                                          + ((location == string.Empty) ? string.Empty : locationPossessive + locationArticle + location)
                                          + adverb + endVerb;
        }
Esempio n. 23
0
        private void OnIconMouseDown(object sender, MouseButtonEventArgs args)
        {
            if (MasterFactory == null)
            {
                return;
            }

            var pressedIconPoint = (ChessPoint)((Image)sender).Tag;

            if (args.LeftButton == MouseButtonState.Pressed && IsClickable(pressedIconPoint))
            {
                var selectedCellTemp = _selectedCell;
                if (IsGreenSelectedPoint(pressedIconPoint))
                {
                    Controller?.RaiseMovementEvent(selectedCellTemp, pressedIconPoint);

                    return;
                }

                ClearSelection();

                if (selectedCellTemp != pressedIconPoint)
                {
                    PieceMasterBase master;
                    if (MasterFactory.TryGetMaster(FieldFrame, pressedIconPoint, out master))
                    {
                        SetSelection(pressedIconPoint, master.GetMovements());
                        _selectedCell = pressedIconPoint;
                    }
                }
                else
                {
                    _selectedCell = DefaultCell;
                }
            }
        }
Esempio n. 24
0
        public void _SubjectListView_Click(string tenioha)
        {
            if (parent.SubjectListView.SelectedIndices[0] != SelectedItemIndex)
            {
                return;
            }
            SelectedItemIndex = 0;
            SelectedItemId    = nowSelectedItemIdList[0];
            if (parent.SubjectListView.SelectedIndices.Count > 0)
            {
                SelectedItemIndex = parent.SubjectListView.SelectedIndices[0];
                SelectedItemId    = nowSelectedItemIdList[parent.SubjectListView.SelectedIndices[0]];
            }

            SelectedTENIOHA   = tenioha;
            _Subject          = (SubjectCategory)(MasterFactory.GetMasterData <SubjectMaster>().GetCategoryData(SelectedItemId)[0]);
            _PersonalCategory = (PersonalPronounCategory)(MasterFactory.GetMasterData <SubjectMaster>().GetCategoryData(SelectedItemId)[1]);
            _ConstReason      = ConstReason.None;

            // 現在のパネルモードから対象のリストを更新する
            ContainerFactory.ConvertModePanel.UpdatePanelView();
            // セット
            ContainerFactory.ResultTextBoxPanel.UpdateResultTextBoxPanel();
        }
Esempio n. 25
0
 public List <string> GetFuriganaData(int _id)
 {
     return(MasterFactory.GetMasterData <ComboWordMaster>().GetFuriganaData(endOfWordMaster.FirstOrDefault(data => data.Id == _id).ComboId));
 }
Esempio n. 26
0
 public PublicWebController()
 {
     _portfolioListPageAdapter = MasterFactory.GetPortfolioListPageAdapter();
 }
Esempio n. 27
0
 private List <string> GetFuriganaData(int _id)
 {
     return(MasterFactory.GetMasterData <ComboWordMaster>().GetFuriganaData(beingEndOfWordMaster[_id].ComboId));
 }
Esempio n. 28
0
 public DatabaseTestBase()
 {
     SystemLog = MasterFactory.GetSystemLog();
 }
Esempio n. 29
0
 private List <string> GetHiraganaData(int _id)
 {
     return(MasterFactory.GetMasterData <ComboWordMaster>().GetHiraganaData(adjectiveMaster[_id].ComboId));
 }
Esempio n. 30
0
        private List <string> GetFuriganaData(int _id)
        {
            List <string> comboData = MasterFactory.GetMasterData <ComboWordMaster>().GetFuriganaData(adverbMaster[_id].ComboId);

            return(comboData);
        }