private void btnSelect_Click(object sender, EventArgs e) { if (bdgUsers.Current == null) return; UserForm uf = new UserForm((user)bdgUsers.Current); desk.AddTab(uf, "Edição de Usuário", true); }
private void btnNewUser_ItemClick(object sender, ItemClickEventArgs e) { UserForm uf = new UserForm(null); AddTab(uf, "Novo Usuário", false); }