private void StartButton_Click(object sender, RoutedEventArgs e) { AppSetting.Default.WorkCollection = int.Parse(this.TextBox1.Text); AppSetting.Default.VirtualMemory = int.Parse(this.TextBox2.Text); AppSetting.Default.PhysicMemory = int.Parse(this.TextBox3.Text); AppSetting.Default.GenerateProcessTimeLimit = int.Parse(this.TextBox4.Text); AppSetting.Default.ReadDataTimeLimit = int.Parse(this.TextBox5.Text); AppSetting.Default.ProcessExpirationTimeLimit = int.Parse(this.TextBox6.Text); AppSetting.Default.SimulationTimeLimit = int.Parse(this.TextBox7.Text); AppSetting.Default.VirtualPagePerProcess = int.Parse((this.TextBox8.Text)); AppSetting.Default.AllPageFold = 0; AppSetting.Default.PageFoldCounter = 0; AppSetting.Default.Save(); source.OperatingSystem os = new source.OperatingSystem(); Log logwindow = new Log(); AppSetting.Default.log = logwindow.TextBox; logwindow.Show(); os.BeginSimulation(); }