private void tlB2_Click(object sender, EventArgs e) { River river = (River)bindSrcRivers.List[bindSrcRivers.Position]; FRiver ft = new FRiver(river); if (ft.ShowDialog() == DialogResult.OK) { bindSrcRivers.List[bindSrcRivers.Position] = river; } }
private void tlB1_Click(object sender, EventArgs e) { River river = new River(); FRiver fr = new FRiver(river); if (fr.ShowDialog() == DialogResult.OK) { bindSrcRivers.Add(river); } }