private bool LoadMemoryFile() { bool Result = false; OpenDialog.InitialDirectory = AppDomain.CurrentDomain.BaseDirectory; OpenDialog.Filter = "MemoryExportFile(*.ept)|*.ept"; if (OpenDialog.ShowDialog() == true) { string filepath = OpenDialog.FileName; if (File.Exists(filepath)) { int filelen = (int)IOBinaryOperation.fileLength(filepath); if (filelen != (FinalConst.Len_Sence_Pack * 16 + 16)) { return(false); } MemoryLoadData = IOBinaryOperation.readBinaryFile(filepath, filelen); CoreData.SetMemory(MemoryLoadData); Result = true; } } return(Result); }