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(); } }
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(); } }