Exemple #1
0
        private void button_proses_ekle_Click(object sender, EventArgs e)
        {
            Add_Proses addProses = new Add_Proses()
            {
                isUpdate = false
            };

            addProses.ShowDialog();
        }
Exemple #2
0
        private void button_proses_guncelle_Click(object sender, EventArgs e)
        {
            DataGridView Dtg = Items.panelProses.dataGridUst;

            if (Dtg.Rows.Count > 0)
            {
                Add_Proses addProses = new Add_Proses()
                {
                    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(),
                };
                addProses.ShowDialog();
            }
        }