예제 #1
0
        public void LoadServiceList(string filename, ref ServiceList lService)
        {
            BinaryFormatter bf = new BinaryFormatter();
            FileStream      fs = new FileStream
                                     (filename, FileMode.Open, FileAccess.Read);

            lService = (ServiceList)bf.Deserialize(fs);
            fs.Close();
        }
예제 #2
0
 public DB()
 {
     LService = new ServiceList();
     LTunnel  = new TunnelList();
 }