я чёто сделал

master
ultrageese 2026-03-30 11:59:40 +10:00
parent 7818c3a4f7
commit dce673898d
2 changed files with 7 additions and 1 deletions

View File

@ -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()
{
}
}
}

View File

@ -28,6 +28,6 @@
<TextBlock Text="Итого к оплате: "/>
<TextBlock Text="{Binding TotalPrice}"/>
</StackPanel>
<Button Content="Подтвердить!" Command="{Binding ProceedTransactionCommand}"/>
</StackPanel>
</Window>