Пример #1
0
 private static ImagePairNames TryAddTemplatePrompt(ImagePairNames startNames)
 {
     if (startNames.FullSize.IndexOf(Templates.Prompt) >= 0 || startNames.Thumbnail.IndexOf(Templates.Prompt) >= 0)
     {
         Prompt prompt = new Prompt();
         prompt.TopMost = true;
         prompt.StartPosition = FormStartPosition.CenterParent;
         if (prompt.ShowDialog(Configuration.Current.ActiveCropWindow) == DialogResult.OK)
         {
             startNames.FullSize = startNames.FullSize.Replace(Templates.Prompt, prompt.Value);
             startNames.Thumbnail = startNames.Thumbnail.Replace(Templates.Prompt, prompt.Value);
         }
         else
         {
             startNames.FullSize = startNames.FullSize.Replace(Templates.Prompt, string.Empty);
             startNames.Thumbnail = startNames.Thumbnail.Replace(Templates.Prompt, String.Empty);
         }
     }
     return startNames;
 }