File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
SimpleStateMachineNodeEditor Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ public static Enums.DialogResult ToDialogResult(this System.Windows.Forms.Dialog
88 {
99 return fileDialogResult switch
1010 {
11- System . Windows . Forms . DialogResult . Yes => Helpers . Enums . DialogResult . None ,
11+ System . Windows . Forms . DialogResult . Yes => Helpers . Enums . DialogResult . Yes ,
1212 System . Windows . Forms . DialogResult . No => Helpers . Enums . DialogResult . No ,
1313 System . Windows . Forms . DialogResult . OK => Helpers . Enums . DialogResult . Ok ,
1414 System . Windows . Forms . DialogResult . Cancel => Helpers . Enums . DialogResult . Cancel ,
Original file line number Diff line number Diff line change @@ -263,12 +263,15 @@ private void HeaderClick(MouseButtonEventArgs e)
263263
264264 if ( point . X <= RestoreBounds . Width / 2 )
265265 Left = 0 ;
266+
266267 else if ( point . X >= RestoreBounds . Width )
267268 Left = point . X - ( RestoreBounds . Width - ( this . ActualWidth - point . X ) ) ;
269+
268270 else
269271 Left = point . X - ( RestoreBounds . Width / 2 ) ;
270272
271273 Top = point . Y - ( this . Header . ActualHeight / 2 ) ;
274+
272275 StateNormal ( ) ;
273276 this . WindowState = WindowState . Normal ;
274277 }
You can’t perform that action at this time.
0 commit comments