Esempio n. 1
0
 /// <summary>
 /// Singleton
 /// </summary>
 /// <returns></returns>
 public static InfoSystem GetInstance()
 {
     if (instance == null)
     {
         instance = new InfoSystem();
     }
     return(instance);
 }
Esempio n. 2
0
        public void SetInfo()
        {
            InfoSystem e = InfoSystem.GetInstance();

            e.test();
            OS.Text        = e.osName;// e.getInfos();
            Proc.Text      = e.proco;
            this.raam.Text = "ram: \n" + e.infoRam;
            this.Pram.Text = e.getCurrentRamUsage();
            this.PCPU.Text = e.getCurrentCpuUsage();
            InfoImprimantes ii = new InfoImprimantes();

            ii.invoke();
            this.ListImprimantes.Text = ii.Imprimantes;
            this.Listmpirmantes.Text  = ii.listeJob;
        }
Esempio n. 3
0
 public void braww(object sender, EventArgs e)
 {
     this.Pram.Text = InfoSystem.GetInstance().getCurrentRamUsage();
     this.PCPU.Text = InfoSystem.GetInstance().getCurrentCpuUsage();
 }
Esempio n. 4
0
 public void updateView()
 {
     Pram.Text = InfoSystem.GetInstance().getCurrentRamUsage();
     PCPU.Text = InfoSystem.GetInstance().getCurrentRamUsage();
 }