示例#1
0
        private void UsersForm_Load(object sender, EventArgs e)
        {
            UserDa.Fill(UserDt);
            UserBs.DataSource = UserDt;

            UsersDataGridView.DataSource = UserBs;
            this.UsersDataGridView.Columns["Password"].Visible = false;
            this.UsersDataGridView.Columns["ID"].Visible       = false;

            DataInterface.BindObjects(pnUsers, UserBs);
        }
        private void FormTypeForm_Load(object sender, EventArgs e)
        {
            ResetControls();

            //FormTypeDa.Fill(FormTypeDt);
            FormTypeDa.Fill(FormTypeDs.tblFormType);

            loadInitialData();

            DataInterface.BindObjects(MainTableLayoutPanel, FormTypeBs);
        }