Ejemplo n.º 1
0
 protected virtual void OnAddItem(object sender, System.EventArgs e)
 {
     int i = _dataGrid.Items.Count;
     User user = new User();
     user.Username = "******" + DateTime.Now;
     user.Password = "******";
     user.Desk = i;
     _dataGrid.Items.Add(user);
 }
Ejemplo n.º 2
0
        private void addUsers()
        {
            User user1 = new User();
            user1.Username = "******";
            user1.Desk = 540;
            user1.Email = "*****@*****.**";
            user1.Password = "******";

            User user2 = new User();
            user2.Username = "******";
            user2.Desk = 143;
            user2.Email = "*****@*****.**";
            user2.Password = "******";
            bindableUser2 = new BindableWrapper<User>(user2);
            Logger.GetInstance().WriteLine("gonna insert:" + _dataGrid.Items);
            _dataGrid.Items.Add(user1);
            _dataGrid.Items.Add(bindableUser2.Data.BusinessObj);
        }
Ejemplo n.º 3
0
        private void createGroup()
        {
            User user1 = new User();
            user1.Username = "******";
            user1.Desk = 50;
            user1.Email = "*****@*****.**";
            user1.Password = "******";

            User user2 = new User();
            user2.Username = "******";
            user2.Desk = 43;
            user2.Email = "*****@*****.**";
            user2.Password = "******";

            _group = new GroupAwareUsers();
            _group.Name = "test";
            _group.Users.Add(user1);
            _group.Users.Add(user2);
        }
Ejemplo n.º 4
0
        private void addUsers()
        {
            User user1 = new User();
            user1.Username = "******";
            user1.Desk = 540;
            user1.Email = "*****@*****.**";
            user1.Password = "******";

            User user2 = new User();
            user2.Username = "******";
            user2.Desk = 143;
            user2.Email = "*****@*****.**";
            user2.Password = "******";

            _group.Users.Add(user1);
            _group.Users.Add(user2);
        }
Ejemplo n.º 5
0
        private void addUsers()
        {
            User user1 = new User();
            user1.Username = "******";
            user1.Desk = 540;
            user1.Email = "*****@*****.**";
            user1.Password = "******";

            User user2 = new User();
            user2.Username = "******";
            user2.Desk = 143;
            user2.Email = "*****@*****.**";
            user2.Password = "******";
            bindableUser2 = new BindableWrapper<User>(user2);
            _combo.Items.Add(user1);
            _combo.Items.Add(bindableUser2.Data.BusinessObj);
        }
Ejemplo n.º 6
0
 protected virtual void OnAdd(object sender, System.EventArgs e)
 {
     User user = new User();
     user.Username = "******";
     _combo.Items.Add(user);
 }