void BindSourceClients_PositionChanged(object sender, EventArgs e) { System.Diagnostics.Debug.WriteLine("Client Selected Changed"); if (object.ReferenceEquals(null, AppConfigurationProvider)) { return; } if (!object.ReferenceEquals(null, CurrentAppConfiguration)) { CurrentAppConfiguration.Dispose(); treeConfig.Nodes.Clear(); gridConfigItem.SelectedObject = null; } AppConfigurationProvider.CurrentClient = cbxClients.SelectedItem as IClientInfo; CurrentAppConfiguration = AppConfigurationProvider.CurrentClientConfiguration; if (!object.ReferenceEquals(null, CurrentAppConfiguration)) { LoadAppConfiguration(CurrentAppConfiguration); } }