/// <summary> /// Processes the default path arguments /// </summary> private void LoadCommandsFile() { this.commands = new Commands(); String filename = Path.Combine(PathHelper.AppDir, "FirstRun.fdb"); Object obj = ObjectSerializer.Deserialize(filename, this.commands); this.commands = (Commands)obj; }
/// <summary> /// Checks if we should process the commands /// </summary> public static Boolean ShouldProcessCommands() { Commands commands = new Commands(); String filename = Path.Combine(PathHelper.AppDir, "FirstRun.fdb"); if (File.Exists(filename)) { commands = (Commands)ObjectSerializer.Deserialize(filename, commands); if (commands.LatestCommand > Globals.Settings.LatestCommand) return true; else return false; } else return false; }
/// <summary> /// Checks if we should process the commands /// </summary> public static Boolean ShouldProcessCommands() { Commands commands = new Commands(); String filename = Path.Combine(PathHelper.AppDir, "FirstRun.fdb"); if (File.Exists(filename)) { commands = (Commands)ObjectSerializer.Deserialize(filename, commands); if (commands.LatestCommand > Globals.Settings.LatestCommand) return true; else return false; } else return false; }
/// <summary> /// Processes the default path arguments /// </summary> private void LoadCommandsFile() { this.commands = new Commands(); String filename = Path.Combine(PathHelper.AppDir, "FirstRun.fdb"); Object obj = ObjectSerializer.Deserialize(filename, this.commands); this.commands = (Commands)obj; }