예제 #1
0
        private void btnSaveComputersXML_Click(object sender, EventArgs e)
        {
            try
            {
                lblStatus.Text      = string.Empty;
                lblStatus.ForeColor = Color.Blue;

                computerList.Save();
                lblStatus.Text = "Saved " + computerList.Count + " computers...";
            }
            catch (Exception ex)
            {
                lblStatus.Text      = ex.Message;
                lblStatus.ForeColor = Color.Red;
            }
        }