Beispiel #1
0
        private void labelMediaTitle_Click(object sender, EventArgs e)
        {
            if ((m_Media != null) &&
                (m_Media.SupportsRenamingTitle))
            {
                var disk = (Disk)m_Media;

                var diskID = new GR.Memory.ByteBuffer();
                diskID.AppendU16NetworkOrder(disk.DiskID);
                var renameDisk = new FormRenameDisk(Core, disk.DiskName, diskID);
                if (renameDisk.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                disk.DiskName = renameDisk.DiskName;
                disk.DiskID   = renameDisk.DiskID.UInt16NetworkOrderAt(0);
                RefreshFileView();
                SetModified();
            }
        }