Esempio n. 1
0
 public SolZipMMEForm(string fileToZip)
 {
     InitializeComponent();
     Height = 202;
     FileToZipTextBox.Text = fileToZip;
     ZipFileTextBox.Text   = SolZipHelper.GetZipFileName(fileToZip);
 }
Esempio n. 2
0
        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]);
        }
Esempio n. 3
0
        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);
        }