private void Button_Click_8(object sender, RoutedEventArgs e) { if (url == null) { //Alert msg MessageBox.Show("Please import file."); } else { var instance1 = new FCFS(); instance1.SortProcess(ObjList, row, result); var instance2 = new PS_NP(); instance2.SortProcess(ObjList, totalTime, row, result); var instance3 = new SJF_NP(); instance3.SortProcess(ObjList, totalTime, row, result); var instance4 = new RR(); instance4.SortProcess(ObjList, totalTime, row, result); var instance5 = new PS_P(); instance5.SortProcess(ObjList, totalTime, row, result); var instance6 = new SJF_P(); instance6.SortProcess(ObjList, totalTime, row, result); var instance7 = new Analysis(); output.Text += $"\n\n============== Anatysis All Algorithm ==============\n"; output.Text += $"{instance7.AnalysisResult(result)}"; output.Text += $"\n\n===========================================\n"; result = new List <Result>(); } }
private void Button_Click_4(object sender, RoutedEventArgs e) { if (url == null) { //Alert msg MessageBox.Show("Please import file."); } else { var instance5 = new PS_P(); output.Text += $"\n\n Priority Scheduling (Preemptive) : {instance5.SortProcess(ObjList, totalTime, row, result)}"; } }