Esempio n. 1
0
 public DisplayControl()
 {
     InitializeComponent();
     this.machine      = null;
     processorsList    = new List <ProcessorView>();
     memoryRows        = new Dictionary <string, List <MemoryCellView> >();
     this.Loaded      += new RoutedEventHandler(DisplayControl_Loaded);
     this.SizeChanged += (o, e) =>
     {
         // this.Width = this.ActualWidth;
         //this.Height = this.ActualHeight;
         Dispatcher.BeginInvoke(DispatcherPriority.Background, (Action) delegate()
         {
             if (machineStarted)
             {
                 drawAllArrows();
             }
         });
     };
 }
Esempio n. 2
0
 public MainWindow(IPRAMMachine PRAMMachine) : this()
 {
     this.displayControl.Machine = PRAMMachine;
 }
Esempio n. 3
0
        public static void Run(IPRAMMachine machine)
        {
            Application application = new Application();

            application.Run(new MainWindow(machine));
        }