Beispiel #1
0
 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);
            }
        }
Beispiel #3
0
 public void Confirm(UIEventArgs e)
 {
     this.IsShow = false;
     OnConfirm.InvokeAsync(e);
 }
Beispiel #4
0
        public async Task ConfirmAsync()
        {
            await OnConfirm.InvokeAsync(Id);

            Close();
        }
Beispiel #5
0
 async Task Confirm()
 {
     IsOpen = !IsOpen;
     await OnConfirm.InvokeAsync(IsOpen);
 }