- Added CustomOpenButtonPressed event
- Added .editorconfig
This commit is contained in:
Родитель
bb708c7f61
Коммит
780c13cd47
|
@ -0,0 +1,6 @@
|
|||
[*.{js,cs}]
|
||||
csharp_new_line_before_open_brace = none
|
||||
indent_style = space
|
||||
# .net code style settings:
|
||||
[*.{cs,vb}]
|
||||
dotnet_sort_system_directives_first = true
|
|
@ -1923,8 +1923,15 @@ namespace Microsoft.Msagl.GraphViewerGdi {
|
|||
/// </summary>
|
||||
public event EventHandler GraphLoadingEnded;
|
||||
|
||||
public event EventHandler<HandledEventArgs> CustomOpenButtonPressed;
|
||||
|
||||
[SuppressMessage("Microsoft.Globalization", "CA1300:SpecifyMessageBoxOptions")]
|
||||
void OpenButtonPressed() {
|
||||
|
||||
HandledEventArgs args = new HandledEventArgs();
|
||||
CustomOpenButtonPressed?.Invoke(this, args);
|
||||
if (args.Handled) return;
|
||||
|
||||
var openFileDialog = new OpenFileDialog {RestoreDirectory = true, Filter = "MSAGL Files(*.msagl)|*.msagl"};
|
||||
|
||||
try {
|
||||
|
|
Загрузка…
Ссылка в новой задаче