Beispiel #1
0
        //-------------------------------------------------------------
        //
        //	Setup() - called when the user has requested to setup
        //			  the plugin instance
        //
        //-------------------------------------------------------------

        public Control Setup()
        {
            // define/create objects
            _dialog = new E131SetupForm();

            // reload all of our xml into working objects
            LoadSetupNodeInfo();

            // if our channels from/to are setup then tell the setupForm
            if (_pluginChannelsFrom != 0 && _pluginChannelsTo != 0)
            {
                _dialog.PluginChannelCount = _pluginChannelsTo - _pluginChannelsFrom + 1;
            }

            // for each universe add it to setup form
            foreach (var uE in _universeTable)
            {
                _dialog.UniverseAdd(uE.Active, uE.Universe, uE.Start + 1, uE.Size, uE.Unicast, uE.Multicast, uE.Ttl);
            }

            _dialog.WarningsOption   = _warningsOption;
            _dialog.StatisticsOption = _statisticsOption;
            _dialog.EventRepeatCount = _eventRepeatCount;


            return(_dialog);
        }
Beispiel #2
0
        public void CloseSetup()
        {
            if (_dialog == null)
            {
                return;
            }

            _dialog.Dispose();
            _dialog = null;
        }
Beispiel #3
0
        //-------------------------------------------------------------
        //
        //    Setup() - called when the user has requested to setup
        //              the plugin instance
        //
        //-------------------------------------------------------------
        public Control Setup()
        {
            // define/create objects
            _dialog = new E131SetupForm();

            // reload all of our xml into working objects
            LoadSetupNodeInfo();

            // if our channels from/to are setup then tell the setupForm
            if (_pluginChannelsFrom != 0 && _pluginChannelsTo != 0) {
                _dialog.PluginChannelCount = _pluginChannelsTo - _pluginChannelsFrom + 1;
            }

            // for each universe add it to setup form
            foreach (var uE in _universeTable) {
                _dialog.UniverseAdd(uE.Active, uE.Universe, uE.Start + 1, uE.Size, uE.Unicast, uE.Multicast, uE.Ttl);
            }

            _dialog.WarningsOption = _warningsOption;
            _dialog.StatisticsOption = _statisticsOption;
            _dialog.EventRepeatCount = _eventRepeatCount;

            return _dialog;
        }
Beispiel #4
0
        public void CloseSetup()
        {
            if (_dialog == null) {
                return;
            }

            _dialog.Dispose();
            _dialog = null;
        }