public SpOrgAddChangeForm() { this.m_SpOrg = new SpOrg(); this.InitializeComponent(); }
public SpOrgAddChangeForm(SpOrg spOrg) : this() { this.m_SpOrg = spOrg; }
private void btnAdd_Click(object sender, System.EventArgs e) { SpOrg spOrg = new SpOrg(); new SpOrgAddChangeForm(spOrg).ShowDialog(this); this.bsSpOrg.set_DataSource(SpOrg.FindAll()); foreach (System.Windows.Forms.DataGridViewRow row in (System.Collections.IEnumerable) this.dataGridView1.Rows) { row.Cells.get_Item(2).set_Value(System.Convert.ToDecimal(row.Cells.get_Item(2).get_Value()) * 100M); } this.bsSpOrg.set_Position(this.bsSpOrg.IndexOf(spOrg)); }