public static bool DeSerializationProc() { Temp_GetFile_Data list = SaveData_ImportData.ImportData(); //if (System.IO.File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\CSVSettings.dbDECTEST")) System.IO.File.Delete(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\CSVSettings.dbDECTEST"); GetFiles_Data.dest_AddressFolder = list.dest_AddressFolder; GetFiles_Data.GetAddress = list.GetAddress; GetFiles_Data.GridData = list.GridData; return(true); }
} = null; // destination folder that files would copy there each second ... #endregion /// <summary> /// saving data into a file according binary format and it's encrypting it too ... "Serialization USED" /// </summary> /// <param name="Information">Using Generic Collection type of String variable ...</param> /// <returns>Returns True if there was not any problem ...</returns> public static void SaveDataGridViewData(List <string> Information) { GridData.Clear(); GridData = (Information); if (dest_AddressFolder != "" && dest_AddressFolder != " " && System.IO.Directory.Exists(dest_AddressFolder) && !string.IsNullOrWhiteSpace(dest_AddressFolder) && !string.IsNullOrEmpty(dest_AddressFolder)) { if (GridData.Count > 0 || GetAddress.Count > 0) { if (SaveData_ImportData.SaveData() == true) { System.Windows.Forms.MessageBox.Show("Settings saved succesfullu ... \nPath:\t" + Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\" + "CSVSettings.db", "Info", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information); } } } }