premier ajout de la page opérations
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
708400876c
commit
d4de3b9a20
@ -1,9 +1,39 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM;
|
namespace IHM;
|
||||||
|
|
||||||
public partial class Operations : ContentPage
|
public partial class Operations : ContentPage
|
||||||
{
|
{
|
||||||
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
public Operations()
|
public Operations()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
BindingContext = Mgr;
|
||||||
|
double test = Mgr.recupTotalSolde();
|
||||||
|
double i = test / 2000;
|
||||||
|
PrgressAnimationBar(i);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
double test = Mgr.recupTotalSolde();
|
||||||
|
double i = test/2000;
|
||||||
|
PrgressAnimationBar(i);
|
||||||
|
UpdateArc();
|
||||||
|
}
|
||||||
|
private async void UpdateArc()
|
||||||
|
{
|
||||||
|
ActualisationButton.IsEnabled = false;
|
||||||
|
int timeRemaining = 60;
|
||||||
|
while (timeRemaining != 0)
|
||||||
|
{
|
||||||
|
timeRemaining--;
|
||||||
|
await Task.Delay(1000);
|
||||||
|
}
|
||||||
|
ActualisationButton.IsEnabled = true;
|
||||||
|
}
|
||||||
|
private async void PrgressAnimationBar(double progress)
|
||||||
|
{
|
||||||
|
await ProgressBarSolde.ProgressTo(0.75, 500, Easing.Linear);
|
||||||
}
|
}
|
||||||
}
|
}
|
After Width: | Height: | Size: 748 B |
Loading…
Reference in new issue