Ejemplo n.º 1
0
        public MainWindow()
        {
            //ObservableCollection<LittleCloudModels.Models.Member> list = new ObservableCollection<LittleCloudModels.Models.Member>();
            //list.Add(new LittleCloudModels.Models.Member()
            //{
            //    IsLogin = true,
            //    Passwd = "asdf",
            //    UserID = "asdfasdf"
            //});
            //list.Add(new LittleCloudModels.Models.Member()
            //{
            //    IsLogin = true,
            //    Passwd = "asdf",
            //    UserID = "asdfasdf"
            //});

            //var test = Libraries.XmlSerializer.Serialize<ObservableCollection<LittleCloudModels.Models.Member>>(list);

            //var test2 = Libraries.XmlSerializer.Deserial<ObservableCollection<LittleCloudModels.Models.Member>>(test);

            //var test = LittleCloudServer.Models.DAO.getFriends();

            //ObservableCollection<LittleCloudModels.Models.Member> list = new ObservableCollection<LittleCloudModels.Models.Member>();
            //list.Add(new LittleCloudModels.Models.Member()
            //{
            //    IsLogin = true,
            //    Passwd = "asdf",
            //    UserID = "1"
            //});
            //list.Add(new LittleCloudModels.Models.Member()
            //{
            //    IsLogin = true,
            //    Passwd = "asdf",
            //    UserID = "2"
            //});

            //DAO.StartChat(list);

            InitializeComponent();

            Client client = new Client();

            //client.ConnectToServer("localhost", 64090);



            client.SendData(new byte[123111011]);
        }