예제 #1
0
        private void 編集ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Henshu form = Henshu.Instance;

            form.Activate();
            form.Show();
        }
예제 #2
0
        /// <summary>
        /// コンテキストメニュー(一括登録)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 一括登録ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
            Henshu henshu = Henshu.Instance;

            henshu.moveHenshu(Clipboard.GetText(), Constant.IKKATSU_TOROKU);
            henshu.Show();
            henshu.Activate();
        }
예제 #3
0
        /// <summary>
        /// 検索サービス
        /// </summary>
        /// <param name="dataGridView"></param>
        /// <param name="henshu"></param>
        private void searchAction(ref DataGridView dataGridView, Henshu henshu)
        {
            TanitsuTorokuSearchServiceInBo torokuSearchServiceInBo = new TanitsuTorokuSearchServiceInBo();
            TanitsuTorokuSearchService     torokuSearchService     = new TanitsuTorokuSearchService();

            torokuSearchServiceInBo.ronrimei1TextBox  = henshu.ronrimei1TextBox.Text;
            torokuSearchServiceInBo.butsurimeiTextBox = henshu.butsurimeiTextBox.Text;
            torokuSearchServiceInBo.dataType          = henshu.dataTypeCbx.Text;
            torokuSearchService.setInBo(torokuSearchServiceInBo);
            TanitsuTorokuSearchServiceOutBo torokuSearchServiceOutBo = torokuSearchService.execute();

            this.henshuViewDispSetthing(ref dataGridView, torokuSearchServiceOutBo.wordList);
        }
예제 #4
0
        /// <summary>
        /// クリップボードに変換候補一覧の値を設定
        /// </summary>
        private void setClipBordMyValue()
        {
            StringBuilder val   = new StringBuilder();
            int           index = 0;

            foreach (DataGridViewCell c in ichiranDataGridView.SelectedCells)
            {
                if (!String.IsNullOrEmpty(c.Value.ToString()))
                {
                    if (index > 0)
                    {
                        val.AppendLine();
                    }
                    val.Append(c.Value);
                    index++;
                }
            }
            if (val.ToString().Trim() != Constant.NONE_WORD)
            {
                this.Close();
                Clipboard.SetText(val.ToString());
            }
            else
            {
                this.Close();
                if (BaseForm.UserInfo.kengen == Constant.KANRI)
                {
                    Henshu henshu = Henshu.Instance;
                    henshu.Show();
                    henshu.Activate();
                    henshu.moveHenshu(Clipboard.GetText(), Constant.TANITSU_TOROKU);
                }
                else
                {
                    Shinsei shinsei = Shinsei.Instance;
                    shinsei.Show();
                    shinsei.Activate();
                    shinsei.moveShinsei(Clipboard.GetText());
                }
            }
        }