private void SaveBtn_Click(object sender, EventArgs e) { history = MessageShow.Text; historytime = string.Join("/", li); SaveXml saveXml = new SaveXml(); saveXml.SetFolder(); saveXml.SetXml(); }
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(); } }