public void Button1_Click(System.Object sender, System.EventArgs e) { if (mApplication.ActiveDocument != null) { mSimpleInterac = new CSimpleInteraction(mApplication); } }