Exemplo n.º 1
0
        public static void CreateMappingReport(Zetbox.App.SchemaMigration.MigrationProject obj)
        {
            var fileName = _mdlFactory.GetDestinationFileNameFromUser("Migration Report " + obj.Description + ".pdf", "PDF|*.pdf");

            if (!string.IsNullOrEmpty(fileName))
            {
                var r = new MigrationProjectMappingReport();
                r.CreateReport(obj);
                r.Save(fileName);
                _fileOpener.ShellExecute(fileName);
            }
        }
Exemplo n.º 2
0
 public static void ToString(Zetbox.App.SchemaMigration.MigrationProject obj, MethodReturnEventArgs <System.String> e)
 {
     e.Result = !string.IsNullOrEmpty(obj.Description) ? obj.Description : "new Migration Project";
 }