/// <summary> /// luu vao xml /// </summary> private void Save() { try { Common.Utilities com = new Common.Utilities(); string links = Application.StartupPath + @"\Config.xml"; com.DeleteFile(links); if (com.CheckFile(links) == false) { Boolean trave = com.Save(txtServerName.Text, txtTenDangNhap.Text, txtMatKhau.Text, txtDatabaseName.Text); if (trave) { loginOK(); } else { MessageBox.Show("Chưa lưu lại"); } } else { loginOK(); } } catch { } }