public static GetSettings ( ModuleInfo, ctlModule ) : ModuleSettings, | ||
ctlModule | ModuleInfo, | |
Результат | ModuleSettings, |
public HttpResponseMessage Update(SettingsDTO newSettings) { var oldSettings = ModuleSettings.GetSettings(ActiveModule); oldSettings.MySetting = newSettings.MySetting; oldSettings.SaveSettings(); return(Request.CreateResponse(HttpStatusCode.OK, oldSettings)); }
public override void Start() { FlightGearSettings settings; m_thread = new FlightGearThread(); settings = ModuleSettings.GetSettings <FlightGearSettings>(); m_thread.Configure(settings); m_thread.Open(); }