Пример #1
0
        private void btnUser_Click(object sender, EventArgs e)
        {
            TestManager tm = new TestManager();

            OEEntity.User us = new OEEntity.User();
            us.name     = txtLName.Text;
            us.login    = txtLName.Text;
            us.password = txtPass.Text;
            tm.AddUser(us);
            MessageBox.Show("User Added");
        }
Пример #2
0
        public List <OEEntity.User> GetUsers()
        {
            OEEntity.User        u;
            List <OEEntity.User> ulist = new List <User>();

            OEEntity.DataSets.OE.UserDataTable udt = mydataset.User;

            foreach (OEEntity.DataSets.OE.UserRow item in udt.Rows)
            {
                u          = new OEEntity.User();
                u.uid      = item.uid;
                u.name     = item.name;
                u.login    = item.login;
                u.password = item.password;

                ulist.Add(u);
            }
            return(ulist);
        }
Пример #3
0
 public void AddUser(OEEntity.User us)
 {
     taUs.AddUser(us.name, us.login, us.password);
     // mydataset.User.AddUserRow(1,us.name, us.login, us.password);
 }