Пример #1
0
 public Form1()
 {
     InitializeComponent();
     Tslide.Start();
     Tdate.Start();
     lblName.Text        = UserLoginDetail.fName + " " + UserLoginDetail.lName;
     label2.Dock         = DockStyle.Left;
     lblposition2.Text   = UserLoginDetail.position;
     lblposition2.Dock   = DockStyle.Left;
     lblPosition.Visible = false;
 }
Пример #2
0
 private void btnPlayAndStop_Click(object sender, EventArgs e)
 {
     if (btnPlayAndStop.Text == "បញ្ឈប់ចលនា")
     {
         Tslide.Stop();
         btnPlayAndStop.Text = "ដំណើរកាចលនា";
     }
     else
     {
         Tslide.Start();
         btnPlayAndStop.Text = "បញ្ឈប់ចលនា";
     }
 }