private static bool LoadFile(MainWindow window, string file) { if (FileUtility.IsSupportedFile(file) && File.Exists(file)) { window.OpenLocalPackage(file); return true; } else { return false; } }