public void DestoryTransForm() { if (MyBasicTransForm != null) { MyBasicTransForm.destroyForm(); } if (MyLayerTransForm != null) { MyLayerTransForm.destroyForm(); } MyBasicTransForm = null; MyLayerTransForm = null; }
public void MakeBasicTransForm(bool isTranslateFormTopMostFlag) { if (MyBasicTransForm == null) { MyBasicTransForm = new TransForm(); MyBasicTransForm.Name = "TransForm"; MyBasicTransForm.StartPosition = FormStartPosition.Manual; MyBasicTransForm.Location = new Point(20, Screen.PrimaryScreen.Bounds.Height - 300); MyBasicTransForm.setTopMostFlag(isTranslateFormTopMostFlag); MyBasicTransForm.Show(); } else { MyBasicTransForm.setTopMostFlag(isTranslateFormTopMostFlag); MyBasicTransForm.Activate(); MyBasicTransForm.StartTrans(); MyBasicTransForm.Show(); } //만약 번역창을 찾지 못했으면 }