private void btnEdit_Click(object sender, EventArgs e) { CPU cpu = (CPU)bindSrcCPU.List[bindSrcCPU.Position]; fCPU ft = new fCPU(cpu); if (ft.ShowDialog() == DialogResult.OK) { bindSrcCPU.List[bindSrcCPU.Position] = cpu; } }
private void btnAdd_Click(object sender, EventArgs e) { CPU cpu = new CPU(); fCPU ft = new fCPU(cpu); if (ft.ShowDialog() == DialogResult.OK) { bindSrcCPU.Add(cpu); } }