Persistence.TrackModel.TrackModel C# (CSharp) Method

TrackModel() public method

Constructor that initializes the Model reading the information from the file
public TrackModel ( string filename ) : System
filename string Filename where to read the information
return System
        public TrackModel(string filename)
        {
            if (System.IO.File.Exists(filename))
            {
                FileInfo finfo = new FileInfo(filename);
                this.Tag = new Tag.CompleteTag(finfo.FullName);
                this.Filepath = finfo.FullName;
            }
            else
            {
                throw new FileNotFoundException();
            }
        }

Same methods

TrackModel::TrackModel ( ) : System