コード例 #1
0
 protected XrmTest()
 {
     Controller      = new LogController();
     XrmServiceAdmin = new XrmService(XrmConfiguration, Controller);
 }
コード例 #2
0
        public static void CreateCsv <T>(string path, string name, IEnumerable <T> objects, LogController ui)
        {
            name = GetCsvFileName(name);

            if (objects != null && objects.Any(o => o != null))
            {
                var typeToOutput = objects.First(o => o != null).GetType();

                var propertyNames = typeToOutput.GetReadableProperties().Select(s => s.Name).ToArray();

                CreateCsv(path, name, objects, propertyNames
                          , delegate(string s)
                {
                    return(typeToOutput.GetProperty(s).GetDisplayName());
                }, delegate(object o, string s)
                {
                    return(o.GetPropertyValue(s));
                });
            }
        }
コード例 #3
0
 public XrmService(IXrmConfiguration crmConfig, LogController controller)
 {
     XrmConfiguration = crmConfig;
     _controller      = controller;
 }
コード例 #4
0
 public XrmService(IXrmConfiguration crmConfig)
 {
     XrmConfiguration = crmConfig;
     _controller      = new LogController();
 }
コード例 #5
0
ファイル: XrmTest.cs プロジェクト: wilku/XRM-Developer-Tool
 protected XrmTest()
 {
     Controller = new LogController();
     Controller.AddUi(new DebugUserInterface());
     XrmServiceAdmin = new XrmService(XrmConfigurationAdmin, Controller);
 }