private void button4_Click(object sender, RoutedEventArgs e) { string ip = textip.Text; string name = textName.Text; string pass = passwordBox.Password; Client = new InteropManage(); Client.set_server(ip, 0, name, pass); Client.Conect(); }
private void button_Click(object sender, RoutedEventArgs e) { /* * var array = new IntPtr[100]; * //array[0] = new IntPtr(23); * array[1] = new IntPtr(45); * array[2] = new IntPtr(55); * var length = array.Length; * int len = ManagerDll.GetActiveUsers(array); * string test1 = Marshal.PtrToStringAnsi(array[0]); * string test2 = Marshal.PtrToStringAnsi(array[1]); */ Client = new InteropManage(); //Client.set_server("127.0.0.1", 0, "Andry", "Andry00"); Client.set_server("192.168.43.83", 0, "Andry", "Andry00"); Client.Conect(); //List<string> list = Client.list_user(); //Client.SendMessage("test", "hi it i"); //string text = Client.ReceiveMessage(); //string text1 = Client.ReceiveMessage(); }