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(); } }); }; }
public MainWindow(IPRAMMachine PRAMMachine) : this() { this.displayControl.Machine = PRAMMachine; }
public static void Run(IPRAMMachine machine) { Application application = new Application(); application.Run(new MainWindow(machine)); }