mvvm-light: Should we merge Cleanup methods in locator?

Posted by mark smith on Stack Overflow See other posts from Stack Overflow or by mark smith
Published on 2010-06-02T19:38:15Z Indexed on 2010/06/02 19:44 UTC
Read the original article Hit count: 412

Filed under:
|

Hi there,

when creating a new ViewModel within the locator class using the snippet it creates a Cleanup Method but there is already one available from the Main so hence an error....

Should we merge them all??

Or should we be renaming the method to Cleanup[Name of viewmodel] for example.

I am a little confused here

Another question i would like to ask is regards to the naming conventions.

I tried to follow the naming convention used with "MAIN"...

hence i have CreateLogin, ClearLogin, Login (non static property for binding) etc etc..

Would it not be better to use CreateLoginViewModel, ClearLoginViewModel etc??

Just curious

Thanks

© Stack Overflow or respective owner

Related posts about .NET

Related posts about mvvm-light