From 85957abdedaa461e5c73a7ba1d1a31e35d0cf8e0 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Tue, 30 Jul 2019 23:20:47 -0400 Subject: [PATCH] ux: add response values and stock types to appropriate buttons --- .../Dialogs/DocumentPropertiesDialog.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs index 5cda16c5..1a41aaa2 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Dialogs/DocumentPropertiesDialog.cs @@ -54,18 +54,21 @@ namespace UniversalEditor.UserInterface.Dialogs { base.OnCreating(e); - this.Buttons[0].ResponseValue = (int)DialogResult.OK; + this.Buttons [0].ResponseValue = (int)DialogResult.OK; + this.Buttons [1].ResponseValue = (int)DialogResult.Cancel; switch (Mode) { case DocumentPropertiesDialogMode.Open: { this.Text = "Open Document"; + this.Buttons [0].StockType = ButtonStockType.Open; break; } case DocumentPropertiesDialogMode.Save: { this.Text = "Save Document"; + this.Buttons [0].StockType = ButtonStockType.Save; break; } }