Hi Frantisek,
Frantisek Fuka <
[hidden email]> wrote in message news:<
[hidden email]>...
> I think I almost grasped the concept of Model-View-Presenter but I'd
> like your help with the following:
>
> For example, let's take two resources, "NumberPresenter.Default view"
> and "NumberPresenter.Integer text". My question is: If these resources
> were called "PresenterX.View1" and "PresenterX.View2" instead, how could
> I deduct their exact functionality? When I open these views I see lots
> of parameters but where can I see the implementation of "accepting
> everything" vs. "accepting only numbers"? There should be a reference to
> some filering block somewhere in the "interger text" view, shouldn't it?
> How can I find it. Generally: How can I find out what exactly ANY
> resource does?
In case of the number presenters, look at the type converter. One is a
NumberToText, the other one is an IntegerToText type converter. They
are both text boxes, but whatever you enter, the xxxToText converter
tries to convert it into a Number or an Integer. It works the same the
other way round, when you want it to display an existing object, you
want the object of type Number or Integer to be displayed as Text, as
you want to display it in a TextBox.
So to answer your general question, you really need to skim through
the aspects of the resource and see if you can find an aspect that
shows you its intention. For example, there are three ImagePresenter
resources. When you open them, you can see in the title bar that they
are instances of classes, one is an instance of the StaticIcon class,
one is an instance of the StaticBitmap class and one is an instance of
the ImageView class. This means that even though all three are
ImagePresenter resources, each has a different use.
Hope this helps,
Ted