1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace zadanie2
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- string firstName = textBox1.Text;
- string lastName = textBox2.Text;
- string password = textBox3.Text;
- User user = new User();
- user.FirstName = firstName;
- user.LastName = lastName;
- user.Password = password;
- bool isRegistered = RegisterUser(user);
- if (isRegistered)
- {
- MessageBox.Show("Вы успешно зарегестрировались");
- ClearForm();
- }
- else
- {
- MessageBox.Show("Не удалось зарегестрироваться, попробуйте позже");
- }
- }
- private bool RegisterUser(User user)
- {
- throw new NotImplementedException();
- }
- private void ClearForm()
- {
- throw new NotImplementedException();
- }
- }
- }
|