Поддержание WPF MVVM View Model & Model Relationships

это кажется основным вопросом, но я не могу определить лучшую реализацию. Как вы управляете отношениями между двумя моделями представления и их соответствующими моделями.

Например, если вы изменили свойство Occupation в PersonViewModel, как это изменение отразится на свойстве Occupation в PersonModel. Note: Recompile with -Xlint:unchecked for ...

When I run the "compile" target of my Ant "build.xml" file, then I get the following message:

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

My compile target is the following:

  <target name="compile">
    <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" debuglevel="lines,source" includeantruntime="false">
      <classpath refid="class.path" />
    </javac>
    <javac srcdir="${test.dir}" destdir="${classes.dir}" debug="true" debuglevel="lines,source" includeantruntime="false">
      <classpath refid="class.path" />
    </javac>
  </target>

What do I have to change in my build.xml file so that -Xlint:unchecked is done there?

36
задан Benny Neugebauer 4 January 2011 в 20:19
поделиться