public static Result FormCaller(ExternalCommandData cData) { MEPUtilsChooser mepuc = new MEPUtilsChooser(cData); mepuc.ShowDialog(); //mepuc.Close(); var methodDict = CreateMethodDict(); Result result = methodDict[mepuc.MethodToExecute].Invoke(cData); return(result); }
public static Result FormCaller(ExternalCommandData cData) { MEPUtilsChooser mepuc = new MEPUtilsChooser(Cursor.Position.X, Cursor.Position.Y); mepuc.ShowDialog(); //mepuc.Close(); if (mepuc.MethodToExecute == null) { return(Result.Cancelled); } return(mepuc.MethodToExecute.Invoke(cData.Application)); }