Beispiel #1
0
 private void rdmuonthietbi_CheckedChanged(object sender, EventArgs e)
 {
     if (cls_Main._Luachon == 0)
     {
         ToastNotification.Show(this, "Vui lòng chọn thiết bị cần mượn !", null, 2000, (eToastGlowColor)eToastGlowColor.Blue, (eToastPosition)eToastPosition.BottomCenter);
     }
     else
     {
         var ucMuonthietbi = new ucMuonthietbi();
         cls_Main.LoadUserControl3(cls_Controls.pncontrol, ucMuonthietbi);
     }
 }
Beispiel #2
0
        private void tchuyen_Tick(object sender, EventArgs e)
        {
            a -= 1;

            if (a == 0)
            {
                a           = 5;
                this.Cursor = Cursors.Default;
                var ucMuonthietbi = new ucMuonthietbi();
                cls_Main.LoadUserControl3(cls_Controls.pncontrol, ucMuonthietbi);


                tchuyen.Stop();
                tchuyen.Enabled = false;
            }
            else
            {
                lblchuyentrang.Text = string.Format("Đang chuyển trong vòng {0} giây", a);
            }
        }