private void SourcePropertiesShow() { FileResourceSource sourceFile = CurrentSource as FileResourceSource; if (sourceFile == null) { return; } NativeMethods.ShowProperties(sourceFile.FileInfo.FullName); }
private void SourceBatchProcessShow() { BatchProcessForm batch = new BatchProcessForm(); if (CurrentSource != null) { FileResourceSource fs = CurrentSource as FileResourceSource; if (fs != null) { batch.SourceFilePath = fs.FileInfo.FullName; } } batch.ShowDialog(this); }
/// <summary>Makes a copy of the current pre-modified Resource Source. It asks the user for a save location.</summary> private void SourceBackup() { if (CurrentSource.IsReadOnly) { return; } FileResourceSource source = CurrentSource as FileResourceSource; if (source == null) { MessageBox.Show(this, "The current source file is not file-based and cannot be backed-up.", "Anolis Resourcer", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); return; } if (__sfd.ShowDialog(this) != DialogResult.OK) { return; } File.Copy(source.FileInfo.FullName, __sfd.FileName); }