public ResourceWindow(OperatingSystemMainWindow parent) { this.parent = parent; InitializeComponent(); currentInstance = this; SetResourceWindowInstance(); }
private void btn_ClearAll_Click(object sender, RoutedEventArgs e) { if (osParent == null && GetOSMainWindowInstance() == null) { MessageBox.Show("Please open the os before clearing interrupts"); return; } OperatingSystemMainWindow os = GetOSMainWindowInstance(); OSCore core = os.OsCore; txt_Int1Location.Text = ""; txt_Int2Location.Text = ""; txt_Int3Location.Text = ""; txt_Int4Location.Text = ""; txt_Int5Location.Text = ""; txt_Int6Location.Text = ""; core.Handles.PINT1 = null; core.Handles.VINT1 = null; core.Handles.PINT2 = null; core.Handles.VINT2 = null; core.Handles.PINT3 = null; core.Handles.VINT3 = null; core.Handles.PINT4 = null; core.Handles.VINT4 = null; core.Handles.PINT5 = null; core.Handles.VINT5 = null; core.Handles.PINT6 = null; core.Handles.VINT6 = null; }
public UtilisationWindow(OperatingSystemMainWindow parent) { this.osParent = parent; InitializeComponent(); currentInstance = this; SetUtilisationWindowInstance(); }
public ResourceWindow() { this.parent = null; InitializeComponent(); currentInstance = this; SetResourceWindowInstance(); }
/// <summary> /// Constructor for ProcessListWindow when constructing from OperatingSystemMainWindow /// </summary> /// <param name="parent">the window that is creating this window</param> /// <param name="processes"> the list of processes to display</param> public ProcessListWindow(OperatingSystemMainWindow parent, List <SimulatorProcess> processes) { this.parent = parent; this.processes = processes; InitializeComponent(); currentInstance = this; }
/// <summary> /// Default Constructor of ProcessListWindow /// </summary> public ProcessListWindow() { processes = new List <SimulatorProcess>(); parent = null; InitializeComponent(); currentInstance = this; }
public LogWindow() { parent = null; InitializeComponent(); currentInstance = this; SetLogWindowInstance(); }
public InterruptsWindow(OperatingSystemMainWindow osParent) { this.mainParent = null; this.osParent = osParent; InitializeComponent(); currentInstance = this; SetInterruptWindowInstance(); }
public InterruptsWindow(MainWindow mainParent) { this.mainParent = mainParent; this.osParent = null; InitializeComponent(); currentInstance = this; SetInterruptWindowInstance(); }
/// <summary> /// Default constructor for OperatingSystemMainWindow /// </summary> public OperatingSystemMainWindow() { InitializeComponent(); currentInstance = this; SetOSWindowInstance(); processes = new List <SimulatorProcess>(); CollectionChanged += OnCollectionChanged; }
public PhysicalMemoryWindow(UtilisationWindow utilisationParent) { this.osParent = null; this.mainParent = null; this.utilisationParent = utilisationParent; InitializeComponent(); currentInstance = this; SetPhysicalMemoryWindowInstance(); }
public PhysicalMemoryWindow(OperatingSystemMainWindow osParent) { this.osParent = osParent; this.mainParent = null; this.utilisationParent = null; InitializeComponent(); currentInstance = this; SetPhysicalMemoryWindowInstance(); }
private void btn_Int6Trigger_Click(object sender, RoutedEventArgs e) { OperatingSystemMainWindow os = GetOSMainWindowInstance(); OSCore core = os.OsCore; if (core.Handles.PINT6 == null || core.Handles.VINT6 == null) { MessageBox.Show("Interrupt 6 is not registered"); return; } core.Handles.VINT6.Fire(); }
/// <summary> /// Constructor for process control block window when constructing from OperatingSystemMainWindow /// </summary> /// <param name="os_Parent"> the window that is creating this window</param> /// <param name="currentControlBlock"> the control block to be loaded</param> public ProcessControlBlockWindow(OperatingSystemMainWindow os_Parent, LinkedListNode <ProcessControlBlock> currentControlBlock) { this.os_Parent = os_Parent; this.main_Parent = null; this.procList_Parent = null; InitializeComponent(); currentInstance = this; this.currentControlBlock = currentControlBlock; currentControlBlocks = new LinkedList <ProcessControlBlock>(); if (currentControlBlock != null && currentControlBlock.Value != null) { currentControlBlocks.AddLast(currentControlBlock); } SetPCBWindowInstance(); }
private void txt_Int1Location_TextChanged(object sender, TextChangedEventArgs e) { if (osParent == null && GetOSMainWindowInstance() == null) { MessageBox.Show("Please open the os before clearing interrupts"); return; } OperatingSystemMainWindow os = GetOSMainWindowInstance(); OSCore core = os.OsCore; uint address = 0; if (uint.TryParse(txt_Int1Location.Text, out address)) { core.Handles.SetPolledInterrupt(1, (int)address); core.Handles.SetVectoredInterrupt(1, (int)address); } }
private void OperatingSystemWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { currentInstance = null; SetOSWindowInstance(); }