Пример #1
0
 private void UcDropdownTime_Tick(object sender, EventArgs e)
 {
     if (isUcCollapsed)
     {
         pnlButton.Width += 10;
         if (pnlButton.Size == pnlButton.MaximumSize)
         {
             UcDropdownTime.Stop();
             isUcCollapsed = false;
         }
     }
     else
     {
         pnlButton.Width -= 10;
         if (pnlButton.Size == pnlButton.MinimumSize)
         {
             UcDropdownTime.Stop();
             isUcCollapsed = true;
         }
     }
 }
Пример #2
0
 private void btnCollapse_Click(object sender, EventArgs e)
 {
     UcDropdownTime.Start();
     if (!isUcCollapsed)
     {
         txtHour.Hide();
         txtMinute.Hide();
         txtSecond.Hide();
         btnSetCustomTime.Hide();
         btnSetCustomTime.Enabled = false;
         btnCollapse.Image        = BLADE.Properties.Resources.angle_right_24px;
         lblTextBLADE.Hide();
     }
     else
     {
         txtHour.Show();
         txtMinute.Show();
         txtSecond.Show();
         btnSetCustomTime.Show();
         btnCollapse.Image = BLADE.Properties.Resources.angle_left_24px;
         lblTextBLADE.Show();
     }
 }