12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using HslCommunication;
- using HslCommunication.Enthernet;
- namespace GarnetClient
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- NetSimplifyClient client;
- private void button1_Click(object sender, EventArgs e)
- {
- client = new NetSimplifyClient();
- client.IpAddress = "127.0.0.1";
- client.Port = 6379;
- var rev = client.ConnectServer();
- if (!rev.IsSuccess)
- {
- MessageBox.Show($"{rev.Message}");
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
-
- }
- private void button4_Click(object sender, EventArgs e)
- {
- NetHandle netHandle = new NetHandle();
- }
- }
- }
|