public MainExampleServerlForm(ExampleServerSettings settings) { InitializeComponent(); this.server = new ExampleServer(this, settings); this.server.messageLog += addMessageLogText; this.propertyGrid1.SelectedObject = settings; }