private void prostart(ProcessRR p1) { ProcessRR k = new ProcessRR(); k = p1; listbar[p1.Num] = new LoadBar2(); listbar[p1.Num].Max = k.Burst; listbar[p1.Num].setMax(); Label k1 = new Label(); Label k2 = new Label(); k1.Text = "P" + p1.Num.ToString(); k2.Text = "Start Time " + p1.Start.ToString(); int i = tableLayoutPanel1.ColumnCount++; tableLayoutPanel1.Controls.Add(k1, i - 1, 0); tableLayoutPanel1.Controls.Add(listbar[p1.Num].b1, i - 1, 1); tableLayoutPanel1.Controls.Add(k2, i - 1, 2); k.proStart(); listbar[p1.Num].proStart(); }
private void proresume(ProcessRR p1) { p1.proStart(); listbar[p1.Num].proStart(); }