private void SaveVariable_Click(object sender, EventArgs e) { if (dataGrid_Variables.CurrentRow != null) { dataGrid_Variables.CurrentRow.Cells["VariableValue"].Value = _editVarDialog.Variable; } EnvironmentFileHandler.MakeSingletonDirty(); }
private void NewFile() { if (_envFh.Load(null)) { SetDefault(); EnvironmentFileHandler.MakeSingletonDirty(); } }
private void DeleteRowToolStripMenuItem_Click(object sender, EventArgs e) { dataGrid_Variables.Rows.Remove(dataGrid_Variables.CurrentRow); if (dataGrid_Variables.Rows.Count == 0) { dataGrid_Variables.Rows.Add(); } EnvironmentFileHandler.MakeSingletonDirty(); }
private void Node_Changed(object sender, EventArgs e) { textBox_ExtNodeFile.Enabled = radioButton_ExtNode.Checked; button_ExtNodeBrowse.Enabled = radioButton_ExtNode.Checked; comboBox_ExtNodeId.Enabled = radioButton_ExtNode.Checked; textBox_IntNodeId.Enabled = radioButton_IntNode.Checked; EnvironmentFileHandler.MakeSingletonDirty(); NodeReferenceHasChanged.Invoke(sender, e); }
private void CheckBox_Action_CheckedChanged(object sender, EventArgs e) { bool enabled = ((CheckBox)sender).Checked; checkBox_Action_deploy.Enabled = enabled; checkBox_Action_force.Enabled = enabled; checkBox_Action_retract.Enabled = enabled; checkBox_Action_update.Enabled = enabled; EnvironmentFileHandler.MakeSingletonDirty(); }
private void CheckBox_Warmup_CheckedChanged(object sender, EventArgs e) { bool enabled = (sender as CheckBox).Checked; checkBox_Action_AllSites.Enabled = enabled; checkBox_Action_AllWebApps.Enabled = enabled; checkBox_Action_CustomUrl.Enabled = enabled; checkBox_Action_deploy.Enabled = enabled; checkBox_Action_update.Enabled = enabled; EnvironmentFileHandler.MakeSingletonDirty(); }
private void ComboBox_SPVersion_SelectedIndexChanged(object sender, EventArgs e) { if (comboBox_SPVersion.Items.Count > 0 && comboBox_SPVersion.SelectedIndex != -1) { checkBox_AllowTrustedBin.Enabled = new Version(((KeyValuePair <string, string>)comboBox_SPVersion.SelectedItem).Key).Major == 15; checkBox_AllowCASPolicies.Enabled = new Version(((KeyValuePair <string, string>)comboBox_SPVersion.SelectedItem).Key).Major == 14; } EnvironmentFileHandler.MakeSingletonDirty(); }
private void CheckBox_RecycleAppPool_CheckedChanged(object sender, EventArgs e) { bool enabled = ((CheckBox)sender).Checked; checkBox_Action_deploy.Enabled = enabled; checkBox_Action_retract.Enabled = enabled; checkBox_Action_update.Enabled = enabled; radioButton_Action_AllAppPool.Enabled = enabled; radioButton_Action_SPAppPool.Enabled = enabled; EnvironmentFileHandler.MakeSingletonDirty(); }
private void checkBox_Action_CheckedChanged(object sender, EventArgs e) { bool enabled = (sender as CheckBox).Checked; checkBox_Action_deploy.Enabled = enabled; checkBox_Action_force.Enabled = enabled; checkBox_Action_retract.Enabled = enabled; checkBox_Action_update.Enabled = enabled; textbox_ActionName.Enabled = enabled; textbox_ActionName_val.Validate(); EnvironmentFileHandler.MakeSingletonDirty(); }
private void BrowseButton_Click(object sender, EventArgs e) { if (EnvironmentFileHandler.IsSingletonNew) { MessageBox.Show( Resources.ExternalNodeReference_FileUnsavedWarningText, Resources.ExternalNodeReference_FileUnsavedWarningTitle, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } FileInfo fi = EnvironmentFileHandler.GetFile(); if (fi != null) { openFileDialog.InitialDirectory = fi.DirectoryName; if (openFileDialog.ShowDialog() == DialogResult.OK) { try { FileInfo extFile = new FileInfo(openFileDialog.FileName); if (extFile.FullName.Equals(fi.FullName, StringComparison.InvariantCultureIgnoreCase)) { MessageBox.Show( Resources.ExternalNodeReference_SelfReferenceMessage, Resources.ExternalNodeReference_BrowseErrorTitle, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } string relPath = fi.RelativePathTo(extFile); //Model.SPSD file = EnvironmentFileHandler.LoadFile(openFileDialog.FileName); //if (file != null) //{ if (LoadExternalNodeIds(relPath)) { textBox_ExtNodeFile.Text = relPath; EnvironmentFileHandler.MakeSingletonDirty(); } //} } catch (Exception ex) { MessageBox.Show( ex.Message, Resources.ExternalNodeReference_BrowseErrorTitle, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } } } }
private void ComboBox_SPLicense_SelectedIndexChanged(object sender, EventArgs e) { EnvironmentFileHandler.MakeSingletonDirty(); }
private void RadioButton_WaitAfterDeployment_CheckedChanged(object sender, EventArgs e) { textBox_WaitAfterDeploy.Enabled = radioButton_WaitAfterDeployment.Checked; EnvironmentFileHandler.MakeSingletonDirty(); }
private void CheckBox_RunOnMultipleServersInFarm_CheckedChanged(object sender, EventArgs e) { comboBox_RunOnMultipleServersInFarm.Enabled = checkBox_RunOnMultipleServersInFarm.Checked; EnvironmentFileHandler.MakeSingletonDirty(); }
private void CheckBox_OverwriteExistingSolutions_CheckedChanged(object sender, EventArgs e) { EnvironmentFileHandler.MakeSingletonDirty(); }
private void RadioButton_AllSolutions_CheckedChanged(object sender, EventArgs e) { checkBox_ForceSolutionDeployment.Enabled = radioButton_allSolutions.Checked; checkBox_OverwriteExistingSolutions.Enabled = radioButton_allSolutions.Checked; EnvironmentFileHandler.MakeSingletonDirty(); }
private void TextBox_Warmup_CustomUrls_EnabledChanged(object sender, EventArgs e) { button_Warmup_EditCustom.Enabled = textBox_Warmup_customUrls.Enabled; EnvironmentFileHandler.MakeSingletonDirty(); }
private void DataGrid_Variables_CellValueChanged(object sender, DataGridViewCellEventArgs e) { EnvironmentFileHandler.MakeSingletonDirty(); }
private void CheckBox_Warmup_CustomUrl_Changed(object sender, EventArgs e) { textBox_Warmup_customUrls.Enabled = checkBox_Action_CustomUrl.Enabled && checkBox_Action_CustomUrl.Checked; EnvironmentFileHandler.MakeSingletonDirty(); }
private void dataGrid_Solutions_CellValueChanged(object sender, DataGridViewCellEventArgs e) { SetAvailabilityOfUrlField(e.RowIndex); EnvironmentFileHandler.MakeSingletonDirty(); }
private void TextBox_Warmup_CustomUrls_TextChanged(object sender, EventArgs e) { EnvironmentFileHandler.MakeSingletonDirty(); }
private void textbox_ActionName_TextChanged(object sender, EventArgs e) { EnvironmentFileHandler.MakeSingletonDirty(); }
private void SaveUrls_Click(object sender, EventArgs e) { textBox_Warmup_customUrls.Text = urlEditDialog.Urls; EnvironmentFileHandler.MakeSingletonDirty(); }
private void CheckBox_CheckedChanged(object sender, EventArgs e) { EnvironmentFileHandler.MakeSingletonDirty(); }
private void SaveUrls_Click(object sender, EventArgs e) { dataGrid_Solutions.CurrentRow.Cells["SolutionUrls"].Value = urlEditDialog.Urls; EnvironmentFileHandler.MakeSingletonDirty(); }