Beispiel #1
0
        public override void OnSave(ConfigNode node)
        {
            if (_processedItem != null)
            {
                var itemNode = node.AddNode("ProcessedItem");
                _processedItem.Save(itemNode);

                var blueprintNode = node.AddNode("ProcessedBlueprint");
                _processedBlueprint.Save(blueprintNode);
            }

            var queueNode = node.AddNode("Queue");

            _queue.Save(queueNode);

            base.OnSave(node);
        }
Beispiel #2
0
        public override void OnSave(ConfigNode node)
        {
            node.AddValue("progress", progress);
            node.AddValue("lastUpdateTime", lastUpdateTime);

            if (_processedItem != null)
            {
                var itemNode = node.AddNode("ProcessedItem");
                _processedItem.Save(itemNode);

                var blueprintNode = node.AddNode("ProcessedBlueprint");
                _processedBlueprint.Save(blueprintNode);
            }

            var queueNode = node.AddNode("Queue");

            _queue.Save(queueNode);

            base.OnSave(node);
        }
        public override void OnSave(ConfigNode node)
        {
            node.SetValue("progress", progress, true);
            node.SetValue("lastUpdateTime", lastUpdateTime, true);
            if (!string.IsNullOrEmpty("KACAlarmID"))
            {
                node.SetValue("KACAlarmID", KACAlarmID, true);
            }

            if (_processedItem != null)
            {
                var itemNode = node.AddNode("ProcessedItem");
                _processedItem.Save(itemNode);

                var blueprintNode = node.AddNode("ProcessedBlueprint");
                _processedBlueprint.Save(blueprintNode);
            }

            var queueNode = node.AddNode("Queue");

            _queue.Save(queueNode);

            base.OnSave(node);
        }