コード例 #1
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            HPS.BLL.CompanyBLL.BLLCompany_TKeys CompanyKey = new HPS.BLL.CompanyBLL.BLLCompany_TKeys();
            CompanyKey.CompanyID_int = (Int32)this.CompanyGridView.CurrentRow.Cells["colCompanyID_int"].Value;
            CompanyEntityForm Company = new CompanyEntityForm(BaseEntityForm1.enmState.Edit, (DataTable)this.CompanyGridView.DataSource, CompanyKey);

            Company.ShowDialog();
        }
コード例 #2
0
        private void NewButton_Click(object sender, EventArgs e)
        {
            CompanyEntityForm Company = new CompanyEntityForm((DataTable)this.CompanyGridView.DataSource);

            Company.ShowDialog();
        }