public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { UIApplication application = commandData.Application; uidoc = application.ActiveUIDocument; Application application2 = application.Application; Document doc = uidoc.Document; Selection sel = uidoc.Selection; this._exEvent = ExternalEvent.Create((IExternalEventHandler) new CheckControlNumberEvent(this, doc)); var form = new FrmCheckControlNumber(this, doc); form.Show(); form.ExEvent = this._exEvent; return(Result.Succeeded); }
public FrmIncrease(FrmCheckControlNumber formdata) { _formdata = formdata; InitializeComponent(); }