Beispiel #1
0
 private void Algorithm_SelectedIndexChanged(object sender, EventArgs e)
 {
     TimerHPF.Stop();
     TimerRR.Stop();
     TimerFIFO.Stop();
     for (int i = 0; i < Program.AddedProcesses.Count; i++)
     {
         ProcessList.Items[i].SubItems[(int)Columns.State].Text = "Ожидает";
     }
 }
Beispiel #2
0
 private void StopButton_Click(object sender, EventArgs e)
 {
     TimerHPF.Stop();
     TimerRR.Stop();
     TimerFIFO.Stop();
     for (int i = 0; i < Program.AddedProcesses.Count; i++)
     {
         ProcessList.Items[i].SubItems[(int)Columns.State].Text = "Ожидает";
     }
 }
Beispiel #3
0
        private void AddProcessButton_Click(object sender, EventArgs e)
        {
            Program.LastID = Program.AddedProcesses.Count();
            TimerHPF.Stop();
            TimerRR.Stop();
            TimerFIFO.Stop();
            AddProcess DialWindow = new AddProcess();

            DialWindow.ShowDialog();
            if (Program.IsProcesAdded)
            {
                ProcessList.Items.Add(Program.AddedProcesses[Program.LastID].ID.ToString());
                ProcessList.Items[Program.LastID].SubItems.Add(Program.AddedProcesses[Program.LastID].Name);
                ProcessList.Items[Program.LastID].SubItems.Add(Program.AddedProcesses[Program.LastID].Priority.ToString());
                ProcessList.Items[Program.LastID].SubItems.Add(Program.AddedProcesses[Program.LastID].Memory.ToString());
                ProcessList.Items[Program.LastID].SubItems.Add(Program.AddedProcesses[Program.LastID].CP.ToString());
                ProcessList.Items[Program.LastID].SubItems.Add("Ожидает");
                Program.LastID++;
            }
        }