Esempio n. 1
0
        public Disk(IDriveSystem system, string filename)
        {
            this._system = system;
            this._filename = filename;

            Load();
        }
Esempio n. 2
0
        public Configuration(IWorkspace workspace, IDriveSystem driveSystem)
        {
            this._workspace = workspace;
            this._driveSystem = driveSystem;
            this._library = new Library(this);
            this._drives = new ObservableCollection<Drive>();

            LoadConfig();
        }
Esempio n. 3
0
        public Disk(IDriveSystem system, string name, string filename, MediaType mediaType = DefaultMediaType, int wordsPerSector = DefaultWordsPerSector,
            int sectorsPerTrack = DefaultSectorsPerTrack, int numTracks = DefaultNumTracks, bool writeLocked = false)
        {
            this._system = system;
            this._name = name;
            this._filename = filename;
            this._mediaType = mediaType;
            this._wordsPerSector = wordsPerSector;
            this._sectorsPerTrack = sectorsPerTrack;
            this._numTracks = numTracks;
            this._writeLocked = writeLocked;

            this._data = new ushort[this.NumSectors][];
            for (int i = 0; i < this.NumSectors; i++)
            {
                this._data[i] = new ushort[this._wordsPerSector];
            }

            Save();
        }