示例#1
0
        public override PackagedCommands <TVisualizer> NextCommand(double newTime)
        {
            var    commands  = new CommandSet <TVisualizer>(br, factory);
            var    graphData = graphInterface.GetData();
            double time      = br.ReadDouble();

            shouldContinue = br.ReadBoolean();
            return(new PackagedCommands <TVisualizer>(commands, graphData, time));
        }
        public override PackagedCommands <TVisualizer> NextCommand(double newTime)
        {
            if (DongUtility.FileUtilities.IsEndOfFile(br))
            {
                return(null);
            }
            var    commands  = new CommandSet <TVisualizer>(br, factory);
            var    graphData = graphInterface.GetData();
            double time      = br.ReadDouble();

            shouldContinue = br.ReadBoolean();
            return(new PackagedCommands <TVisualizer>(commands, graphData, time));
        }