Esempio n. 1
0
        public static void Open(string filename, short channel, EKGFileType filetype)
        {
            if (!System.IO.File.Exists(filename))
                throw new System.IO.FileNotFoundException("Fajl nije pronadjen", filename);
            if (filetype == EKGFileType.BINARY)
                ulaz = new BinarniUlaz(filename, 30);
            else if (filetype == EKGFileType.TEXT)
                ulaz = new TekstualniUlaz(filename, 30);

            ulaz.Read(channel);
        }
Esempio n. 2
0
        public static void Open(string filename, short channel, EKGFileType filetype)
        {
            if (!System.IO.File.Exists(filename))
            {
                throw new System.IO.FileNotFoundException("Fajl nije pronadjen", filename);
            }
            if (filetype == EKGFileType.BINARY)
            {
                ulaz = new BinarniUlaz(filename, 30);
            }
            else if (filetype == EKGFileType.TEXT)
            {
                ulaz = new TekstualniUlaz(filename, 30);
            }

            ulaz.Read(channel);
        }