コード例 #1
0
        private void RewritePackBox_Click(object sender, EventArgs e)
        {
            if (lockedItemDrop || selectedPck == null)
            {
                return;
            }
            string pckName = selectedPck.fiullFilePath;

            if (openedPckFies != null)
            {
                openedPckFies.CompressionLevel = PackConfigs.compression;
                if (jComboBox1.SelectedIndex != -1)
                {
                    openedPckFies.version = short.Parse(jComboBox1.Items[jComboBox1.SelectedIndex].ToString());
                }
                else
                {
                    openedPckFies.version = 2;
                }
                Thread t = new Thread(new ThreadStart(() => { openedPckFies.ReWrite(); drawListViewInitial(); }));
                t.Start();
            }
        }