Ejemplo n.º 1
0
        /// <summary>
        /// Open up new dialog box to change RenderWare Version.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void changeRWVersionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RWVersionDialog renderWareDialog = new RWVersionDialog(ArchiveFile.RwVersion);

            ArchiveFile.RwVersion = renderWareDialog.ShowDialog();
            UpdateGUI(ref Archive);
        }
Ejemplo n.º 2
0
        private void setAllFileRWVersionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Get RW Version
            RWVersionDialog renderWareDialog = new RWVersionDialog(Archive.RwVersion);
            RWVersion       fileRwVersion    = renderWareDialog.ShowDialog();

            // Loop and set version
            for (int x = 0; x < Archive.Files.Count; x++)
            {
                Archive.Files[x].RwVersion = fileRwVersion;
            }

            // Update GUI
            UpdateGUI(ref Archive);
        }