コード例 #1
0
        public void TestInitialize()
        {
            listsPath = Global.testFilesPath + Global.listFolderName;
            StrList.writeDefaultColorsList(listsPath);
            StrList.writeDefaultWordsList(listsPath);
            List <string> list = new List <string>(new string[] { "element1", "element2", "element3" });

            testList = new StrList(list, "test", "_words");
        }
コード例 #2
0
        public void TestInitialize()
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("pt-BR");
            System.Threading.Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("pt-BR");
            listsPath = Global.testFilesPath + Global.listFolderName;
            StrList.writeDefaultColorsList(listsPath);
            StrList.writeDefaultWordsList(listsPath);
            List <string> list = new List <string>(new string[] { "element1", "element2", "element3" });

            testList = new StrList(list, "test", "_words");
        }
コード例 #3
0
 private void initializeDefaultProgram() // inicializa programDefault padrão
 {
     programDefault.UserName    = defaultPrgName;
     programDefault.ProgramName = defaultUsrName;
     try
     {
         programDefault.writeDefaultProgramFile(testFilesPath + prgFolderName + programDefault.ProgramName + ".prg"); // ao inicializar formulario escreve arquivo programa padrao
         StrList.writeDefaultWordsList(testFilesPath + lstFolderName);                                                // escreve lista de palavras padrão
         StrList.writeDefaultColorsList(testFilesPath + lstFolderName);                                               // escreve lista de cores padrão
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         Close();
     }
 }
コード例 #4
0
ファイル: FormMain.cs プロジェクト: Joranhezon/Test-Platform
        private void initializeDefaultPrograms() // inicializa programDefault padrão
        {
            StroopProgram programDefault = new StroopProgram();

            programDefault.ProgramName = DEFAULTPGRNAME;
            try
            {
                programDefault.writeDefaultProgramFile(Global.stroopTestFilesPath + Global.programFolderName + programDefault.ProgramName + ".prg"); // ao inicializar formulario escreve arquivo programa padrao
                ReactionProgram.writeDefaultProgramFile();
                StrList.writeDefaultWordsList(Global.testFilesPath + Global.listFolderName);                                                         // escreve lista de palavras padrão
                StrList.writeDefaultColorsList(Global.testFilesPath + Global.listFolderName);                                                        // escreve lista de cores padrão
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                Close();
            }
        }
コード例 #5
0
        private void initializeDefaultPrograms() // inicializa programDefault padrão
        {
            StroopProgram programDefault = new StroopProgram();

            programDefault.ProgramName = LocRM.GetString("default", currentCulture);
            try
            {
                // writing default program and lists on to disk
                programDefault.writeDefaultProgramFile(Global.stroopTestFilesPath + Global.programFolderName + programDefault.ProgramName + ".prg");
                ReactionProgram defaultProgram = new ReactionProgram();
                defaultProgram.writeDefaultProgramFile();
                StrList.writeDefaultWordsList(Global.testFilesPath + Global.listFolderName);
                StrList.writeDefaultColorsList(Global.testFilesPath + Global.listFolderName);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                Close();
            }
        }