public bool LoadCrackConfiguration(string DestinationPath) { bool sucess = false; if(File.Exists(DestinationPath)) { Stream FileStream = File.OpenRead(DestinationPath); try { mConfiguration = (CrackConfiguration)CrackConfigSerializer.Deserialize(FileStream); sucess = true; } catch { sucess = false; } finally { FileStream.Close(); } } else { throw new System.IO.FileNotFoundException(); } return sucess; }
public bool LoadCrackConfiguration(string DestinationPath) { bool sucess = false; if (File.Exists(DestinationPath)) { Stream FileStream = File.OpenRead(DestinationPath); try { mConfiguration = (CrackConfiguration)CrackConfigSerializer.Deserialize(FileStream); sucess = true; } catch { sucess = false; } finally { FileStream.Close(); } } else { throw new System.IO.FileNotFoundException(); } return(sucess); }