public void init(TaskAdderInterface taskadder)
        {
            tai          = taskadder;
            lasttime     = DateTime.Now;
            logPointTime = DateTime.Now;
            configdata   = configs.Load("Restream.config");

            readloop = new Thread(new ThreadStart(ReadingLoop));
            readloop.Start();
        }
        public static configs Load(Stream stream)
        {
            configs configData = null;

            try
            {
                System.Xml.Serialization.XmlSerializer xs = new XmlSerializer(typeof(configs));
                configData = xs.Deserialize(stream) as configs;
            }
            catch { }

            return(configData != null ? configData : new configs());
        }