public GiftSertificateWind(Vxod Login, string DateNow) { InitializeComponent(); this.Login = Login; this.DateNow = DateNow; GifSertificateWind.Title = GifSertificateWind + "/ Пользователь " + Login + "/ Дата входа" + DateNow; }
public Bludo(Vxod Login, string DateNow) { InitializeComponent(); this.Login = Login; this.DateNow = DateNow; Info = BludoWind.Title + "/ Пользователь: " + Login.Login + "/ Время: " + DateNow; BludoWind.Title = Info; }
public async void Block(Vxod item) { TimeSpan timeSpan = new TimeSpan(0, 0, 30); if (item.CoutWrong >= 5 && item.Id == 1) { timer.Interval = timeSpan; timer.Start(); await Task.Run(() => timer.Tick += (o, e) => { MessageBox.Show($"{item.Login} разблокирован"); timer.Stop(); item.CoutWrong = 1; }); } if (item.CoutWrong >= 5 && item.Id == 2) { timer1.Interval = timeSpan; timer.Start(); await Task.Run(() => timer1.Tick += (o, e) => { MessageBox.Show($"{item.Login} разблокирован"); timer1.Stop(); item.CoutWrong = 1; }); } }
public SaleCartWind(Vxod Login, string DateNow) { InitializeComponent(); this.Login = Login; this.DateNow = DateNow; }
public Employee(Vxod Login, string DateNow) { InitializeComponent(); this.Login = Login; this.DateNow = DateNow; }