Example #1
0
 public static FaceForm GetFaceForm()
 {
     if (form == null)
     {
         form = new FaceForm();
     }
     return(form);
 }
Example #2
0
        private void btnFace_Click(object sender, EventArgs e)
        {
            //Point faceLoca= btnFace.Location;
            //Point point= PointToScreen(faceLoca);
            Point point = Control.MousePosition;

            FaceForm.GetFaceForm().Show(point, (DialogResult, obj) =>
            {
                if (DialogResult == DialogResult.OK)
                {
                    this.txtMessage.AppendText(obj);
                }
            });
        }