Пример #1
0
        public MainWindow()
        {
            InitializeComponent();

            Consumo consumo = new Consumo();

            DataContext = new ConsumoViewModel(consumo);
        }
Пример #2
0
 public ConsumoViewModel(Consumo consumo)
 {
     Consumo = new List <Consumo>();
     Consumo.Add(consumo);
 }