PDA

View Full Version : [CLOSED] How to handle this breakingchanges with minimal effort?



ViDom
Apr 23, 2013, 8:16 AM
Hi,

In really short: My scenario is I generated dynamically my form of details elements In switch statement. And in v1 I had code below:

((Ext.Net.Component)control).FieldLabel += "<span class=\"red\"> *</span>"; //control is any Ext.Net control example: TextField,ComboBox etc.


after I get v2 there is no more FieldLabel property in component control.

How should I handle it?

Thanks,
ViDom

Daniil
Apr 23, 2013, 9:43 AM
Hi @ViDom,

Please try:

((Ext.Net.Field)control).FieldLabel

ViDom
Apr 23, 2013, 10:11 AM
Hi @ViDom,

Please try:

((Ext.Net.Field)control).FieldLabel

But what about FieldContainer? I just remember myself that I have some controls inherited from FieldContainer and want it to used it as well.
Is there some diagram which display a Control hierarchy of Ext.Net ? I mean which control inherit from which one?

Daniil
Apr 23, 2013, 12:51 PM
But what about FieldContainer? I just remember myself that I have some controls inherited from FieldContainer and want it to used it as well.

The FieldContainer class also supports FieldLabel. Though it comes to it from the FieldContainerBase class, not from the Field class.


Is there some diagram which display a Control hierarchy of Ext.Net ? I mean which control inherit from which one?

I think there is not.

VS can make class diagrams. Please see "To add a class diagram based on existing classes or types" and "To add a class diagram based on an entire project" here:
http://msdn.microsoft.com/en-us/library/hyxd8c85.aspx