Пример #1
0
        private void ICOpic_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            clicked = false;

            //Process click
            if (ICOpic.Image != null)
            {
                using (var CI = new CropImage_Tool())
                {
                    CI.ShowDialog();
                    if (CI.DialogResult1 == DialogResult.Yes)
                    {
                        ImagingHelper.ConvertToIcon(temppath + "temp.png", temppath + @"temp.ico");
                        ICOpic.Image = ImagingHelper.ICONbox;
                        ICOpic.Image.Save(temppath + @"temp.png");
                    }
                }
            }
            else
            {
                MessageForm.Info("First select a picture to crop");
            }
        }