private void btnInsert_Click(object sender, EventArgs e) { UI.Architects.frmArchitectsAdd insert = new UI.Architects.frmArchitectsAdd(); insert.ShowDialog(); Business.Architects Architects = new Business.Architects(); dataGridView1.AutoGenerateColumns = true; dataGridView1.DataSource = Architects.read(); MessageBox.Show("ثبت با موفقیت انجام شد", "اطلاع"); }
private void frmArchitectsList_Load(object sender, EventArgs e) { Business.Architects Architects = new Business.Architects(); dataGridView1.AutoGenerateColumns = true; dataGridView1.DataSource = Architects.read(); }