private void DataPaketleme_CellClick_1(object sender, DataGridViewCellEventArgs e) { row = (DataPaketleme.CurrentRow.Cells[6].Value).ToString(); Temp = paketlemeOperation.FindUretimNo(int.Parse(row)); PaketlemeEkle guncelle = new PaketlemeEkle(yetkili, (Entites.Machine.PaketlemeMakine)Temp); guncelle.MdiParent = this.MdiParent; guncelle.Show(); }
private void paketlemeMakinesiToolStripMenuItem_Click(object sender, EventArgs e) { Form kontrol = Application.OpenForms["PaketlemeEkle"]; if (kontrol == null) { PaketlemeEkle acılan = new PaketlemeEkle(yetkili); acılan.MdiParent = this; acılan.StartPosition = FormStartPosition.CenterParent; AnaPanel.Controls.Add(acılan); acılan.Show(); } else { Temp = Application.OpenForms["PaketlemeEkle"]; Temp.Focus(); } }