tuan6956

Untitled

Aug 9th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.29 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace WindowsFormsApplication3
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         public Form1()
  16.         {
  17.             InitializeComponent();
  18.         }
  19.  
  20.        
  21.  
  22.         private void Form1_Load(object sender, EventArgs e)
  23.         {
  24.  
  25.  
  26.         }
  27.  
  28.         private void button1_Click(object sender, EventArgs e)
  29.         {
  30.  
  31.         }
  32.         public void Loc_ssh_loi()
  33.         {
  34.         string[] danh_sach_nhap_vao = sshvao.Text.Trim().Split(new string[] { Environment.NewLine }, StringSplitOptions.None);
  35.             for (int i = 0; i < danh_sach_nhap_vao.Length; i++)
  36.             {
  37.                 //MessageBox.Show(" Đã thực hiện xong");
  38.                 string ssh = danh_sach_nhap_vao[i];
  39.                 if (string.IsNullOrEmpty(ssh) == false)
  40.                 {
  41.                     string[] ssh_nhap_vao = ssh.Split('|');
  42.                     if (ssh_nhap_vao.Length >3)
  43.                     {
  44.                         sshra.Text += ssh+Environment.NewLine;
  45.                     }
  46.                    
  47.  
  48.                 }
  49.             }
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment