private void updateIncludeFileInCsprojControls() { var csProject = _fileGroup.GetConnectedCsProject(); IncludeFileInCsprojChecBox.Enabled = csProject?.Project != null; AddFileAsDependantUponCheckBox.Enabled = IncludeFileInCsprojChecBox.Checked && !string.IsNullOrEmpty(csProject?.DependantUponRootFileName); if (!AddFileAsDependantUponCheckBox.Enabled) { AddFileAsDependantUponCheckBox.Checked = false; } labelCsProjectToAdd.Text = $"({new ZlpFileInfo(csProject?.Project?.FullPath??string.Empty).Name})"; }