예제 #1
0
 private void buttonCustomize_Click(object sender, EventArgs e)
 {
     using (new WaitCursor())
     {
         using (EditImageSizesDialog dialog = new EditImageSizesDialog())
         {
             if (dialog.ShowDialog(this) == DialogResult.OK)
             {
                 imageSizePickerControl1.Resynchronize(new GetScaledImageSizeDelegate(GetScaledImageSize));
             }
         }
     }
 }
예제 #2
0
 private void customSizeDefaultsCommand_Execute(object sender, EventArgs e)
 {
     using (new WaitCursor())
         using (EditImageSizesDialog dialog = new EditImageSizesDialog())
         {
             ImageSizeName imageSizeName = ImagePropertiesInfo.InlineImageSizeName;
             if (dialog.ShowDialog(_editorContext.MainFrameWindow) == DialogResult.OK)
             {
                 // If the current ImageSizeName's settings changed, we should resize the image.
                 ImagePropertiesInfo.InlineImageSizeName = imageSizeName;
                 ApplyImageDecorations(ImagePropertyType.InlineSize, ImageDecoratorInvocationSource.Command);
             }
         }
 }
 private void customSizeDefaultsCommand_Execute(object sender, EventArgs e)
 {
     using (new WaitCursor())
     using (EditImageSizesDialog dialog = new EditImageSizesDialog())
     {
         ImageSizeName imageSizeName = ImagePropertiesInfo.InlineImageSizeName;
         if (dialog.ShowDialog(_editorContext.MainFrameWindow) == DialogResult.OK)
         {
             // If the current ImageSizeName's settings changed, we should resize the image.
             ImagePropertiesInfo.InlineImageSizeName = imageSizeName;
             ApplyImageDecorations(ImagePropertyType.InlineSize, ImageDecoratorInvocationSource.Command);
         }
     }
 }
 private void buttonCustomize_Click(object sender, EventArgs e)
 {
     using (new WaitCursor())
     {
         using (EditImageSizesDialog dialog = new EditImageSizesDialog())
         {
             if (dialog.ShowDialog(this) == DialogResult.OK)
             {
                 imageSizePickerControl1.Resynchronize(new GetScaledImageSizeDelegate(GetScaledImageSize));
             }
         }
     }
 }