Esempio n. 1
0
 private static void CopySettingsToAll(SolutionItem item, BaseIncrementSettings settings)
 {
     if (item.ItemType == SolutionItemType.Solution || item.ItemType == SolutionItemType.Project)
     {
         Logger.Write("Copying IncrementSettings to \"" + item.Name + "\"", LogLevel.Debug);
         item.IncrementSettings.CopyFrom(settings);
     }
     foreach (SolutionItem current in item.SubItems)
     {
         AddInSettingsForm.CopySettingsToAll(current, settings);
     }
 }
Esempio n. 2
0
        private void copyToAllProjectsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BaseIncrementSettings selectedIncrementSettings = this.SelectedIncrementSettings;

            if (selectedIncrementSettings != null)
            {
                string str = "Global Settings";
                if (selectedIncrementSettings is SolutionItemIncrementSettings)
                {
                    str = ((SolutionItemIncrementSettings)selectedIncrementSettings).Name;
                }
                DialogResult dialogResult = MessageBox.Show(this, "Copy the increment settings of \"" + str + "\" to all other items?", "Copy to all", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (dialogResult == DialogResult.Yes)
                {
                    AddInSettingsForm.CopySettingsToAll(this._solution, selectedIncrementSettings);
                }
            }
        }