public VcbConfiguration Clone()
        {
            VcbConfiguration newConfig = (VcbConfiguration)this.MemberwiseClone();

            newConfig.NumberingOptions      = NumberingOptions.Clone();
            newConfig.DisplayOptions        = DisplayOptions.Clone();
            newConfig.FoldersConfigurations = FoldersConfigurations.Clone();
            return(newConfig);
        }
 public VcbConfiguration()
 {
     m_listViewColumnWidths  = new ListViewColumnWidths();
     m_applyToAllTabsChecked = true;
     m_numberingOptions      = new NumberingOptions();
     m_displayOptions        = new DisplayOptions();
     m_foldersConfigurations = new FoldersConfigurations();
     m_configurationFileRead = false;
     m_exportConfiguration   = new ExportConfiguration();
 }
 public void Increment(AssemblyVersionType typeToIncrement, NumberingOptions numberingOptions)
 {
     if ((typeToIncrement & AssemblyVersionType.AssemblyVersion) != 0)
     {
         this[AssemblyVersionType.AssemblyVersion].Increment(numberingOptions);
     }
     if ((typeToIncrement & AssemblyVersionType.AssemblyFileVersion) != 0)
     {
         this[AssemblyVersionType.AssemblyFileVersion].Increment(numberingOptions);
     }
     if ((typeToIncrement & AssemblyVersionType.AssemblyInformationalVersion) != 0)
     {
         this[AssemblyVersionType.AssemblyInformationalVersion].Increment(numberingOptions);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 ///   Creates <c>NewVersionProvider</c> object with given numbering
 ///   options.
 /// </summary>
 /// <param name="numberingOptions">
 ///   Numbering options used for version increment.
 /// </param>
 public NewVersionProvider(NumberingOptions numberingOptions) : this()
 {
     m_numberingOptions = numberingOptions;
 }
 private void SetNumberingOptions(NumberingOptions options)
 {
     Debug.Assert(options != null);
     m_numberingOptions   = options;
     m_newVersionProvider = new NewVersionProvider(m_numberingOptions);
 }