Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
 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();
     }
 }