File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<Window xmlns =" https://github.com/avaloniaui"
22 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
33 x : Class =" PaintPower.Dialogs.DoSaveWindowDialog"
4- Width =" 300 " Height =" 150"
4+ Width =" 430 " Height =" 150"
55 WindowStartupLocation =" CenterOwner" >
66
77 <StackPanel Margin =" 10" Spacing =" 10" >
88 <TextBlock x : Name =" PromptText" />
9- <Button Classes =" white" Content =" Save" Click =" OnSave" />
10- <Button Classes =" white" Content =" Save As" Click =" OnSaveAs" />
11- <Button Classes =" white" Content =" Cancel" Click =" OnCancel" />
9+ <TextBlock x : Name =" PromptText2" />
10+ <StackPanel Orientation =" Horizontal"
11+ HorizontalAlignment =" Left"
12+ VerticalAlignment =" Center"
13+ Spacing =" 16"
14+ Grid.Column=" 1"
15+ Margin =" 12,0" >
16+ <Button Classes =" white" Content =" Save" Click =" OnSave" />
17+ <Button Classes =" white" Content =" Save As" Click =" OnSaveAs" />
18+ <Button Classes =" white" Content =" Cancel" Click =" OnCancel" />
19+ </StackPanel >
1220 </StackPanel >
1321</Window >
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public DoSaveWindowDialog()
1313 InitializeComponent ( ) ;
1414 Title = "Overwrite your old data?!" ;
1515 PromptText . Text = "Do you want to overwrite your save data?" ;
16+ PromptText2 . Text = "(This will save your work in the currently open editor.)" ;
1617 _tcs = new TaskCompletionSource < string ? > ( ) ;
1718 this . Closed += ( _ , __ ) => _tcs . TrySetResult ( null ) ;
1819 }
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ async public void Save() {
8282 {
8383 result = await new DoSaveWindowDialog ( ) . ShowAsync ( this ) ;
8484 }
85- catch ( Exception ex ) { Log . QuickLog ( $ "Error with dialog. { ex . ToString ( ) } ") ; }
85+ catch ( Exception ex ) { Log . QuickLog ( $ "Error with dialog. { ex . ToString ( ) } ") ; } ;
8686 ;
8787 doSave = result == "save" ;
8888 if ( result == "saveas" ) SaveAs ( ) ;
You can’t perform that action at this time.
0 commit comments