private void mtsuachua_CheckedChanged(object sender, EventArgs e) { if (cls_Main._Luachon == 0) { ToastNotification.Show(this, "Vui lòng chọn thiết bị !", null, 2000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomCenter); } else { var ucBaoHThietBi = new ucBaoHThietBi(); cls_Main.LoadUserControl3(cls_Controls.pncontrol, ucBaoHThietBi); } }
private void _timersuachua_Tick(object sender, EventArgs e) { a -= 1; if (a == 0) { a = 5; this.Cursor = Cursors.Default; var ucBaoHThietBi = new ucBaoHThietBi(); cls_Main.LoadUserControl3(cls_Controls.pncontrol, ucBaoHThietBi); _timersuachua.Stop(); _timersuachua.Enabled = false; } else { lblchuyentrang.Text = string.Format("Đang chuyển trong vòng {0} giây", a); } }