Beispiel #1
0
        /// <summary>
        /// Benutzt ein vorgefertigtes Interface. Siehe <see cref="stdOut">stdOut</see> und <see cref="StdOutInterfaces">StdOutInterfaces</see>
        /// </summary>
        /// <param name="pPredefinedInterface">Interfaceidentifikation (siehe <see cref="StdOutInterfaces">StdOutInterfaces</see>)</param>
        /// <example>siehe <see cref="stdOut">stdOut</see></example>
        public static void SetInterface(StdOutInterfaces pPredefinedInterface)
        {
            switch (pPredefinedInterface)
            {
            case StdOutInterfaces.Console:
                StdOutInterfaceConsole ifc = new StdOutInterfaceConsole();
                SetInterface(ifc);
                break;

            case StdOutInterfaces.WindowsForm:
                StdOutInterfaceForm ifc2 = new StdOutInterfaceForm();
                SetInterface(ifc2);
                if (printDebug)
                {
                    ifc2.Show();                             // Automatisch anzeigen
                }
                break;

            case StdOutInterfaces.Mute:
                SetInterface(null);                         // alles schlucken
                break;

            default:
                StdOutInterfaceConsole ifc3 = new StdOutInterfaceConsole();
                SetInterface(ifc3);
                break;
            }
        }
Beispiel #2
0
 /// <summary>
 /// Benutzt ein vorgefertigtes Interface. Siehe <see cref="stdOut">stdOut</see> und <see cref="StdOutInterfaces">StdOutInterfaces</see>
 /// </summary>
 /// <param name="pPredefinedInterface">Interfaceidentifikation (siehe <see cref="StdOutInterfaces">StdOutInterfaces</see>)</param>
 /// <example>siehe <see cref="stdOut">stdOut</see></example>
 public static void SetInterface(StdOutInterfaces pPredefinedInterface)
 {
     switch(pPredefinedInterface)
     {
         case StdOutInterfaces.Console:
             StdOutInterfaceConsole ifc = new StdOutInterfaceConsole();
             SetInterface(ifc);
             break;
         case StdOutInterfaces.WindowsForm:
             StdOutInterfaceForm ifc2 = new StdOutInterfaceForm();
             SetInterface(ifc2);
             if(printDebug)
             {
                 ifc2.Show(); // Automatisch anzeigen
             }
             break;
         case StdOutInterfaces.Mute:
             SetInterface(null); // alles schlucken
             break;
         default:
             StdOutInterfaceConsole ifc3 = new StdOutInterfaceConsole();
             SetInterface(ifc3);
             break;
     }
 }