Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            UP = new DataCenter();
            //     UP.connect("127.0.0.1");
            EA = new ElevApp();

            FileStream   fs = new FileStream("IP.txt", FileMode.Open, FileAccess.Read);
            StreamReader sr = new StreamReader(fs);
            string       ip = sr.ReadLine();

            Console.WriteLine(ip);
            UP.connect(ip);

            sr.Close();
            fs.Close();
        }