я чёто сделал
parent
7818c3a4f7
commit
dce673898d
|
|
@ -1,5 +1,6 @@
|
|||
using AutoService.Models;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
|
@ -42,6 +43,11 @@ namespace AutoService.ViewModels
|
|||
|
||||
TotalPrice = sumPrice * (1-discount);
|
||||
|
||||
}
|
||||
[RelayCommand]
|
||||
public void ProceedTransaction()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,6 @@
|
|||
<TextBlock Text="Итого к оплате: "/>
|
||||
<TextBlock Text="{Binding TotalPrice}"/>
|
||||
</StackPanel>
|
||||
|
||||
<Button Content="Подтвердить!" Command="{Binding ProceedTransactionCommand}"/>
|
||||
</StackPanel>
|
||||
</Window>
|
||||
|
|
|
|||
Loading…
Reference in New Issue