private void menuItemInsertText_Click(object sender, EventArgs e) { InsertTextForm itFrm = new InsertTextForm(); itFrm.XPosition = itFrm.YPosition = 0; if (itFrm.ShowDialog() == DialogResult.OK) { imageHandler.RestorePrevious(); imageHandler.InsertText(itFrm.DisplayText, itFrm.XPosition, itFrm.YPosition, itFrm.DisplayTextFont, itFrm.DisplayTextFontSize, itFrm.DisplayTextFontStyle, itFrm.DisplayTextForeColor1, itFrm.DisplayTextForeColor2); this.Invalidate(); } }