void InitCountryPropertiesControl() { if (_currentControl == null || !(_currentControl is UCCountryProperties)) { ReleaseControl(); ucCountryProperties = new UCCountryProperties(); ucCountryProperties.Parent = pcClient; ucCountryProperties.Dock = DockStyle.Fill; ucCountryProperties.Show(); ucCountryProperties.Init(); ucCountryProperties.Entity = Entity; _currentControl = ucCountryProperties; CreateBarControl(); } }
void InitCountryPropertiesControl() { if (_currentControl == null || !(_currentControl is UCCountryProperties)) { ReleaseControl(); ucCountryProperties = new UCCountryProperties(); ucCountryProperties.Parent = pcClient; ucCountryProperties.Dock = DockStyle.Fill; ucCountryProperties.Show(); ucCountryProperties.Init(); ucCountryProperties.Entity = Entity; _currentControl = ucCountryProperties; CreateBarControl(); } }