public OnAirSettingDataModel Load() { if (loaded) { return(onAirSettingDataModel); } var data = FileIOUtility.Read <OnAirSettingDataModel>("OnAirSetting"); onAirSettingDataModel = data; loaded = true; return(onAirSettingDataModel); }
public static OnAirSettingDataModel Translate(OnAirSettingViewModel viewModel) { var dataModel = new OnAirSettingDataModel(viewModel.IsOnAir); return(dataModel); }
public void Save(OnAirSettingDataModel onAirSettingDataModel) { FileIOUtility.Write(onAirSettingDataModel, "OnAirSetting"); this.onAirSettingDataModel = onAirSettingDataModel; }