40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Timers;
|
|
using Payesh.App.Utilities;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Xaml;
|
|
|
|
namespace Payesh.App.Views.Popups.Originals
|
|
{
|
|
[XamlCompilation(XamlCompilationOptions.Compile)]
|
|
public partial class SuccessPopUp : ContentView
|
|
{
|
|
public SuccessPopUp()
|
|
{
|
|
InitializeComponent();
|
|
Timer timer = new Timer(3000);
|
|
timer.Start();
|
|
timer.Elapsed += (async (sender, e) =>
|
|
{
|
|
await UtilitiesWrapper.Instance.PopUpUtilities.PopAsync();
|
|
timer.Close();
|
|
});
|
|
}
|
|
public SuccessPopUp(string message)
|
|
{
|
|
InitializeComponent();
|
|
messageLabel.Text = message;
|
|
Timer timer = new Timer(3000);
|
|
timer.Start();
|
|
timer.Elapsed += (async (sender, e) =>
|
|
{
|
|
await UtilitiesWrapper.Instance.PopUpUtilities.PopAsync();
|
|
timer.Close();
|
|
});
|
|
}
|
|
}
|
|
} |