Example #1
0
        private void 申請ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Shinsei form = Shinsei.Instance;

            form.Show();
            form.Activate();
            form.moveShinsei("");
        }
Example #2
0
        /// <summary>
        /// コンテキストメニュー(申請)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void 申請ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
            Shinsei shinsei = Shinsei.Instance;

            shinsei.Show();
            shinsei.Activate();
            shinsei.moveShinsei(Clipboard.GetText());
        }
Example #3
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());
                }
            }
        }