Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Error with Brushes after upgrade (Read 2688 times)
Christie
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Dec 1st, 2006
Error with Brushes after upgrade
Dec 6th, 2006 at 12:54pm
Print Post  
I managed to solve most of my previous problems after the upgrade to 4.2.2, but the following error persist wherever I try to use any instance of Brush, for example:
Error
'SolidBrush' is ambiguous in the namespace 'MindFusion.Drawing'.
The following code:  boxTest.Brush = New MindFusion.Drawing.LinearGradientBrush(SandyBrown, Color.Beige)
results in this error:
Error 1 'LinearGradientBrush' is ambiguous in the namespace 'MindFusion.Drawing'.

I am using VS2005 (VB.Net)
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Error with Brushes after upgrade
Reply #1 - Dec 6th, 2006 at 1:49pm
Print Post  
Do you also use our Planner.NET control? Now both controls have MindFusion.Drawing namespaces. We are going to move the Brush classes to a separate dll in a few days, but until then you will have to use namespace aliases in order to resolve the Brush class references. E.g. select the flowchart.net.dll in Solution explorer, open the properties window, and in the Aliases line enter some namespace alias, say "fc". Now in the source code files where you access the flowchart API, add

"extern alias fc;"

to the top, and change the using directives so that they start with "fc::", e.g.

using fc::MindFusion.Diagramming.WinForms;

Now you will be able to differentiate between the Planner's and Flowchart's Brush classes through the "fc::" prefix.

We are moving common classes to a MindFusion.Shared.dll which will be used in both FlowChart.NET and Planner.NET, and aliases won't be needed when it's ready.

Stoyan
  
Back to top
 
IP Logged
 
Christie
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 16
Joined: Dec 1st, 2006
Re: Error with Brushes after upgrade
Reply #2 - Dec 6th, 2006 at 10:46pm
Print Post  
I am using Planner.Net as well...also, I am using FlowChart.Net and not FlowChartX, so I have posted this in the wrong forum..sorry

but could you please show me how to set the alias in VS2005 (VB.Net) as there is no alias field under properties for FlowChart.Net
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Error with Brushes after upgrade
Reply #3 - Dec 7th, 2006 at 5:59am
Print Post  
I can see aliases only in C# projects. I'll try to find a way to do it in VB.NET. If that’s not supported, I will email you a preview version of the shared dll.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint