Dienstag, September 28th, 2010 | by Franz Kalchmair | Posted in Programmierung Allgemein | No Comments »
Im Rahmen eines OCF basierten Projektes brauchten wir die Möglichkeit komplexe Sql Abfragen abbilden zu können. Eine QueryBuilder musste her, dabei sollte die Anwendung aber möglichst einfach sein.
Auf der Codeproject Seite “SelectQueryBuilder: Building complex and flexible SQL queries/commands from C#” findet sich eine sehr gute Implementierung.
Damit lassen sich so nette Sachen wie Join Bildung und dgl. ganz einfach umsetzen:
SelectQueryBuilder query = new SelectQueryBuilder();
query.SelectFromTable("Orders");
query.AddJoin(JoinType.InnerJoin,
"Customers", "CustomerID",
Comparison.Equals,
"Orders", "CustomerID");
query.AddWhere("Customers.City",
Comparison.Equals, "London");
Die leicht abgeänderte Version des SelectQueryBuilders ist jetzt Teil der OCF assembly Ocf.Common.
Montag, September 27th, 2010 | by Daniel Siegl | Posted in AMUSE, UML Simulation and Execution, UML mit Enterprise Architect | No Comments »
We use our build environment with Teamcity to automatically publish the contents of the AMUSE .chm file to our webpage whenever we edit something and commit it into Subversion! – Still we will continue to ship chm files with our installer!
http://www.lieberlieber.com/amuse/help/
This is pretty nice because our customers have instant access to the “latest” Help file. It should take roughly 4 minutes after commit – until the changes are reflected on the webpage.
If you want to see specific content you can use “direct” links like: http://www.lieberlieber.com/amuse/help/index.htm#page=My_first_statemachine_in_5_minutes.htm
Mittwoch, September 22nd, 2010 | by Daniel Siegl | Posted in .NET Framework, Microsoft Surface, Silverlight, WPF | No Comments »
Today I found a XAML Clipart gallery that can come very handy! It already contains 12000+ Cliparts: Xamalot – Free XAML Clipart

Mittwoch, September 22nd, 2010 | by Daniel Siegl | Posted in AMUSE, Enterprise Architect | 1 Comment »
I found a nice "blog” Post how one can build sequence diagrams from “code” using Sparx Systems Enterprise Architect debugger and Sequence Diagram recording features.
Auto generating a sequence diagram from code

Currently we are looking in doing similar stuff for future Versions of LieberLieber AMUSE. In our current implementation for Activity Diagrams we use the object model and not the debugger to record the sequence diagrams.
Mittwoch, September 22nd, 2010 | by Andreas Bruckner | Posted in Enterprise Architect, Enterprise Architect Erweiterungen, Programmierung Allgemein | No Comments »
Lately, the setup of a plugin for Enterprise Architect failed with the error message:
This advertised application will not be installed, because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic.
Oops – what does it mean? OS was XP, user had full local administrative privileges. So what could have caused the error?
Google says, it’s because of a broken uninstall of the previous version. One should delete the installer’s registry keys manually.
Other option: start the package by using the following commandline:
msiexec /i MyApp.msi /qb
Parameter /qb starts the GUI in basic mode. Whatever the difference is, solves the issue.
Dienstag, September 21st, 2010 | by Andreas Bruckner | Posted in Silverlight, Windows 7 Phone | No Comments »
If you ever want to add a service reference to your Windows Phone 7 app, and fail with a message like:
Custom tool warning: No endpoints compatible with Silverlight 3 were found.
Please remember the following 2 simple actions to finally get your reference:
1) Silverlight only supports basicHttpBinding (default: wsHttpBinding) -> so change it in the web.config file
2) close your Visual Studio & reopen it again.
Now try to update your reference: ét voilà!
This worked for me. Bonne chance!