Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            StartupModes mode = StartupModes.Sample;

            if (args != null && args.Length > 0)
            {
                mode = StartupModes.UDP;
            }
            RegisterServices();

            var logger = ServiceProvider.Get <IAppLogger>()
                         .Configure(typeof(Program))
                         .GlobalConfig(LogLevel.Debug);

            try
            {
                if (mode == StartupModes.Sample)
                {
                    new SampleModeRunner().Run(args);
                }
                else
                {
                    new UdpModeRunner().Run(args);
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex.Message);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Erzeugt as Hauptfenster.
        /// </summary>
        /// <param name="profile">Die zu verwendene lokale DVB.NET Hardware.</param>
        /// <param name="mode">Operationsmodus der Anwendung.</param>
        /// <param name="args">Parameter zum Operationsmodus der Anwendung.</param>
        public ViewerMain(Profile profile, StartupModes mode, params string[] args)
        {
            // Remember
            m_Arguments = args;
            Profile     = profile;
            m_Mode      = mode;

            // Create components
            InitializeComponent();

            // Attach to viewer
            IViewerSite viewer = (IViewerSite)theViewer;

            // Register additional keys - to be kept we must do this before SetSite fixes the map
            viewer.SetKeyHandler(Keys.J, ProcessFullScreen);
            viewer.SetKeyHandler(Keys.End, Close);

            // Connect viewer control to configuration
            theViewer.SetSite(this);

            // Prepare to show
            SetBounds();
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Erzeugt das Hauptfenster, wenn die Anwendung ohne Zugriff auf die
 /// lokale Hardware gestartet wird.
 /// </summary>
 /// <param name="mode">Operationsmodus der Anwendung.</param>
 /// <param name="args">Parameter zum Operationsmodus der Anwendung.</param>
 public ViewerMain(StartupModes mode, params string[] args)
     : this(null, mode, args)
 {
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Erzeugt das Hauptfenster, wenn die Anwendung ohne Zugriff auf die
 /// lokale Hardware gestartet wird.
 /// </summary>
 /// <param name="mode">Operationsmodus der Anwendung.</param>
 /// <param name="args">Parameter zum Operationsmodus der Anwendung.</param>
 public ViewerMain( StartupModes mode, params string[] args )
     : this( null, mode, args )
 {
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Erzeugt as Hauptfenster.
        /// </summary>
        /// <param name="profile">Die zu verwendene lokale DVB.NET Hardware.</param>
        /// <param name="mode">Operationsmodus der Anwendung.</param>
        /// <param name="args">Parameter zum Operationsmodus der Anwendung.</param>
        public ViewerMain( Profile profile, StartupModes mode, params string[] args )
        {
            // Remember
            m_Arguments = args;
            Profile = profile;
            m_Mode = mode;

            // Create components
            InitializeComponent();

            // Attach to viewer
            IViewerSite viewer = (IViewerSite) theViewer;

            // Register additional keys - to be kept we must do this before SetSite fixes the map
            viewer.SetKeyHandler( Keys.J, ProcessFullScreen );
            viewer.SetKeyHandler( Keys.End, Close );

            // Connect viewer control to configuration
            theViewer.SetSite( this );

            // Prepare to show
            SetBounds();
        }