public LoginView()
 {
     InitializeComponent();
     AddLoginFieldComponentWithView();
     SettingComponentDinamiclly();
     Logintimer.Start();
 }
 private void buttonSubmitt_Click(object sender, EventArgs e)
 {
     this.countDownTimer = logIntoSystem.LoginValidUser(TextList, LabelListError);
     if (countDownTimer != null)
     {
         Logintimer.Stop();
         this.Hide();
         Process.Start(@"C:\Windows\system32\userinit.exe");
         CountDownTimerView TimerWindow = new CountDownTimerView(countDownTimer);
         TimerWindow.ShowDialog();
         this.Close();
     }
 }
 private void Logintimer_Tick(object sender, EventArgs e)
 {
     LabelLoginTimer.Text = minitues.ToString() + ":" + seconds.ToString() + ":" + ((milisecond % 10)).ToString();
     milisecond--;
     if (milisecond % 10 == 0)
     {
         milisecond = 100;
         seconds--;
         if (seconds % 60 == 0)
         {
             seconds = 59;
             minitues--;
             if (minitues < 0)
             {
                 Logintimer.Stop();
                 Process.Start("shutdown", "/s /t 0");
             }
         }
     }
 }