public void CommitDisk(int drive)
        {
            TridentDrive d = _drives[drive];

            if (d.IsLoaded)
            {
                d.Pack.Save();
            }
        }
        public void CommitDisk(int drive)
        {
            TridentDrive d = _drives[drive];

            if (d.IsLoaded)
            {
                try
                {
                    d.Pack.Save();
                }
                catch (Exception e)
                {
                    // TODO: this does not really belong here.
                    System.Windows.Forms.MessageBox.Show(String.Format("Unable to save Trident disk {0}'s contents.  Error {1}.  Any changes have been lost.", drive, e.Message), "Disk save error");
                }
            }
        }
        public TridentController(AltoSystem system)
        {
            _system = system;

            //
            // We initialize 16 drives even though the
            // controller only technically supports 8.
            // TODO: detail
            //
            _drives = new TridentDrive[16];

            for (int i = 0; i < _drives.Length; i++)
            {
                _drives[i] = new TridentDrive(system);
            }

            Reset();
        }