Esempio n. 1
0
 public void Initialize( MainView mainView, Simulation sim )
 {
     mMainView = mainView;
     mSimulation = sim;
 }
Esempio n. 2
0
 // deprecated
 public FileReader( MainView player, int readFreq )
 {
     mMainView = player;
     mReadFrequency = readFreq;
 }
Esempio n. 3
0
        static void Main(String[] args)
        {
            String budgetfile, infile, outfile;
            MainView mv;

            if(args.Length > 0)
            {
                if( args[0] == "-?" || args[0] == "-h" ||
                    args[0] == "--help" || args[0] == "-help" ||
                    args.Length != 3)
                {
                    String help = "Interactive Mode (default): MemoryPlayer.exe\n";
                    help += "Non-Interactive Mode: MemoryPlayer.exe <budget xml file> <infile> <outfile>";
                    MessageBox.Show(help, "MemoryPlayer", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }

                budgetfile = args[0];
                infile = args[1];
                outfile = args[2];
                mv = new MainView(budgetfile, infile, outfile);
                return;
            }
            else
            {
                mv = new MainView();
            }

            // try
            // {
                Application.Run(mv);
            // }
            //            catch(NullReferenceException ex)
            //            {
            //                Console.WriteLine(ex);
            //                Console.WriteLine(ex.StackTrace);
            //            }
            //            catch(Exception ex)
            //            {
            //                Console.WriteLine(ex);
            //            }
        }
Esempio n. 4
0
 public FileReader( int readFreq )
 {
     mMainView = null;
     mReadFrequency = readFreq;
 }