private void CerrarFormEnPanel <Forms>() where Forms : Form, new() { Form formulario = new Forms(); //formulario = panelContenedor.Controls.OfType<Forms>().FirstOrDefault(); if (!(formulario == null)) { formulario.Close(); } }
public void LoadNewReturnNote(Forms.Project.ReturnNote sopenNote) { sopenNote.Close(); returnNoteToolStripMenuItem_Click(null, null); }
public void LoadnewQoute(Forms.Qoutes.Qoute sopenQoute) { sopenQoute.Close(); qoutesToolStripMenuItem_Click(null, null); }
public void LoadNewPickingSlip(Forms.Project.PickingSlip sopenNote) { sopenNote.Close(); pickingSlipsToolStripMenuItem_Click(null, null); }
public void LoadnewDeliveryNote(Forms.Project.DeliveryNote sopenNote) { sopenNote.Close(); deliveryNoteToolStripMenuItem_Click(null, null); }