Beispiel #1
0
        private void CerrarFormEnPanel <Forms>() where Forms : Form, new()
        {
            Form formulario = new Forms();

            //formulario = panelContenedor.Controls.OfType<Forms>().FirstOrDefault();

            if (!(formulario == null))
            {
                formulario.Close();
            }
        }
Beispiel #2
0
 public void LoadNewReturnNote(Forms.Project.ReturnNote sopenNote)
 {
     sopenNote.Close();
     returnNoteToolStripMenuItem_Click(null, null);
 }
Beispiel #3
0
 public void LoadnewQoute(Forms.Qoutes.Qoute sopenQoute)
 {
     sopenQoute.Close();
     qoutesToolStripMenuItem_Click(null, null);
 }
Beispiel #4
0
 public void LoadNewPickingSlip(Forms.Project.PickingSlip sopenNote)
 {
     sopenNote.Close();
     pickingSlipsToolStripMenuItem_Click(null, null);
 }
Beispiel #5
0
 public void LoadnewDeliveryNote(Forms.Project.DeliveryNote sopenNote)
 {
     sopenNote.Close();
     deliveryNoteToolStripMenuItem_Click(null, null);
 }