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