This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.0.5.7
- Loading branch information
Showing
32 changed files
with
495 additions
and
2,848 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,72 @@ | ||
using System.ComponentModel; | ||
using System; | ||
using System.ComponentModel; | ||
using System.Drawing.Design; | ||
using System.Windows.Forms.Design; | ||
|
||
using Microsoft.VisualStudio.Shell; | ||
|
||
namespace Sawczyn.EFDesigner.EFModel.DslPackage | ||
{ | ||
public class OptionsEventArgs : EventArgs | ||
{ | ||
public string Option { get; } | ||
public object OldValue { get; } | ||
public object NewValue { get; } | ||
|
||
public OptionsEventArgs(string option, object oldValue, object newValue) | ||
{ | ||
Option = option; | ||
OldValue = oldValue; | ||
NewValue = newValue; | ||
} | ||
} | ||
|
||
public class OptionsPage : DialogPage | ||
{ | ||
public event EventHandler<OptionsEventArgs> OptionChanged ; | ||
|
||
protected virtual void OnOptionsChanged(OptionsEventArgs args) | ||
{ | ||
OptionChanged?.Invoke(this, args); | ||
} | ||
|
||
private string dotExePath; | ||
|
||
[Category("Display")] | ||
[DisplayName("GraphViz dot.exe path")] | ||
[Description("Path to the GraphViz dot.exe file, if present")] | ||
[Editor(typeof(FileNameEditor), typeof(UITypeEditor))] | ||
public string DotExePath { get; set; } | ||
public string DotExePath | ||
{ | ||
get | ||
{ | ||
return dotExePath; | ||
} | ||
set | ||
{ | ||
OptionsEventArgs args = new OptionsEventArgs("DotExePath", dotExePath, value); | ||
dotExePath = value; | ||
OnOptionsChanged(args); | ||
} | ||
} | ||
|
||
private bool saveDiagramsCompressed; | ||
|
||
[Category("File")] | ||
[DisplayName("Save diagram using legacy binary format")] | ||
[Description("If true, .diagramx files will be saved in compressed format. If false, they will not.")] | ||
public bool SaveDiagramsCompressed { get; set; } | ||
|
||
[Category("Code Generation")] | ||
[DisplayName("Indent with tabs instead of spaces")] | ||
[Description("If true, code will be generated using tabs and obey the editor's tab width")] | ||
public bool UseTabs { get; set; } | ||
public bool SaveDiagramsCompressed | ||
{ | ||
get | ||
{ | ||
return saveDiagramsCompressed; | ||
} | ||
set | ||
{ | ||
OptionsEventArgs args = new OptionsEventArgs("SaveDiagramsCompressed", saveDiagramsCompressed, value); | ||
saveDiagramsCompressed = value; | ||
OnOptionsChanged(args); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.