Beispiel #1
0
 public void load()
 {
     if (FormDV != null)
     {
         FormDV.CreateDocument();
         documentViewer1.DocumentSource = FormDV;
         documentViewer1.Refresh();
     }
     else if (FormKH != null)
     {
         FormKH.CreateDocument();
         documentViewer1.DocumentSource = FormKH;
         documentViewer1.Refresh();
     }
     else if (FormNV != null)
     {
         FormNV.CreateDocument();
         documentViewer1.DocumentSource = FormNV;
         documentViewer1.Refresh();
     }
     else if (FormPSC != null)
     {
         FormPSC.CreateDocument();
         documentViewer1.DocumentSource = FormPSC;
         documentViewer1.Refresh();
     }
     else if (FormPT != null)
     {
         FormPT.CreateDocument();
         documentViewer1.DocumentSource = FormPT;
         documentViewer1.Refresh();
     }
     else if (FormTB != null)
     {
         FormTB.CreateDocument();
         documentViewer1.DocumentSource = FormTB;
         documentViewer1.Refresh();
     }
     else if (FormDT != null)
     {
         FormDT.CreateDocument();
         documentViewer1.DocumentSource = FormDT;
         documentViewer1.Refresh();
     }
 }