Exemplo n.º 1
0
        //修改属性

        /*private void mustate(string GID,string groupname,string sign)
         * {
         *  foreach (ListViewItem item in this.lv_group.Items)
         *  {
         *      if (item.Text == GID)
         *      {
         *          item.SubItems[1].Text = groupname;
         *          item.SubItems[4].Text = sign;
         *      }
         *  }
         * }
         * private void state(string UID,string username,string sign)
         * {
         *
         * }*/
        //关闭窗口
        private void list_FormClosed(object sender, FormClosedEventArgs e)
        {
            try
            {
                string sendmsg = "logout#" + UID;
                Bw.Write(sendmsg);
                Bw.Flush();
                iswork = false;
                Br.Close();
                Bw.Close();
            }
            catch
            { }
            Application.Exit();
        }
Exemplo n.º 2
0
 public void Close()
 {
     Br.Close();
     Bw.Close();
     Client.Close();
 }
Exemplo n.º 3
0
 public void Close()
 {
     Br.Close();
     Bw.Close();
 }