Exemple #1
0
        private void FirstLoginB_Click(object sender, RoutedEventArgs e)
        {
            FirstLoginWindow window = new FirstLoginWindow();

            window.Show();
            this.Close();
        }
 private void RegisterB_Click(object sender, RoutedEventArgs e)
 {
     if (Pass.Password == Pass2.Password)
     {
         List <string> dataList = new List <string>();
         dataList.Add(Username.Text);
         dataList.Add(Pass.Password);
         dataList.Add(Email.Text);
         if (serv.StartCommunication(dataList, ServerConnection.MessageType.Register) == 0)
         {
             FirstLoginWindow window = new FirstLoginWindow();
             window.Show();
             this.Close();
         }
         else
         {
             //MessageBox.Show("Błąd:\nTransmisja nieudana");
         }
     }
     else
     {
         MessageBox.Show("Błąd:\nHasło do siebie nie pasuje");
     }
 }