private void run(object sender, EventArgs e)
 {
     var timer = new System.Timers.Timer(3000);
     timer.Start();
     computer = new ComputerEnvironment();
     timer.Elapsed += Timer_Elapsed;
 }
Ejemplo n.º 2
0
 private void setValues(ComputerEnvironment computer)
 {
     osNameBox.Text = computer.os;
     osVerBox.Text = computer.osVerString;
     servicePackBox.Text = computer.servicePack;
     ramInstalledBox.Text = computer.ramTotal.ToString() + " MB";
     ramFreeBox.Text = computer.ramFree.ToString() + " MB";
     is64bitBox.Text = computer.is64.ToString();
     ramUsed.Value = (int)computer.ramUsed;
     ramUsageNo.Text = Math.Round(computer.ramUsed, 1).ToString() + "%";
     disksBox.Text = computer.diskInfo;
     installedProgramsBox.Text = computer.installedSoftware;
 }
 public void Launch(object c)
 {
     computer = (ComputerEnvironment)c;
     Show();
 }