Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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);
            }
        }