|
|
|
|
@ -26,12 +26,30 @@ namespace ICSharpCode.FormsDesigner.Gui.OptionPanels
@@ -26,12 +26,30 @@ namespace ICSharpCode.FormsDesigner.Gui.OptionPanels
|
|
|
|
|
|
|
|
|
|
((CheckBox)ControlDictionary["sortAlphabeticalCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.PropertyGridSortAlphabetical", false); |
|
|
|
|
((CheckBox)ControlDictionary["optimizedCodeGenerationCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.UseOptimizedCodeGeneration", true); |
|
|
|
|
((CheckBox)ControlDictionary["smartTagAutoShowCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.ObjectBoundSmartTagAutoShow", true); |
|
|
|
|
((CheckBox)ControlDictionary["smartTagAutoShowCheckBox"]).Checked = SmartTagAutoShow; |
|
|
|
|
((CheckBox)ControlDictionary["inPlaceEditCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.EnableInSituEditing", true); |
|
|
|
|
((CheckBox)ControlDictionary["useSmartTagsCheckBox"]).Checked = PropertyService.Get("FormsDesigner.DesignerOptions.UseSmartTags", true); |
|
|
|
|
((CheckBox)ControlDictionary["useSmartTagsCheckBox"]).Checked = UseSmartTags; |
|
|
|
|
((CheckBox)ControlDictionary["insertTodoCommentCheckBox"]).Checked = InsertTodoComment; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static bool UseSmartTags { |
|
|
|
|
get { |
|
|
|
|
return PropertyService.Get("FormsDesigner.DesignerOptions.UseSmartTags", true); |
|
|
|
|
} |
|
|
|
|
set { |
|
|
|
|
PropertyService.Set("FormsDesigner.DesignerOptions.UseSmartTags", value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static bool SmartTagAutoShow { |
|
|
|
|
get { |
|
|
|
|
return PropertyService.Get("FormsDesigner.DesignerOptions.ObjectBoundSmartTagAutoShow", true); |
|
|
|
|
} |
|
|
|
|
set { |
|
|
|
|
PropertyService.Set("FormsDesigner.DesignerOptions.ObjectBoundSmartTagAutoShow", value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static bool InsertTodoComment { |
|
|
|
|
get { |
|
|
|
|
return PropertyService.Get("FormsDesigner.DesignerOptions.InsertTodoComment", false); |
|
|
|
|
@ -44,10 +62,10 @@ namespace ICSharpCode.FormsDesigner.Gui.OptionPanels
@@ -44,10 +62,10 @@ namespace ICSharpCode.FormsDesigner.Gui.OptionPanels
|
|
|
|
|
public override bool StorePanelContents() |
|
|
|
|
{ |
|
|
|
|
PropertyService.Set("FormsDesigner.DesignerOptions.PropertyGridSortAlphabetical", ((CheckBox)ControlDictionary["sortAlphabeticalCheckBox"]).Checked); |
|
|
|
|
PropertyService.Set("FormsDesigner.DesignerOptions.UseOptimizedCodeGeneration", ((CheckBox)ControlDictionary["optimizedCodeGenerationCheckBox"]).Checked); |
|
|
|
|
PropertyService.Set("FormsDesigner.DesignerOptions.ObjectBoundSmartTagAutoShow", ((CheckBox)ControlDictionary["smartTagAutoShowCheckBox"]).Checked); |
|
|
|
|
PropertyService.Set("FormsDesigner.DesignerOptions.UseOptimizedCodeGeneration", ((CheckBox)ControlDictionary["optimizedCodeGenerationCheckBox"]).Checked); |
|
|
|
|
SmartTagAutoShow = ((CheckBox)ControlDictionary["smartTagAutoShowCheckBox"]).Checked; |
|
|
|
|
PropertyService.Set("FormsDesigner.DesignerOptions.EnableInSituEditing", ((CheckBox)ControlDictionary["inPlaceEditCheckBox"]).Checked); |
|
|
|
|
PropertyService.Set("FormsDesigner.DesignerOptions.UseSmartTags", ((CheckBox)ControlDictionary["useSmartTagsCheckBox"]).Checked); |
|
|
|
|
UseSmartTags = ((CheckBox)ControlDictionary["useSmartTagsCheckBox"]).Checked; |
|
|
|
|
InsertTodoComment = ((CheckBox)ControlDictionary["insertTodoCommentCheckBox"]).Checked; |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
|