public void MXBFY() { TranslateMxb Translate = new TranslateMxb(); FrmTranslateMxb frm = new FrmTranslateMxb(); CadBaseSet.RH.MoveBackWindows(frm); frm.Translate = Translate; Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(frm); if (frm.IsTranslateClicked) { Translate.SelectTextAndTranslate(); } }