Example #1
0
        private void SetLanguage()
        {
            LanguageControl.SetLanguage();
            this.Text = LanguageControl.STR_MAIN_FORM_NAME;
            this.文件ToolStripMenuItem.Text = LanguageControl.STR_MENU_FILE;
            this.分析ToolStripMenuItem.Text = LanguageControl.STR_MENU_ANALYZE;
            this.语言ToolStripMenuItem.Text = LanguageControl.STR_MENU_LANGUAGE;
            this.关于ToolStripMenuItem.Text = LanguageControl.STR_MENU_ABOUT;

            this.打开ToolStripMenuItem.Text   = LanguageControl.STR_MENU_OPEN;
            this.另存为ToolStripMenuItem.Text  = LanguageControl.STR_MENU_SAVE_AS;
            this.保存数据ToolStripMenuItem.Text = LanguageControl.STR_MENU_SAVE_DATA;
            this.打印ToolStripMenuItem.Text   = LanguageControl.STR_MENU_PRINT_IMAGE;
            this.关闭ToolStripMenuItem.Text   = LanguageControl.STR_MENU_CLOSE;
            this.退出ToolStripMenuItem.Text   = LanguageControl.STR_MENU_EXIT;

            this.测量距离ToolStripMenuItem.Text = LanguageControl.STR_MENU_MEASURE_DISTANCE;
            this.测量面积ToolStripMenuItem.Text = LanguageControl.STR_MENU_MEASURE_AREA;
            this.标定ToolStripMenuItem.Text   = LanguageControl.STR_MENU_CALIBRATE;

            this.toolStripButton_openFile.Text  = LanguageControl.STR_MENU_OPEN;
            this.toolStripButton_saveAs.Text    = LanguageControl.STR_MENU_SAVE_AS;
            this.toolStripButton_saveData.Text  = LanguageControl.STR_MENU_SAVE_DATA;
            this.toolStripButton_closeFile.Text = LanguageControl.STR_MENU_CLOSE;
            this.toolStripButton_exit.Text      = LanguageControl.STR_MENU_EXIT;

            this.toolStripButton_measureDistance.Text = LanguageControl.STR_MENU_MEASURE_DISTANCE;
            this.toolStripButton_measureAera.Text     = LanguageControl.STR_MENU_MEASURE_AREA;
            this.toolStripButton_correct.Text         = LanguageControl.STR_MENU_CALIBRATE;
        }
Example #2
0
 private void AboutForm_Load(object sender, EventArgs e)
 {
     LanguageControl.SetLanguage();
     this.Text                     = LanguageControl.STR_ABOUT_FORM;
     this.label_name.Text          = LanguageControl.STR_ABOUT_NAME;
     this.label_software_name.Text = LanguageControl.STR_ABOUT__SOFTWARE_NAME;
     this.label_company.Text       = LanguageControl.STR_ABOUT_COMPANY;
     this.label_company_name.Text  = LanguageControl.STR_ABOUT__COMPANY_NAME;
 }
Example #3
0
 private void SetLanguage()
 {
     LanguageControl.SetLanguage();
     this.Text                   = LanguageControl.STR_CALIBRATE_FORM_NAME;
     this.label_DIP.Text         = LanguageControl.STR_CALIBRATE_DIP;
     this.label_KD.Text          = LanguageControl.STR_CALIBRATE_KD;
     this.label_UOL.Text         = LanguageControl.STR_CALIBRATE_UOL;
     this.label_perPixelDis.Text = LanguageControl.STR_CALIBRATE_PERPIXEL_LENGTH;
     this.label_scaleValue.Text  = LanguageControl.STR_CALIBRATE_SCALE_VALUE;
     this.button_LoadImage.Text  = LanguageControl.STR_CALIBRATE_READ_IMAGE;
     this.button_createFile.Text = LanguageControl.STR_CALIBRATE_CREATE_FILE;
     this.button_readFile.Text   = LanguageControl.STR_CALIBRATE_LOAD_FILE;
     this.button_Cancel.Text     = LanguageControl.STR_CALIBRATE_CANCEL;
     this.button_Help.Text       = LanguageControl.STR_CALIBRATE_HELP;
     this.button_OK.Text         = LanguageControl.STR_CALIBRATE_OK;
 }
Example #4
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            this.另存为ToolStripMenuItem.Enabled  = false;
            this.保存数据ToolStripMenuItem.Enabled = false;
            this.关闭ToolStripMenuItem.Enabled   = false;
            this.测量距离ToolStripMenuItem.Enabled = false;
            this.测量面积ToolStripMenuItem.Enabled = false;
            this.打印ToolStripMenuItem.Enabled   = false;

            this.toolStripButton_saveAs.Enabled          = false;
            this.toolStripButton_saveData.Enabled        = false;
            this.toolStripButton_closeFile.Enabled       = false;
            this.toolStripButton_measureDistance.Enabled = false;
            this.toolStripButton_measureAera.Enabled     = false;

            this.mGraph = pictureBox.CreateGraphics();
            LanguageControl.m_bChinese = true;
            LanguageControl.SetLanguage();
            //this.toolStrip_StatusLabel.Text = "未标定,比例尺为:1.00";
            this.toolStrip_StatusLabel.Text = LanguageControl.MSG_STATUS_LABEL;
        }
Example #5
0
 private void SetLanguage()
 {
     LanguageControl.SetLanguage();
     this.Text = LanguageControl.STR_HISOGRAM_FORM_NAME;
 }