Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        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);
        }