protected void makeIchiranDispList(ref IchiranInitServiceOutBo outBo, IchiranInitServiceInBo ichiranInitServiceInBo, List<IchiranWordBo> wordList, IchiranWordBo word)
 {
     if (wordList.Count == 0 || String.IsNullOrEmpty(ichiranInitServiceInBo.clipboardText))
     {
         word.ronri_name1 = "-";
         word.butsuri_name = Constant.NONE_WORD;
         wordList.Add(word);
     }
     outBo.wordList = this.toIchiranDispList(wordList, this.inBo.dispNumber);
 }
Esempio n. 2
0
        public void ichiran_Load()
        {
            IchiranInitServiceFukusuninMode initServiceFukusunin = new IchiranInitServiceFukusuninMode();
            IchiranInitServiceKojinMode initServiceKojin = new IchiranInitServiceKojinMode();

            IchiranInitServiceInBo initServiceInBo = new IchiranInitServiceInBo();
            initServiceInBo.clipboardText = Clipboard.GetText();
            initServiceInBo.dispNumber = BaseForm.UserInfo.dispNumber;
            initServiceFukusunin.setInBo(initServiceInBo);
            initServiceKojin.setInBo(initServiceInBo);

            IchiranInitServiceOutBo initServiceOutBo = new IchiranInitServiceOutBo();

            if (BaseForm.UserInfo.startUpMode == (int)StartUpMode.複数人)
            {
                initServiceOutBo = initServiceFukusunin.execute();
            }
            else if (BaseForm.UserInfo.startUpMode == (int)StartUpMode.個人)
            {
                initServiceOutBo = initServiceKojin.execute();
            }

            ichiranDataGridView.DataSource = initServiceOutBo.wordList;
            ichiranDataGridView.Columns["ronri_name1"].Width = 110;
            ichiranDataGridView.Columns["butsuri_name"].Width = 195;
            ichiranDataGridView.Columns["data_type"].Width = 0;
            ichiranDataGridView.Columns["data_type"].Visible = false;
            ichiranDataGridView.ReadOnly = true;

            //隠していたフォームを表示する
            this.Show();
            this.Activate();

            //透過性
            this.Opacity = 0.94;
        }