/// <summary>
 /// Constructor of the view model class. Initializes all the required members with the passed references.
 /// </summary>
 /// <param name="volumeCalculationHelper">Helps to calculate the volume.</param>
 /// <param name="volumeCalculatorModel">This is the data class. This holds the required data.</param>
 /// <param name="readFile">Helps to read a file.</param>
 public VolumeCalculatorVM(IVolumeCalculationHelper volumeCalculationHelper, IVolumeCalculatorModel volumeCalculatorModel, IReadFile readFile)
 {
     m_VolumeCalculationHelper = volumeCalculationHelper;
     m_VolumeCalculatorModel   = volumeCalculatorModel;
     m_ReadCSV     = readFile;
     OpenDialogCmd = new OpenDialogCommand(null, SetImportText);
 }
예제 #2
0
 public DynamicVM()
 {
     ExitCommand         = new ExitCommand(this);
     AddEntityCommand    = new AddEntityCommand(this);
     OpenDialogCommand   = new OpenDialogCommand(this);
     AddAttributeCommand = new AddAttributeCommand(this);
     EntityRecords       = new ObservableCollection <EntityRecord>();
     InItEntityRecords();
 }