Changeset 7608


Ignore:
Timestamp:
02/19/19 05:37:40 (4 months ago)
Author:
rohit_tandon
Message:

-> Now user can check "Warn before section deletion" if he wants warning only for section deletion.

Location:
trunk/Obi/Obi
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/ProjectView/ProjectView.cs

    r7607 r7608  
    969969                { 
    970970                    DialogResult dialogResult = DialogResult.None; 
    971                     if (this.ObiForm.Settings.Project_DisplayWarningsForEditOperations) 
     971                    if (this.ObiForm.Settings.Project_DisplayWarningsForEditOperations || this.ObiForm.Settings.Project_DisplayWarningsForSectionDelete) 
    972972                    { 
    973973                        dialogResult = MessageBox.Show(Localizer.Message("ConfirmSectionDelete"), Localizer.Message("Caption_Warning"), MessageBoxButtons.OKCancel,MessageBoxIcon.Warning,MessageBoxDefaultButton.Button2); 
     
    983983                    { 
    984984                        DialogResult dialogResult = DialogResult.None; 
    985                         if (this.ObiForm.Settings.Project_DisplayWarningsForEditOperations) 
     985                        if (this.ObiForm.Settings.Project_DisplayWarningsForEditOperations || this.ObiForm.Settings.Project_DisplayWarningsForSectionDelete) 
    986986                        { 
    987987                            dialogResult = MessageBox.Show(Localizer.Message("ConfirmSectionDelete"), Localizer.Message("Caption_Warning"), MessageBoxButtons.OKCancel,MessageBoxIcon.Warning,MessageBoxDefaultButton.Button2); 
  • trunk/Obi/Obi/Settings.cs

    r7598 r7608  
    337337        [OptionalField] 
    338338        public bool Audio_RecordUsingSingleKeyFromTOC; 
     339 
     340        [OptionalField] 
     341        public bool Project_DisplayWarningsForSectionDelete; 
    339342 
    340343        protected static void InitializeDefaultSettings(Settings settings) 
     
    492495            //Post Obi 4.3 
    493496            settings.Audio_RecordUsingSingleKeyFromTOC = false; 
     497            settings.Project_DisplayWarningsForSectionDelete = false; 
    494498        } 
    495499 
  • trunk/Obi/Obi/Settings_SaveProfile.cs

    r7598 r7608  
    134134               newSettings.Project_MaximumPhrasesSelectLimit = this.Project_MaximumPhrasesSelectLimit; 
    135135               newSettings.Project_ReadOnlyMode = this.Project_ReadOnlyMode; 
     136               newSettings.Project_DisplayWarningsForSectionDelete = this.Project_DisplayWarningsForSectionDelete; 
    136137               // checks for paths 
    137138               //if ( !string.IsNullOrEmpty(this.Project_DefaultPath) && Directory.Exists (this.Project_DefaultPath )) 
     
    515516               && this.Project_DoNotDisplayMessageBoxForShowingSection == settings.Project_DoNotDisplayMessageBoxForShowingSection 
    516517               && this.Project_MaximumPhrasesSelectLimit == settings.Project_MaximumPhrasesSelectLimit 
    517                && this.Project_ReadOnlyMode == settings.Project_ReadOnlyMode) 
     518               && this.Project_ReadOnlyMode == settings.Project_ReadOnlyMode 
     519               && this.Project_DisplayWarningsForSectionDelete == settings.Project_DisplayWarningsForSectionDelete) 
    518520               { 
    519521                   projectPreferencesMatch = true ; 
  • trunk/Obi/Obi/messages.Designer.cs

    r7606 r7608  
    58135813         
    58145814        /// <summary> 
     5815        ///   Looks up a localized string similar to Warn before deleting section. 
     5816        /// </summary> 
     5817        internal static string Project_DisplayWarningsForSectionDelete { 
     5818            get { 
     5819                return ResourceManager.GetString("Project_DisplayWarningsForSectionDelete", resourceCulture); 
     5820            } 
     5821        } 
     5822         
     5823        /// <summary> 
    58155824        ///   Looks up a localized string similar to Do not show message box while moving to phrase in another section. 
    58165825        /// </summary> 
  • trunk/Obi/Obi/messages.resx

    r7606 r7608  
    30863086    <value>Start and stop recording using single key shortcuts from TOC View</value> 
    30873087  </data> 
     3088  <data name="Project_DisplayWarningsForSectionDelete" xml:space="preserve"> 
     3089    <value>Warn before deleting section</value> 
     3090  </data> 
    30883091</root> 
Note: See TracChangeset for help on using the changeset viewer.