private void txtPackagePath_TextChanged(object sender, EventArgs e) { this.btnDeploy.Enabled = this.tabControl1.SelectedTab.Name.Equals("tabLocalDeployment") && !string.IsNullOrEmpty(this.txtConfigPath.Text) && !string.IsNullOrEmpty(this.txtPackagePath.Text); }