private void toolStripBtnMoveFileDown_Click(object sender, EventArgs e) { if (m_Media is Formats.D64) { Formats.D64 disk = m_Media as Formats.D64; C64Studio.Types.FileInfo fileToMove = (C64Studio.Types.FileInfo)listFiles.SelectedItems[0].Tag; int oldIndex = listFiles.SelectedIndices[0]; if (disk.MoveFileDown(fileToMove)) { RefreshFileView(); listFiles.SelectedIndices.Clear(); listFiles.SelectedIndices.Add(oldIndex + 1); SetModified(); UpdateStatusInfo(); } } else if (m_Media is Formats.D81) { Formats.D81 disk = m_Media as Formats.D81; C64Studio.Types.FileInfo fileToMove = (C64Studio.Types.FileInfo)listFiles.SelectedItems[0].Tag; int oldIndex = listFiles.SelectedIndices[0]; if (disk.MoveFileDown(fileToMove)) { RefreshFileView(); listFiles.SelectedIndices.Clear(); listFiles.SelectedIndices.Add(oldIndex + 1); SetModified(); UpdateStatusInfo(); } } }
private void d64With40TracksToolStripMenuItem_Click(object sender, EventArgs e) { CloseMedia(); var d64 = new C64Studio.Formats.D64(); d64.CreateEmptyMedia40Tracks(); m_Media = d64; SetUnmodified(); RefreshFileView(); UpdateStatusInfo(); }