Ejemplo n.º 1
0
        public void addinfo_Click(object sender, EventArgs e)
        {
            try
            {
                var user = new user
                {
                    BirthDay    = dateTimePicker1.Text,
                    Email       = textBox6.Text,
                    FirstName   = textBox2.Text,
                    LastName    = textBox5.Text,
                    Login       = textBox1.Text,
                    Password    = textBox4.Text,
                    PhoneNumber = maskedTextBox1.Text,
                    Religion    = textBox7.Text
                };

                // Datausers.Users.Add(new user { Index = i });
                Datausers.Users.Add(user);
                i++;
                Mainmenu listForm = new Mainmenu();
                listForm.Show();
                this.Hide();
            }
            catch (ArgumentOutOfRangeException)
            { Close(); }
        }
Ejemplo n.º 2
0
 public INFO(Mainmenu mm)
 {
     InitializeComponent();
     this.mmenu = mm;
 }