Beispiel #1
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Interval = (1000 * 60 * 5);
            SaveXml saveXml = new SaveXml();

            saveXml.SetFolder();
            saveXml.AutoSetXml();
        }
Beispiel #2
0
        private void okbtn_Click(object sender, EventArgs e)
        {
            fileName = textBox1.Text + "/" + textBox2.Text;
            SaveXml saveXml = new SaveXml();

            sss = saveXml.ReadXml(fileName);
            Close();
        }
Beispiel #3
0
        private void SaveBtn_Click(object sender, EventArgs e)
        {
            history     = MessageShow.Text;
            historytime = string.Join("/", li);

            SaveXml saveXml = new SaveXml();

            saveXml.SetFolder();
            saveXml.SetXml();
        }
Beispiel #4
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();
     }
 }