Exemple #1
0
        //打开脚本
        void OpenScript(string file)
        {
            CodeEditForm cf = new CodeEditForm();

            //设置界面语言
            LanguageHelper.SetFormLabel(cf);
            //设置cdb列表
            cf.SetCDBList(this.history.GetcdbHistory());
            //初始化函数提示
            cf.InitTooltip(this.codecfg);
            //打开文件
            cf.Open(file);
            cf.Show(this.dockPanel, DockState.Document);
        }
Exemple #2
0
 static void SaveLanguage()
 {
     string datapath = MyPath.Combine(Application.StartupPath, MyConfig.TAG_DATA);
     string conflang = MyConfig.GetLanguageFile(datapath);
     LanguageHelper.LoadFormLabels(conflang);
     LanguageHelper langhelper = new LanguageHelper();
     MainForm form1 = new MainForm();
     LanguageHelper.SetFormLabel(form1);
     langhelper.GetFormLabel(form1);
     DataEditForm form2 = new DataEditForm();
     LanguageHelper.SetFormLabel(form2);
     langhelper.GetFormLabel(form2);
     CodeEditForm form3 = new CodeEditForm();
     LanguageHelper.SetFormLabel(form3);
     langhelper.GetFormLabel(form3);
        // LANG.GetFormLabel(this);
     //获取窗体文字
     langhelper.SaveLanguage(conflang + ".bak");
 }
Exemple #3
0
        static void SaveLanguage()
        {
            string datapath = MyPath.Combine(Application.StartupPath, MyConfig.TAG_DATA);
            string conflang = MyConfig.GetLanguageFile(datapath);

            LanguageHelper.LoadFormLabels(conflang);
            LanguageHelper langhelper = new LanguageHelper();
            MainForm       form1      = new MainForm();

            LanguageHelper.SetFormLabel(form1);
            langhelper.GetFormLabel(form1);
            DataEditForm form2 = new DataEditForm();

            LanguageHelper.SetFormLabel(form2);
            langhelper.GetFormLabel(form2);
            CodeEditForm form3 = new CodeEditForm();

            LanguageHelper.SetFormLabel(form3);
            langhelper.GetFormLabel(form3);
            // LANG.GetFormLabel(this);
            //获取窗体文字
            langhelper.SaveLanguage(conflang + ".bak");
        }
Exemple #4
0
 //打开脚本
 void OpenScript(string file)
 {
     CodeEditForm cf = new CodeEditForm();
     //设置界面语言
     LanguageHelper.SetFormLabel(cf);
     //设置cdb列表
     cf.SetCDBList(history.GetcdbHistory());
     //初始化函数提示
     cf.InitTooltip(codecfg);
     //打开文件
     cf.Open(file);
     cf.Show(dockPanel1, DockState.Document);
 }