private async Task Confirm(MouseEventArgs args) { if (OnConfirm.HasDelegate) { await OnConfirm.InvokeAsync(args); } await base.Hide(); }
public async void MeasurementClicked(SelectableMeasurement m) { m.SelectedCount++; double currentAmount = 0f; foreach (var item in MeasurementsOptions.Where(m => m.SelectedCount > 0)) { currentAmount += item.SelectedCount * BaseMeasurement.GetMeasurement(item.Measurement).ConvertTo(MeasurementType); } CurrentSelectedAmount = currentAmount; if (CurrentSelectedAmount >= RequiredAmount) { await OnConfirm.InvokeAsync(this); } }
public void Confirm(UIEventArgs e) { this.IsShow = false; OnConfirm.InvokeAsync(e); }
public async Task ConfirmAsync() { await OnConfirm.InvokeAsync(Id); Close(); }
async Task Confirm() { IsOpen = !IsOpen; await OnConfirm.InvokeAsync(IsOpen); }