Example #1
0
        private void menuItemInsertImage_Click(object sender, EventArgs e)
        {
            InsertImageForm iiFrm = new InsertImageForm();

            iiFrm.XPosition = iiFrm.YPosition = 0;
            if (iiFrm.ShowDialog() == DialogResult.OK)
            {
                imageHandler.RestorePrevious();
                imageHandler.InsertImage(iiFrm.DisplayImagePath, iiFrm.XPosition, iiFrm.YPosition);
                this.Invalidate();
            }
        }
Example #2
0
 private void menuItemInsertImage_Click(object sender, EventArgs e)
 {
     InsertImageForm iiFrm = new InsertImageForm();
     iiFrm.XPosition = iiFrm.YPosition = 0;
     if (iiFrm.ShowDialog() == DialogResult.OK)
     {
         imageHandler.RestorePrevious();
         imageHandler.InsertImage(iiFrm.DisplayImagePath, iiFrm.XPosition, iiFrm.YPosition);
         this.Invalidate();
     }
 }