public static TabellaFilettature GetTabellaFilettatura() { try { var path = GetThreadTableFilePath(); if (File.Exists(path)) { return(GetSerializedFile <TabellaFilettature>(path)); } var ntf = new TabellaFilettature(); SaveTabellaFilettatura(ntf); return(ntf); } catch (Exception) { var ntf = new TabellaFilettature(); SaveTabellaFilettatura(ntf); return(ntf); } }
public TabellaFilettaturaViewModel(TabellaFilettature tabellaFilettature, MeasureUnit measureUnit) { _tabellaFilettature = tabellaFilettature; _measureUnit = measureUnit; OnPropertyChanged("TipologieFilettatura"); }
public static void SaveTabellaFilettatura(TabellaFilettature tabellaFilettature) { var path = GetThreadTableFilePath(); FileUtility.SerializeToFile(path, tabellaFilettature); }