public static void setIdMasina() { statiaCurenta = new BMasina(); statiaCurenta.initMasina(); CGestiuneIO.setIdCalculator(statiaCurenta.Id); }
public static string getIdMasina() { string idCalc = CGestiuneIO.GetValoareDupaTipCheie(CGestiuneIO.EnumTipCheie.IdCalc); if (string.IsNullOrEmpty(idCalc)) { statiaCurenta = new BMasina(); statiaCurenta.initMasina(); idCalc = statiaCurenta.Id; CGestiuneIO.setIdCalculator(idCalc); } return(idCalc); //if (statiaCurenta == null) //{ // statiaCurenta = new BMasina(); // statiaCurenta.initMasina(); //} //return statiaCurenta.Id; }