예제 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //the login form just for test (user=abs pass=a)
            //Application.Run( new Form1() );

            //just to test: read an ini file
            //var inifile = new IniFile( "inifile.ini" );
            //inifile.Write( "aValue" , "100" );
            //var result = inifile.Read( "aValue" );
            //MessageBox.Show( result );

            //just to test: read a txt file
            var text = new textParser("info.txt", "first passphrase test");
            //var idRidden = text.Read();
            //MessageBox.Show(idRidden);

            //just to text: write a txt file
            var toWrite = "date= 3/4/5; result = nothing particular ; tag1=visitTag1; tag2=visitTag2; tag3=visitTag3;";

            text.Write(toWrite);

            //read al the folders in ROOT (each folder is a patient)
            FoldersHandler fh  = new FoldersHandler("ROOT");
            List <String>  lsf = fh.getSubFolders();

            //MessageBox.Show( lsf[0] );

            //Application.Run( new GridIndex( ap.getIndexFile() ) );
            Application.Run(new GridIndex());
        }
예제 #2
0
        private void buildVisits()
        {
            FoldersHandler fh  = new FoldersHandler(path);
            List <String>  lsf = fh.getSubFolders();

            for (int i = 0; i < lsf.Count; i++)
            {
                Visit v = new Visit(path + "\\" + lsf[i]);
                visits.Add(v);
            }
        }
예제 #3
0
        private void buildPatient()
        {
            FoldersHandler fh  = new FoldersHandler(path);
            List <String>  lsf = fh.getSubFolders();

            for (int i = 0; i < lsf.Count; i++)
            {
                Patient p = new Patient(path + "\\" + lsf[i]);
                patients.Add(p);
            }
        }
예제 #4
0
        public static AllPatients buildAllData()
        {
            //read al the folders in ROOT (each folder is a patient)
            FoldersHandler fh  = new FoldersHandler("ROOT");
            List <String>  lsf = fh.getSubFolders();

            //get all the patient in their objects
            AllPatients    ap = new AllPatients("ROOT");
            List <Patient> lp = ap.getPatients();

            //for each patient show all the visits
            for (int i = 0; i < lp.Count; i++)
            {
                Patient      p  = lp[i];
                List <Visit> lv = p.getVisits();
            }

            //create in Global a structure with all the initial info about
            //patient and visitis
            ap.fillIndexFile();
            return(ap);
        }