Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9117213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:51:12+00:00 2026-06-17T04:51:12+00:00

I need to write a small tool which makes use of the MVVM pattern

  • 0

I need to write a small tool which makes use of the MVVM pattern and WPF. Basically this tool shall perform the following tasks:

  • Take a username and password from the GUI.
  • Read rows with data from an external CSV file.
  • Perform SOAP calls to an external webservice with the data read from the CSV.

The following data are used during the above (all strings):

  • Data read from GUI
    • Username
    • Password
  • Data read from CSV
    • ID
    • Description

Neither will the data from the CSV file ever be displayed in the GUI nor will the application store any data in a file, database, etc. It’s just a “connector”. Now, what should go into the model? Or do I need one at all in this case?

class MyData {
  private string id;
  private string description;

  public string Id {
    get { return id; }
    set { id = value; }
  }

  public string Description {
    get { return description; }
    set { description= value; }
  }
}

Note:
This question relates to my previous question: What is the model in MVVM for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:51:13+00:00Added an answer on June 17, 2026 at 4:51 am

    The model consists of the POCOs used to represent the data as objects, and the logic to retrieve the data.

    The viewmodel is responsible for holding the subset of data specific to its purpose.

    That means, reading from CSV is done in the Model (ViewModels shouldn’t even be aware there is a CSV involved), and the data read should be stored into objects defined in the Model as well (POCOs).

    The viewmodels can then fetch whatever subset of data they require from the model.

    If the app requires persistency, the viewmodels push back the POCOs that were modified to the model, that is then responsible for updating the CSV.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to write a small tool that parses a textual input and generates
I need to write a small program which to test whether a line (position
I need to write an application in VB6 which makes a scatter plot out
I need to write a small regex which should match the occurrences of literal
In my project I need to write small WYSIWYG editor (just let users make
I need to write a small console app (patch) that turns off the print
I need to write a small application to read a configuration file and generate
I need to write a script in Matlab, which will read some data from
I need to write a small R script for people who never used R
As the title says, I need to write a small program to read data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.