Пример #1
0
        private void btnYeniProje_Click(object sender, EventArgs e)
        {
            ProjeEkleDuzenle pED = new ProjeEkleDuzenle();

            if (pED.ShowDialog() == DialogResult.OK)
            {
                projeEntity = pED.getProje();
                if (!new ProjeDAO().existingControl(projeEntity))
                {
                    projeEntity.Active  = true;
                    projeEntity.InsDate = DateTime.Now;
                    try
                    {
                        new ProjeDAOBase().Save(projeEntity);
                        MessageBox.Show("Kaydedildi");
                        gridDoldur();
                    }
                    catch (Exception) { }
                }
                else
                {
                    MessageBox.Show("Mevcut proje");
                }
            }
        }