コード例 #1
0
        static public string conjugationName(string conjugation)
        {
            string name = msg.Get(conjugation);

            if (name != "")
            {
                return(name);
            }
            return(conjugation);
        }
コード例 #2
0
        }  // end of InitializeComponent

        //------------------------------------------------------------------------
        public void RefreshFormLabel()
        {
            this.exitButton.Text = msg.Get("L006");   // 閉じる

            this.help_title.Text = msg.Get("L024");   // 簡単なマニュアル

            this.latest_title.Text = msg.Get("L026"); // 最新版の確認
#if !EDICT
            this.Text = msg.Get("L081");              // about;

            this.LinkLabel1.Text = msg.Get("L027");   // manual URL

//            this.LinkLabel2.Text   = msg.Get("L028") ;
            this.LinkLabel2.Text = "http://code.google.com/p/kjdict/downloads/list";
#else
            this.Text            = msg.Get("L084"); // about;
            this.LinkLabel1.Text = msg.Get("L027"); // manual URL;

            this.LinkLabel2.Text = "http://code.google.com/p/kjedict/downloads/list";
#endif
        }
コード例 #3
0
        //------------------------------------------------------------------------
        public void RefreshFormLabel()
        {
            this.menuCopy1.Text  = msg.Get("L079") + " (&C)"; // Copy
            this.menuPaste1.Text = msg.Get("L080") + " (&P)"; // Paste
            this.menu_close.Text = msg.Get("L005");           // 終了;
            this.menu_about.Text = msg.Get("L081");           // about;
#if !EDICT
            this.menu_extended.Text        = msg.Get("L007");
            this.menu_hangul_button.Text   = msg.Get("L063"); // Hangul IME
            this.menu_hangul_keyboard.Text = msg.Get("L064"); // Hangul Keyboard
            this.menu_hiragana_button.Text = msg.Get("L065"); // Hiragana IME

            // 入力エリアコンテキストメニュー用(cm1)
            this.cm1.MenuItems[3].Text = msg.Get("L063"); // Hangul IME
            this.cm1.MenuItems[4].Text = msg.Get("L064"); // Hangul Keyboard
            this.cm1.MenuItems[5].Text = msg.Get("L065"); // Hiragana IME
            this.cm1.MenuItems[6].Text = msg.Get("L007"); //拡張メニュー
            this.cm1.MenuItems[7].Text = msg.Get("L081"); // about;
            this.cm1.MenuItems[8].Text = msg.Get("L005"); // 終了;

            // 出力エリアコンテキストメニュー用(cm2)
            this.cm2.MenuItems[0].Text = msg.Get("L079") + " (&C)"; // Copy
            this.cm2.MenuItems[2].Text = msg.Get("L063");           // Hangul IME
            this.cm2.MenuItems[3].Text = msg.Get("L064");           // Hangul Keyboard
            this.cm2.MenuItems[4].Text = msg.Get("L065");           // Hiragana IME
            this.cm2.MenuItems[5].Text = msg.Get("L007");           //拡張メニュー
            this.cm2.MenuItems[6].Text = msg.Get("L081");           // about;
            this.cm2.MenuItems[7].Text = msg.Get("L005");           // 終了;
#else
            // Edict
            this.cm1.MenuItems[0].Text = msg.Get("L079") + " (&C)"; // Copy
            this.cm1.MenuItems[1].Text = msg.Get("L080") + " (&P)"; // Paste
            //   this.cm1.MenuItems[2]     セパレータ
            this.cm1.MenuItems[3].Text = msg.Get("L007");           // 拡張メニュー ;
            this.cm1.MenuItems[4].Text = msg.Get("L084");           // about;
            this.cm1.MenuItems[5].Text = msg.Get("L005");           // 終了

            this.cm2.MenuItems[0].Text = msg.Get("L079") + " (&C)"; // Copy
            //   this.cm2.MenuItems[1]     セパレータ
            this.cm2.MenuItems[2].Text = msg.Get("L007");           // 拡張メニュー ;
            this.cm2.MenuItems[3].Text = msg.Get("L084");           // about;
            this.cm2.MenuItems[4].Text = msg.Get("L005");           // 終了

            this.cm3.MenuItems[0].Text = msg.Get("L007");           // 拡張メニュー ;
            this.cm3.MenuItems[1].Text = msg.Get("L084");           // about;
            this.cm3.MenuItems[2].Text = msg.Get("L005");           // 終了
#endif

            //     this.exitButton.Text = msg.Get("L005") ;  // Exit

            if (this.Setting.CompactForm)
            {
                // コンパクトモード
                this.radioButton1.Text = msg.Get("L034");
                this.radioButton2.Text = msg.Get("L035");
                this.radioButton3.Text = msg.Get("L036");
                this.radioButton4.Text = msg.Get("L037");
            }
            else
            {
                // 通常サイズ
                this.radioButton1.Text = msg.Get("L001");
                this.radioButton2.Text = msg.Get("L002");
                this.radioButton3.Text = msg.Get("L003");
                this.radioButton4.Text = msg.Get("L004");
            }

            this.searchingLabel = msg.Get("L025");
        }
コード例 #4
0
        private void InitializeComponent()
        {
            this.groupBox1 = new System.Windows.Forms.GroupBox();

            this.button1   = new System.Windows.Forms.Button();
            this.checkBox1 = new System.Windows.Forms.CheckBox();
            this.checkBox2 = new System.Windows.Forms.CheckBox();
            this.checkBox3 = new System.Windows.Forms.CheckBox();
            this.checkBox4 = new System.Windows.Forms.CheckBox();

            this.groupBox1.SuspendLayout();

            //
            // button1
            //
            this.button1.Location = new System.Drawing.Point(230, 8);
            this.button1.Name     = "button1";
            this.button1.Size     = new System.Drawing.Size(60, 20);
            this.button1.TabIndex = 3;
            this.button1.Text     = msg.Get("L006");
            this.button1.Click   += new System.EventHandler(this.button1_Click);

            //
            // checkBox1
            //
            this.checkBox1.Location        = new System.Drawing.Point(25, 20);
            this.checkBox1.Name            = "checkBox1";
            this.checkBox1.Size            = new System.Drawing.Size(250, 20);
            this.checkBox1.Text            = msg.Get("L017");
            this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_Check);

            //
            // checkBox2
            //
            this.checkBox2.Location        = new System.Drawing.Point(25, 50);
            this.checkBox2.Name            = "checkBox2";
            this.checkBox2.Size            = new System.Drawing.Size(200, 20);
            this.checkBox2.Text            = msg.Get("L016");
            this.checkBox2.CheckedChanged += new System.EventHandler(this.checkBox2_Check);

            //
            // checkBox3
            //
            this.checkBox3.Location        = new System.Drawing.Point(25, 80);
            this.checkBox3.Name            = "checkBox3";
            this.checkBox3.Size            = new System.Drawing.Size(250, 20);
            this.checkBox3.Text            = msg.Get("L018");
            this.checkBox3.CheckedChanged += new System.EventHandler(this.checkBox3_Check);

            //
            // checkBox4
            //
            this.checkBox4.Location        = new System.Drawing.Point(25, 110);
            this.checkBox4.Name            = "checkBox4";
            this.checkBox4.Size            = new System.Drawing.Size(250, 20);
            this.checkBox4.Text            = msg.Get("L021"); // Clipboard
            this.checkBox4.CheckedChanged += new System.EventHandler(this.checkBox4_Check);

            //
            // groupBox1
            //
            this.groupBox1.Controls.AddRange(
                new System.Windows.Forms.Control[] {
                this.checkBox1,
                this.checkBox2,
                this.checkBox3,
                this.checkBox4
            });
            this.groupBox1.Location = new System.Drawing.Point(10, 30);
            this.groupBox1.Name     = "groupBox1";
            this.groupBox1.Size     = new System.Drawing.Size(280, 150);
            this.groupBox1.TabStop  = false;
            this.groupBox1.Text     = msg.Get("L029");

            //
            // Form2sub
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
            this.ClientSize        = new System.Drawing.Size(300, 200);
            this.Controls.Add(this.button1);
            this.Controls.Add(this.groupBox1);
            this.Name = "Form2sub";
            this.Text = "KJ_form2 Extended Menu";
            this.ResumeLayout(false);
        }
コード例 #5
0
        private void InitializeComponent()
        {
//            this.button1 = new System.Windows.Forms.Button();
            this.inputArea  = new System.Windows.Forms.TextBox();
            this.outputArea = new System.Windows.Forms.RichTextBox();
//            this.outputArea = new System.Windows.Forms.TextBox();
            this.button2   = new System.Windows.Forms.Button();
            this.panel1    = new System.Windows.Forms.Panel();
            this.splitter1 = new System.Windows.Forms.Splitter();

            this.pBar1 = new System.Windows.Forms.ProgressBar();

            this.panel1.SuspendLayout();
            this.SuspendLayout();

            //================================================================
            this.menuCopy1  = new System.Windows.Forms.MenuItem();
            this.menuPaste1 = new System.Windows.Forms.MenuItem();
            // menuCopy
            this.menuCopy1.Index    = 1;
            this.menuCopy1.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
            this.menuCopy1.Text     = "Copy (&C)";
            this.menuCopy1.Click   += new System.EventHandler(this.menuCopy_Click1);
            // menuPaste
            this.menuPaste1.Index    = 2;
            this.menuPaste1.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
            this.menuPaste1.Text     = "Paste (&P)";
            this.menuPaste1.Click   += new System.EventHandler(this.menuPaste_Click1);
            MenuItem[] menuItem1;
            menuItem1 = new MenuItem[] {
                this.menuCopy1,
                this.menuPaste1
            };
            this.cm1 = new ContextMenu(menuItem1);


            //-------------------------------------------------------
            this.menuCopy2  = new System.Windows.Forms.MenuItem();
            this.menuPaste2 = new System.Windows.Forms.MenuItem();
            // menuCopy
            this.menuCopy2.Index    = 1;
            this.menuCopy2.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
            this.menuCopy2.Text     = "Copy (&C)";
            this.menuCopy2.Click   += new System.EventHandler(this.menuCopy_Click2);
            // menuPaste
            this.menuPaste2.Index    = 2;
            this.menuPaste2.Shortcut = System.Windows.Forms.Shortcut.CtrlV;
            this.menuPaste2.Text     = "Paste (&P)";
            this.menuPaste2.Click   += new System.EventHandler(this.menuPaste_Click2);
            MenuItem[] menuItem2;
            menuItem2 = new MenuItem[] {
                this.menuCopy2,
                this.menuPaste2
            };
            this.cm2 = new ContextMenu(menuItem2);


            //-------------------------------------------------------
            this.menuPreference = new System.Windows.Forms.MenuItem();
            this.menu_about     = new System.Windows.Forms.MenuItem();

            // menuDebug
            this.menuPreference.Index  = 1;
            this.menuPreference.Text   = msg.Get("L007");
            this.menuPreference.Click += new System.EventHandler
                                             (this.cm3_Click);
            // menu_about
            this.menu_about.Text   = "about ...";
            this.menu_about.Click += new System.EventHandler
                                         (this.menu_about_menu_Click);

            MenuItem[] menuItem3;
            menuItem3 = new MenuItem[] {
                this.menuPreference,
                this.menu_about
            };
            this.cm3 = new ContextMenu(menuItem3);


            //================================================================
            //
            // button1
            //
//            this.button1.Location = new System.Drawing.Point(0, 0);
//            this.button1.Name = "button1";
//            this.button1.Size = new System.Drawing.Size(70, 20);
//            this.button1.TabIndex = 0;
//            this.button1.Text = msg.Get("L008");  // translate
//            this.button1.Click += new System.EventHandler(this.button1_Click);
            //
            // button2
            //
            this.button2.Location = new System.Drawing.Point(520, 0);
            this.button2.Name     = "button2";
            this.button2.Size     = new System.Drawing.Size(50, 20);
            this.button2.TabIndex = 3;
            this.button2.Text     = msg.Get("L005"); // exit
            this.button2.Click   += new System.EventHandler(this.button2_Click);

            //------------------------------------------------------------
            //
            // Main panel
            //
            this.panel1.ContextMenu = this.cm3;   // hidden preference :-P
//            this.panel1.Controls.Add(this.button1);
            this.panel1.Controls.Add(this.button2);
            this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 20);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(570, 20);
            this.panel1.TabIndex = 12;

            //
            // inputArea
            //
            this.inputArea.Dock        = System.Windows.Forms.DockStyle.Top;
            this.inputArea.Location    = new System.Drawing.Point(8, 45);
            this.inputArea.Name        = "inputArea";
            this.inputArea.Size        = new System.Drawing.Size(550, 180);
            this.inputArea.TabIndex    = 1;
            this.inputArea.Text        = "";
            this.inputArea.Multiline   = true;
            this.inputArea.ContextMenu = this.cm1;
            //入力エリアが変化したら自動処理
            this.inputArea.TextChanged += new System.EventHandler(this.Text_Changed);

            //
            // splitter1
            //
            this.splitter1.Dock     = System.Windows.Forms.DockStyle.Top;
            this.splitter1.Location = new System.Drawing.Point(8, 235);
            this.splitter1.Name     = "splitter1";
            this.splitter1.Size     = new System.Drawing.Size(550, 3);
            this.splitter1.TabIndex = 14;
            this.splitter1.TabStop  = false;

            //
            // outputArea
            //
            this.outputArea.Dock        = System.Windows.Forms.DockStyle.Fill;
            this.outputArea.Location    = new System.Drawing.Point(8, 230);
            this.outputArea.Name        = "outputArea";
            this.outputArea.Size        = new System.Drawing.Size(550, 185);
            this.outputArea.TabIndex    = 2;
            this.outputArea.Text        = "";
            this.outputArea.Multiline   = true;
            this.outputArea.ContextMenu = this.cm2;

            //
            // pBar1
            //
            this.pBar1.Dock     = System.Windows.Forms.DockStyle.Bottom;
            this.pBar1.Location = new System.Drawing.Point(14, 430);
            this.pBar1.Name     = "pBar1";
            this.pBar1.Size     = new System.Drawing.Size(540, 10);
            this.pBar1.TabIndex = 11;

            //
            // Form1
            //
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
            this.ClientSize        = new System.Drawing.Size(570, 445);
            this.Controls.Add(this.pBar1);
            this.Controls.Add(this.outputArea);
            this.Controls.Add(this.splitter1);
            this.Controls.Add(this.inputArea);
            this.Controls.Add(this.panel1);
            this.Name = "Form1";
            this.Text = "KJ_form2 ( Debug tool )";
            this.ResumeLayout(false);
        }