Ejemplo n.º 1
0
        private void MenuYeniKayit_Click(object sender, EventArgs e)
        {
            if (this.ParentForm?.Name != "MainForm")
            {
                return;
            }

            Forms.PlantForm form = new Forms.PlantForm();
            form.Tablo = Table;
            form.ShowDialog();
        }
Ejemplo n.º 2
0
        public void PlantUpdate()
        {
            if (this.ParentForm?.Name != "MainForm")
            {
                return;
            }
            List <int> idler = new List <int>();

            foreach (DataGridViewRow dr in dtgDataView.SelectedRows)
            {
                idler.Add(Convert.ToInt32(dr.Cells[0].Value));
            }

            if (idler.Count <= 0)
            {
                return;
            }

            PlantForm form = new Forms.PlantForm(new herbariumEntities().plant.Find(idler[0]), Table);

            form.ShowDialog();
        }