private void Scene_SeatClicked(object sender, SeatClickedEventArgs e) { initialprice += e.Price; if (initialprice == 0) { PurchaseBtn.IsEnabled = false; } else { PurchaseBtn.IsEnabled = true; } InitialPrice.Content = $"Цена: {initialprice} грн."; OverallPrice.Content = $"Всего: {initialprice * (100 - discount) / 100:f2} грн."; }
protected virtual void OnSeatClicked(SeatClickedEventArgs e) { SeatClicked?.Invoke(this, e); }