private void login_btt_Click(object sender, RoutedEventArgs e)
        {
            ipAddress.Save_IPV4(IpBox.Text);
            WelcomeWindow welcome = new WelcomeWindow();

            welcome.Show();
            this.Close();
        }
 // Press Enter to login
 private void Button_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Return)
     {
         if (ipAddress.Save_IPV4(IpBox.Text) == true)
         {
             WelcomeWindow welcome = new WelcomeWindow();
             welcome.Show();
             this.Close();
         }
         else
         {
             this.Close();
         }
     }
 }
        private void send()
        {
            SockTest b = new SockTest();

            b.name  = NameBox.Text;
            b.phone = PhoneBox.Text;
            b.date  = checkintime.Text;

            if (check1.IsChecked == true)
            {
                b.checkS1 = "true";
                b.tech1   = tech1.Text;
            }
            else
            {
                b.checkS1 = "false";
            }

            if (check2.IsChecked == true)
            {
                b.checkS2 = "true";
                b.tech2   = tech2.Text;
            }
            else
            {
                b.checkS2 = "false";
            }

            if (check3.IsChecked == true)
            {
                b.checkS3 = "true";
                b.tech3   = tech3.Text;
            }
            else
            {
                b.checkS3 = "false";
            }

            if (check4.IsChecked == true)
            {
                b.checkS4 = "true";
                b.tech4   = tech4.Text;
            }
            else
            {
                b.checkS4 = "false";
            }

            if (check5.IsChecked == true)
            {
                b.checkS5 = "true";
                b.tech5   = tech5.Text;
            }
            else
            {
                b.checkS5 = "false";
            }

            if (check6.IsChecked == true)
            {
                b.checkS6 = "true";
                b.tech6   = tech6.Text;
            }
            else
            {
                b.checkS6 = "false";
            }

            client.Send(SerializeData(b));
            MessageBox.Show("CHECK IN DONE. THANK YOU!");
            WelcomeWindow welcome = new WelcomeWindow();

            welcome.Show();
            this.Close();
        }