private void FrmInstanceStatus_Load(object sender, EventArgs e) { FormTranslator.Translate(this, GetType().FullName); FormTranslator.Translate(ctrlProfileSelector, ctrlProfileSelector.GetType().FullName); ctrlProfileSelector.Init(appData, project.DeploymentConfig, instance); DeploymentProfile profile = ctrlProfileSelector.SelectedProfile; if (profile != null) { initialProfile = profile.DeepClone(); if (profile.AgentEnabled) { Connect(); } } }