private void saveMappings() { PSDB db = new PSDB(); if (!db.saveProcesses(mProcesses)) { MessageBox.Show( "An error occured while saving the mapping", "Save mapping", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }
private void loadMappings() { PSDB db = new PSDB(); PSProcessCollection loadedData = db.loadProcesses(); if (null == loadedData) { if (System.IO.File.Exists(db.mMapFilePath)) { MessageBox.Show( "An error occured trying to load the saved mappings; this usually means corruption.", "Loading saved mapping", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } } else { mProcesses = loadedData; } }