Exemplo 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();
        }
Exemplo n.º 2
0
        public override TitleBarTab CreateTab()
        {
            var form = new PlantForm();

            form.Tablo = MainForm.Table;
            form.Text  = "Bitki Ekle";

            return(new TitleBarTab(this)
            {
                Content = form
            });
        }
Exemplo n.º 3
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();
        }