示例#1
0
 /// <summary>
 /// 移除FirstComeFirstServerScheduling的Panel
 /// </summary>
 /// <param name="controls">在哪個視窗移除Panel</param>
 public static void Remove(ControlCollection controls)
 {
     if (SchedulingLabel == null)
     {
         return;
     }
     SchedulingLabel.Dispose();
     CPUBurstTimeLabel.Dispose();
     ArrivalTimeLabel.Dispose();
     foreach (var Label in SchedulingName)
     {
         Label.Dispose();
     }
     foreach (var TextBox in CPUBurstTime)
     {
         TextBox.Dispose();
     }
     foreach (var TextBox in ArrivalTime)
     {
         TextBox.Dispose();
     }
     main?.Dispose(); main = null;
     controls.RemoveByKey("main");
 }