コード例 #1
0
        private void button_protez_ekle_Click(object sender, EventArgs e)
        {
            Add_Protez addProtez = new Add_Protez()
            {
                isUpdate = false
            };

            addProtez.ShowDialog();
        }
コード例 #2
0
        private void button_protez_guncelle_Click(object sender, EventArgs e)
        {
            DataGridView Dtg = Items.panelProtez.dataGridUst;

            if (Dtg.Rows.Count > 0)
            {
                Add_Protez addProtez = new Add_Protez()
                {
                    isUpdate      = true,
                    _SelectedId   = Dtg.Rows[Dtg.CurrentCell.RowIndex].Cells["Id"].Value.ToString(),
                    _SelectedKod  = Dtg.Rows[Dtg.CurrentCell.RowIndex].Cells["Kod"].Value.ToString(),
                    _SelectedIsim = Dtg.Rows[Dtg.CurrentCell.RowIndex].Cells["İsim"].Value.ToString()
                };
                addProtez.ShowDialog();
            }
        }