Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Problem with new version of the library (Read 1996 times)
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Problem with new version of the library
May 12th, 2010 at 1:45pm
Print Post  
Hello, Stoyo!
Some weeks ago we bought your product. But some monthes before I used the trial version of the dlls and wrote the application. After that I changed the trial dlls onto licenced. Licenced version is 2.3.1.20480. Trial version is 2.3.0.25124. When I use th new version and save diagram into XML and restore it my application doesn't work correct and crashes because some properties of the ShapeNode objects are null. It seems that these properties are not saved and restored. And the compiller show me some warnings with new version. In the old trial version all is OK.
D:\Work\Diagrammer\MainFrm.xaml.cs(520,103): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
D:\Work\Diagrammer\MainFrm.xaml.cs(896,17): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
D:\Work\Diagrammer\NodePropWnd.xaml.cs(191,25): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
D:\Work\Diagrammer\TPDEDiagram.xaml.cs(663,39): warning CS0612: 'MindFusion.Diagramming.Wpf.DiagramItem.Pen' is obsolete
D:\Work\Diagrammer\TPDEDiagram.xaml.cs(669,40): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
D:\Work\Diagrammer\TPDEDiagram.xaml.cs(775,25): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
D:\Work\Diagrammer\TPDEDiagram.xaml.cs(779,25): warning CS0612: 'MindFusion.Diagramming.Wpf.DiagramItem.Pen' is obsolete
D:\Work\Diagrammer\TPDEDiagram.xaml.cs(1216,29): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
D:\Work\Diagrammer\TPDEDiagram.xaml.cs(1486,32): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
D:\Work\Diagrammer\TPDEDiagram.xaml.cs(1572,21): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
D:\Work\Diagrammer\TPDEDiagram.xaml.cs(1574,21): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
D:\Work\Diagrammer\TPDEDiagram.xaml.cs(1578,36): warning CS0612: 'MindFusion.Diagramming.Wpf.ShapeNode.TextFormat' is obsolete
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Problem with new version of the library
Reply #1 - May 12th, 2010 at 2:06pm
Print Post  
Hi,

We are redesigning the API a bit to make it better integrated with WPF. The new way of setting text and color attributes is through the various Stroke*, Font* and Text* properties now defined in DiagramItem.

You can get a licensed build of the previous version from your account at http://clientsarea.eu/ if you don't want to move to the new model just yet.

Or if you want to use the old properties with the new release, assign new instances to the Pen and TextFormat properties, instead of directly setting their members.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Hunter
Full Member
***
Offline



Posts: 194
Location: Sevastopol
Joined: Dec 1st, 2009
Re: Problem with new version of the library
Reply #2 - May 12th, 2010 at 2:17pm
Print Post  
Ok. Thanks. I'll try to move to the new model
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint