public void SetOptions(Options options)
 {
     AddObjectDialogOptions.Assign(options.AddObjectDialogOptions);
     BehaviorOptions.Assign(options.BehaviorOptions);
     MainForm.DBView.Options.Assign(options.DatabaseSchemaViewOptions);
     DataSourceOptions.Assign(options.DataSourceOptions);
     DesignPaneOptions.Assign(options.DesignPaneOptions);
     ExpressionEditorOptions.Assign(options.ExpressionEditorOptions);
     QueryColumnListOptions.Assign(options.QueryColumnListOptions);
     QueryNavBarOptions.Assign(options.QueryNavBarOptions);
     SqlFormattingOptions.Assign(options.SqlFormattingOptions);
     SqlGenerationOptions.Assign(options.SqlGenerationOptions);
     TextEditorOptions.Assign(options.TextEditorOptions);
     TextEditorSqlOptions.Assign(options.TextEditorSqlOptions);
     UserInterfaceOptions.Assign(options.UserInterfaceOptions);
     VisualOptions.Assign(options.VisualOptions);
 }
Beispiel #2
0
 public void CreateDefaultOptions()
 {
     BehaviorOptions           = new BehaviorOptions();
     DatabaseSchemaViewOptions = new DatabaseSchemaViewOptions();
     DesignPaneOptions         = new DesignPaneOptions();
     VisualOptions             = new VisualOptions();
     AddObjectDialogOptions    = new AddObjectDialogOptions();
     DataSourceOptions         = new DataSourceOptions();
     QueryColumnListOptions    = new QueryColumnListOptions();
     QueryNavBarOptions        = new QueryNavBarOptions();
     UserInterfaceOptions      = new UserInterfaceOptions();
     SqlFormattingOptions      = new SQLFormattingOptions();
     SqlGenerationOptions      = new SQLGenerationOptions();
     ExpressionEditorOptions   = new ExpressionEditorOptions();
     TextEditorOptions         = new TextEditorOptions
     {
         Padding    = DefaultTextEditorPadding,
         LineHeight = new LengthUnit(90, SizeUnitType.Percent)
     };
     TextEditorSqlOptions = new SqlTextEditorOptions();
 }