Пример #1
0
 void btnEdit_Click(object sender, EventArgs e)
 {
     if (preThumbnail.Image == null)
     {
         return;
     }
     using (ImageEditingDialog dialog = new ImageEditingDialog())
     {
         dialog.Image = preThumbnail.Image;
         if (dialog.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
         {
             LoadImage(dialog.Image);
         }
     }
 }
Пример #2
0
		void btnEdit_Click(object sender, EventArgs e)
		{
			if (preThumbnail.Image == null)
				return;
			using (ImageEditingDialog dialog = new ImageEditingDialog())
			{
				dialog.Image = preThumbnail.Image;
				if (dialog.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
					LoadImage(dialog.Image);
			}
		}