public static FaceForm GetFaceForm() { if (form == null) { form = new FaceForm(); } return(form); }
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); } }); }