private void dankYGAToolStripMenuItem_Click_1(object sender, EventArgs e) { MyOpenFileDialogControl openFileDialog = new MyOpenFileDialogControl(); //openFileDialog.Multiselect = true; if (openFileDialog.ShowDialog(this) == DialogResult.OK) { //lblFilePath.Text = openDialog.MSDialog.FileName; } else { return; } CustomControls.FolderSelectDialog saveFileDialog = new CustomControls.FolderSelectDialog(); if (!saveFileDialog.ShowDialog()) { return; } foreach (var item in openFileDialog.FileDlgFileNames) { YGAFile file = new YGAFile(item); file.Decompress(saveFileDialog.FileName + @"\" + Path.GetFileNameWithoutExtension(item) + ".png"); } }
private void dankToYGAToolStripMenuItem_Click_1(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Multiselect = true; openFileDialog.Filter = "Portable Network Graphic (*.png)|*.png"; if (openFileDialog.ShowDialog() != DialogResult.OK) { return; } CustomControls.FolderSelectDialog saveFileDialog = new CustomControls.FolderSelectDialog(); if (!saveFileDialog.ShowDialog()) { return; } foreach (var item in openFileDialog.FileNames) { YGAFile.ConvertToYGA(item, saveFileDialog.FileName + @"\" + Path.GetFileNameWithoutExtension(item) + ".yga"); } }