Ejemplo n.º 1
0
        public MainView()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            mLogic = new MemoryPlayerLogic(true, this, memoryViewControl);

            memoryViewControl.CategoryList.Items.Add(
                mLogic.MemoryLogItems.Categories.GetDefaultCategory(), true);
            memoryViewControl.CategoryList.ItemCheck += new ItemCheckEventHandler( CategoryList_itemCheck );

            memoryViewControl.LabelLogChanged += new EventHandler( LabelLog_SelectedIndexChanged );
            memoryViewControl.CategoriesChanged += new EventHandler( Categories_SelectedIndexChanged );

            SetPlayButtonImage();
            ResetUndo();
        }
Ejemplo n.º 2
0
 public MainView(String budgetfile, String infile, String outfile)
 {
     mLogic = new MemoryPlayerLogic(false, null, null);
     mLogic.ReadHeapBudget(budgetfile);
     bool success = mLogic.ReadFile(infile);
     if(success)
     {
         mLogic.MemorySimulation.MoveTo(mLogic.MemoryLogItems.Count - 1);
         mLogic.WriteFile(infile, outfile);
     }
 }