Beispiel #1
0
 private void rawDataToolStripMenuItem_Click(object sender, EventArgs e)
 {
     OpenFileDialog dialog = new OpenFileDialog() { Title = "Choose the files you wish to export", Filter = "WZ Files(*.wz)|*.wz", Multiselect = true };
     if (dialog.ShowDialog() != DialogResult.OK) return;
     string outPath = GetOutputDirectory();
     if (outPath == "") return;
     WzPngMp3Serializer serializer = new WzPngMp3Serializer();
     threadDone = false;
     runningThread = new Thread(new ParameterizedThreadStart(RunWzFilesExtraction));
     runningThread.Start((object)new object[] { dialog.FileNames, outPath, encryptionBox.SelectedIndex, serializer });
     new Thread(new ParameterizedThreadStart(ProgressBarThread)).Start(serializer);
 }
Beispiel #2
0
 private void pNGsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     string outPath = GetOutputDirectory();
     if (outPath == "") return;
     List<IWzObject> objs = new List<IWzObject>();
     foreach (WzNode node in MainPanel.DataTree.SelectedNodes)
         if (node.Tag is IWzObject)
             objs.Add((IWzObject)node.Tag);
     WzPngMp3Serializer serializer = new WzPngMp3Serializer();
     threadDone = false;
     runningThread = new Thread(new ParameterizedThreadStart(RunWzObjExtraction));
     runningThread.Start((object)new object[] { objs, outPath, serializer });
     new Thread(new ParameterizedThreadStart(ProgressBarThread)).Start(serializer);
 }
Beispiel #3
0
 private void rawDataToolStripMenuItem_Click(object sender, EventArgs e)
 {
     OpenFileDialog dialog = new OpenFileDialog() { Title = HaRepacker.Properties.Resources.SelectWz, Filter = string.Format("{0}|*.wz", HaRepacker.Properties.Resources.WzFilter), Multiselect = true };
     if (dialog.ShowDialog() != DialogResult.OK) return;
     string outPath = GetOutputDirectory();
     if (outPath == "") return;
     WzPngMp3Serializer serializer = new WzPngMp3Serializer();
     threadDone = false;
     runningThread = new Thread(new ParameterizedThreadStart(RunWzFilesExtraction));
     runningThread.Start((object)new object[] { dialog.FileNames, outPath, encryptionBox.SelectedIndex, serializer });
     new Thread(new ParameterizedThreadStart(ProgressBarThread)).Start(serializer);
 }