Exemplo n.º 1
0
        private void DisplayAddinSettings(object sender, EventArgs e)
        {
            AddInSettingsForm addInSettingsForm = new AddInSettingsForm();
            WinWrapper        owner             = new WinWrapper(this);

            addInSettingsForm.Connect = this;
            addInSettingsForm.ShowDialog(owner);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Displays the addin settings.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void DisplayAddinSettings(object sender, EventArgs e)
        {
            AddInSettingsForm dlg = new AddInSettingsForm();
            WinWrapper        w   = new WinWrapper(this);

            dlg.Connect = this;
            dlg.ShowDialog(w);
        }
Exemplo n.º 3
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);
     }
 }
Exemplo n.º 4
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);
                }
            }
        }
Exemplo n.º 5
0
 private void DisplayAddinSettings(object sender, EventArgs e)
 {
     AddInSettingsForm addInSettingsForm = new AddInSettingsForm();
     WinWrapper owner = new WinWrapper(this);
     addInSettingsForm.Connect = this;
     addInSettingsForm.ShowDialog(owner);
 }