public TemperatureController(Vent vent) { this.vent = vent; Window ventWindow = new TemperatureForm(this); ventWindow.ShowDialog(); }
public void submitTemperatureRequest(Vent vent) { this.vent = vent; Window ventWindow = new TemperatureForm(this); ventWindow.ShowDialog(); }
public void executeRequest(TemperatureRequest request) { if (request.TemperatureValue < 60 || request.TemperatureValue > 80) { if (displayConfirmation("Temperature must be between 60 and 80 degrees.")) { Window ventWindow = new TemperatureForm(this); ventWindow.ShowDialog(); } return; } vent.Temperature = request.TemperatureValue; }
public override void Create() { base.Create(); ChildForm = new TemperatureForm(); }