private void DataMeç_CellClick(object sender, DataGridViewCellEventArgs e) { row = (DataMeç.CurrentRow.Cells[6].Value).ToString(); Temp = mecOperation.FindUretimNo(int.Parse(row)); MecMakineEkle guncelle = new MecMakineEkle(yetkili, (Entites.Machine.MecMakine)Temp); guncelle.MdiParent = this.MdiParent; guncelle.Show(); }
private void meçMakinesiToolStripMenuItem_Click(object sender, EventArgs e) { Form kontrol = Application.OpenForms["MecMakineEkle"]; if (kontrol == null) { MecMakineEkle acılan = new MecMakineEkle(yetkili); acılan.MdiParent = this; acılan.StartPosition = FormStartPosition.CenterParent; AnaPanel.Controls.Add(acılan); acılan.Show(); } else { Temp = Application.OpenForms["MecMakineEkle"]; Temp.Focus(); } }