Esempio n. 1
0
        private void SaveBtn_Click(object sender, EventArgs e)
        {
            history     = MessageShow.Text;
            historytime = string.Join("/", li);

            SaveXml saveXml = new SaveXml();

            saveXml.SetFolder();
            saveXml.SetXml();
        }
Esempio n. 2
0
 private void CloseBtn_Click(object sender, EventArgs e)
 {
     try
     {
         if (onlineStatus)
         {
             UdpChat.SendMessage("Offline");
             UdpChat.ReceiveClose();
         }
         else
         {
         }
     }
     catch (Exception)
     {
     }
     finally {
         SaveXml saveXml = new SaveXml();
         saveXml.SetXml();
         this.Close();
     }
 }