File tree 5 files changed +21
-1
lines changed
5 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 85
85
<setting name =" SetMaxLength" serializeAs =" String" >
86
86
<value >1</value >
87
87
</setting >
88
+ <setting name =" SetDuplicates" serializeAs =" String" >
89
+ <value >False</value >
90
+ </setting >
88
91
</Advanced_PassGen .Properties.Settings>
89
92
</userSettings >
90
93
</configuration >
Original file line number Diff line number Diff line change 74
74
<Setting Name =" SetMaxLength" Type =" System.Int32" Scope =" User" >
75
75
<Value Profile =" (Default)" >1</Value >
76
76
</Setting >
77
+ <Setting Name =" SetDuplicates" Type =" System.Boolean" Scope =" User" >
78
+ <Value Profile =" (Default)" >False</Value >
79
+ </Setting >
77
80
</Settings >
78
81
</SettingsFile >
Original file line number Diff line number Diff line change 156
156
<RowDefinition Height =" Auto" />
157
157
<RowDefinition Height =" Auto" />
158
158
</Grid .RowDefinitions>
159
- <CheckBox x : Name =" ChbAllowDuplicates" Content =" Allow duplicates" Margin =" 3" >
159
+ <CheckBox x : Name =" ChbAllowDuplicates" Content =" Allow duplicates" Margin =" 3" Checked = " SetCheckBox_OnChecked " Unchecked = " SetCheckBox_OnChecked " >
160
160
<CheckBox .ToolTip>
161
161
<ToolTip Content =" Allow duplicate passwords to be generated." />
162
162
</CheckBox .ToolTip>
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ private void SaveSetSettings()
159
159
if ( ChbBase64 . IsChecked != null ) Properties . Settings . Default . SetBase64 = ChbBase64 . IsChecked . Value ;
160
160
if ( TxtMinLength . Value != null ) Properties . Settings . Default . SetMinLength = ( int ) TxtMinLength . Value . Value ;
161
161
if ( TxtMaxLength . Value != null ) Properties . Settings . Default . SetMaxLength = ( int ) TxtMaxLength . Value . Value ;
162
+ if ( ChbAllowDuplicates . IsChecked != null ) Properties . Settings . Default . SetDuplicates = ChbAllowDuplicates . IsChecked . Value ;
162
163
163
164
Properties . Settings . Default . Save ( ) ;
164
165
}
@@ -187,6 +188,7 @@ private void LoadSetSettings()
187
188
ChbBase64 . IsChecked = Properties . Settings . Default . SetBase64 ;
188
189
TxtMinLength . Value = Properties . Settings . Default . SetMinLength ;
189
190
TxtMaxLength . Value = Properties . Settings . Default . SetMaxLength ;
191
+ ChbAllowDuplicates . IsChecked = Properties . Settings . Default . SetDuplicates ;
190
192
_loadingSetSettings = false ;
191
193
}
192
194
You can’t perform that action at this time.
0 commit comments