示例#1
0
文件: Form2.cs 项目: total1gnor/-
        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(); }
        }
示例#2
0
文件: Form2.cs 项目: total1gnor/-
 public INFO(Mainmenu mm)
 {
     InitializeComponent();
     this.mmenu = mm;
 }