Exemplo n.º 1
0
 public static void SetServerIpAndPort()
 {
     string[] ipAndPort = new FrameCommonClient.ParameterInfoClient().GetTwoValue(ParameterInfoClient.IMServer);
     if (ipAndPort != null && ipAndPort.Length == 2)
     {
         serverIP = ipAndPort[0];
         int.TryParse(ipAndPort[1], out Port);
     }
 }
Exemplo n.º 2
0
 public MainForm()
 {
     InitializeComponent();
     //获取服务器IM服务器ip和端口号
     string[] ipAndPort = new FrameCommonClient.ParameterInfoClient().GetTwoValue(ParameterInfoClient.IMServer);
     if (ipAndPort != null && ipAndPort.Length == 2)
     {
         txtIP.Text   = ipAndPort[0];
         txtPort.Text = ipAndPort[1];
     }
     txtLog.Text += Environment.NewLine;
 }