public SolZipMMEForm(string fileToZip) { InitializeComponent(); Height = 202; FileToZipTextBox.Text = fileToZip; ZipFileTextBox.Text = SolZipHelper.GetZipFileName(fileToZip); }
private static string GetZipFileName(Dictionary <string, string> args, string fileToZip) { if (!args.ContainsKey(SolZipConstants.ZipFileArgument) || string.IsNullOrEmpty(args[SolZipConstants.ZipFileArgument])) { return(SolZipHelper.GetZipFileName(fileToZip)); } return(args[SolZipConstants.ZipFileArgument]); }
public override bool OnBeginRecipe(object currentValue, out object newValue) { newValue = currentValue; IDictionaryService dictService = GetService <IDictionaryService>(); string recipeArgumentValue = dictService.GetValue(m_RecipeArgumentName) as string; if (recipeArgumentValue == null) { return(false); } newValue = SolZipHelper.GetZipFileName(recipeArgumentValue); return(newValue != currentValue); }